From 3e1b2052051d23fb5ceb8ad154203aae974464f7 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Sat, 3 Jul 2021 00:56:44 +0800 Subject: [PATCH] Enable PSR-12 normative rules --- system/Debug/Toolbar.php | 4 ++-- tests/system/CodeIgniterTest.php | 2 +- tests/system/Commands/InfoCacheTest.php | 2 +- tests/system/Database/Builder/InsertTest.php | 4 ++-- tests/system/Database/Builder/UpdateTest.php | 2 +- .../Database/Migrations/MigrationRunnerTest.php | 2 +- tests/system/HTTP/Files/FileCollectionTest.php | 10 +++++----- tests/system/HTTP/Files/FileMovingTest.php | 2 +- tests/system/Test/BootstrapFCPATHTest.php | 8 ++++---- utils/PhpCsFixer/CodeIgniter4.php | 12 ++++++++++++ 10 files changed, 30 insertions(+), 18 deletions(-) diff --git a/system/Debug/Toolbar.php b/system/Debug/Toolbar.php index 1ec5b1d411..a230440e6a 100644 --- a/system/Debug/Toolbar.php +++ b/system/Debug/Toolbar.php @@ -122,7 +122,7 @@ class Toolbar Kint::$display_called_from = false; $kint = @Kint::dump($value); - $kint = substr($kint, strpos($kint, '') + 8 ); + $kint = substr($kint, strpos($kint, '') + 8); Kint::$mode_default = $oldKintMode; Kint::$display_called_from = $oldKintCalledFrom; @@ -356,7 +356,7 @@ class Toolbar Kint::$mode_default = Kint::MODE_RICH; $kintScript = @Kint::dump(''); Kint::$mode_default = $oldKintMode; - $kintScript = substr($kintScript, 0, strpos($kintScript, '') + 8 ); + $kintScript = substr($kintScript, 0, strpos($kintScript, '') + 8); $script = PHP_EOL . '