From c0287073d3ed12a6bf7843fd443b624e320d8cd8 Mon Sep 17 00:00:00 2001 From: mychidarko Date: Sun, 15 Dec 2024 10:39:39 +0000 Subject: [PATCH] chore: fix styling --- src/Router.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);