diff --git a/src/Router.php b/src/Router.php index dd8aa91..6047605 100644 --- a/src/Router.php +++ b/src/Router.php @@ -865,7 +865,7 @@ private static function invoke($handler, $params = []) $handler, $params ); - } else if (stripos($handler, '@') !== false) { + } elseif (stripos($handler, '@') !== false) { list($controller, $method) = explode('@', $handler); if (!class_exists($controller)) { @@ -883,7 +883,7 @@ private static function invoke($handler, $params = []) if (forward_static_call_array([$controller, $method], $params) === false) ; } - } else if (strpos($handler, ':') !== false) { + } elseif (strpos($handler, ':') !== false) { $middlewareParams = []; $middlewareParams = explode(':', $handler);