protected function removeMatchingPortionFromRequestPath(&$routePath, $valueToMatch) { if ($valueToMatch !== null && $valueToMatch !== '') { $routePath = substr($routePath, strlen($valueToMatch)); } }