From a05f603ea9d088edf8e1cdf30f7e77058528fc26 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 10 Dec 2024 18:02:40 +0700 Subject: [PATCH] refactor: run cs fix --- system/CodeIgniter.php | 2 ++ system/Commands/Database/MigrateRollback.php | 1 + system/Database/BaseBuilder.php | 1 + system/Filters/CSRF.php | 1 + system/Filters/ForceHTTPS.php | 1 + system/Filters/PageCache.php | 1 + system/Images/Handlers/BaseHandler.php | 1 + system/Language/Language.php | 3 ++- system/Test/CIUnitTestCase.php | 1 + 9 files changed, 11 insertions(+), 1 deletion(-) diff --git a/system/CodeIgniter.php b/system/CodeIgniter.php index 1d3a19f6376d..a7521f95274d 100644 --- a/system/CodeIgniter.php +++ b/system/CodeIgniter.php @@ -379,6 +379,7 @@ public function run(?RouteCollectionInterface $routes = null, bool $returnRespon } $this->sendResponse(); + return null; } @@ -890,6 +891,7 @@ protected function startController() ) { throw PageNotFoundException::forControllerNotFound($this->controller, $this->method); } + return null; } diff --git a/system/Commands/Database/MigrateRollback.php b/system/Commands/Database/MigrateRollback.php index fa77c15aa4ab..cb6cbe3a7adb 100644 --- a/system/Commands/Database/MigrateRollback.php +++ b/system/Commands/Database/MigrateRollback.php @@ -115,6 +115,7 @@ public function run(array $params) $this->showError($e); // @codeCoverageIgnoreEnd } + return null; } } diff --git a/system/Database/BaseBuilder.php b/system/Database/BaseBuilder.php index b0363bb6a814..b32dd40160bf 100644 --- a/system/Database/BaseBuilder.php +++ b/system/Database/BaseBuilder.php @@ -3043,6 +3043,7 @@ protected function trackAliases($table) // Store the alias, if it doesn't already exist $this->db->addTableAlias($table); } + return null; } diff --git a/system/Filters/CSRF.php b/system/Filters/CSRF.php index 69a5d9a621d2..6d90d6aee817 100644 --- a/system/Filters/CSRF.php +++ b/system/Filters/CSRF.php @@ -57,6 +57,7 @@ public function before(RequestInterface $request, $arguments = null) throw $e; } + return null; } diff --git a/system/Filters/ForceHTTPS.php b/system/Filters/ForceHTTPS.php index d7bf877242e3..1a5bdc84349d 100644 --- a/system/Filters/ForceHTTPS.php +++ b/system/Filters/ForceHTTPS.php @@ -49,6 +49,7 @@ public function before(RequestInterface $request, $arguments = null) } catch (RedirectException $e) { return $e->getResponse(); } + return null; } diff --git a/system/Filters/PageCache.php b/system/Filters/PageCache.php index cb29969bacc6..d4fb6ab24662 100644 --- a/system/Filters/PageCache.php +++ b/system/Filters/PageCache.php @@ -51,6 +51,7 @@ public function before(RequestInterface $request, $arguments = null) if ($cachedResponse instanceof ResponseInterface) { return $cachedResponse; } + return null; } diff --git a/system/Images/Handlers/BaseHandler.php b/system/Images/Handlers/BaseHandler.php index cf4562e1b459..afcc7c7bbeb9 100644 --- a/system/Images/Handlers/BaseHandler.php +++ b/system/Images/Handlers/BaseHandler.php @@ -702,6 +702,7 @@ public function __call(string $name, array $args = []) if (method_exists($this->image(), $name)) { return $this->image()->{$name}(...$args); } + return null; } diff --git a/system/Language/Language.php b/system/Language/Language.php index ddb9a738912f..c0591328f5ef 100644 --- a/system/Language/Language.php +++ b/system/Language/Language.php @@ -232,7 +232,7 @@ protected function formatMessage($message, array $args = []) * will return the file's contents, otherwise will merge with * the existing language lines. * - * @return mixed[]|null + * @return list|null */ protected function load(string $file, string $locale, bool $return = false) { @@ -265,6 +265,7 @@ protected function load(string $file, string $locale, bool $return = false) // Merge our string $this->language[$locale][$file] = $lang; + return null; } diff --git a/system/Test/CIUnitTestCase.php b/system/Test/CIUnitTestCase.php index 676b3dfb8333..f237ab862a64 100644 --- a/system/Test/CIUnitTestCase.php +++ b/system/Test/CIUnitTestCase.php @@ -482,6 +482,7 @@ public function assertCloseEnoughString($expected, $actual, string $message = '' } catch (Exception) { return false; } + return null; }