Optimiser code in ModalRouteHelper.php

Closes #3578337

Merge request reports

Loading