From 8d7d87de278e2db7abdc07adc5bdfef5db3606b9 Mon Sep 17 00:00:00 2001 From: Jon Stovell Date: Fri, 1 Mar 2024 21:45:36 -0700 Subject: [PATCH] Whitespace fixes in Install Signed-off-by: Jon Stovell --- Sources/Maintenance/Tools/Install.php | 44 +++++++++++++-------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/Sources/Maintenance/Tools/Install.php b/Sources/Maintenance/Tools/Install.php index b05781bfec..2b1aecc894 100644 --- a/Sources/Maintenance/Tools/Install.php +++ b/Sources/Maintenance/Tools/Install.php @@ -403,10 +403,10 @@ public function checkFilesWritable(): bool // It's not going to be possible to use FTP on windows to solve the problem... if ($failure && Sapi::isOS(Sapi::OS_WINDOWS)) { Maintenance::$fatal_error = Lang::$txt['error_windows_chmod'] . ' - '; + '; return false; } @@ -874,7 +874,7 @@ public function databasePopulation(): bool $result = Db::$db->query( '', 'SELECT variable, value - FROM {db_prefix}settings', + FROM {db_prefix}settings', [ 'db_error_skip' => true, ], @@ -1088,9 +1088,9 @@ public function adminAccount(): bool $request = Db::$db->query( '', 'SELECT id_member - FROM {db_prefix}members - WHERE id_group = {int:admin_group} OR FIND_IN_SET({int:admin_group}, additional_groups) != 0 - LIMIT 1', + FROM {db_prefix}members + WHERE id_group = {int:admin_group} OR FIND_IN_SET({int:admin_group}, additional_groups) != 0 + LIMIT 1', [ 'db_error_skip' => true, 'admin_group' => 1, @@ -1314,7 +1314,7 @@ public function deleteInstall(): bool $request = Db::$db->query( '', 'SELECT variable, value - FROM {db_prefix}settings', + FROM {db_prefix}settings', [ 'db_error_skip' => true, ], @@ -1336,8 +1336,8 @@ public function deleteInstall(): bool $result = Db::$db->query( '', 'SELECT value - FROM {db_prefix}settings - WHERE variable = {string:db_sessions}', + FROM {db_prefix}settings + WHERE variable = {string:db_sessions}', [ 'db_sessions' => 'databaseSession_enable', 'db_error_skip' => true, @@ -1374,10 +1374,10 @@ public function deleteInstall(): bool $request = Db::$db->query( '', 'SELECT id_msg - FROM {db_prefix}messages - WHERE id_msg = 1 - AND modified_time = 0 - LIMIT 1', + FROM {db_prefix}messages + WHERE id_msg = 1 + AND modified_time = 0 + LIMIT 1', [ 'db_error_skip' => true, ], @@ -1445,13 +1445,13 @@ public function preExit(): void private function checkAndTryToFixModSecurity(): bool { $htaccess_addition = ' - - # Turn off mod_security filtering. SMF is a big boy, it doesn\'t need its hands held. - SecFilterEngine Off + + # Turn off mod_security filtering. SMF is a big boy, it doesn\'t need its hands held. + SecFilterEngine Off - # The below probably isn\'t needed, but better safe than sorry. - SecFilterScanPOST Off - '; + # The below probably isn\'t needed, but better safe than sorry. + SecFilterScanPOST Off + '; if (!function_exists('apache_get_modules') || !in_array('mod_security', apache_get_modules())) { return true; @@ -1778,7 +1778,7 @@ private function populateSmileys(): void $request = Db::$db->query( '', 'SELECT id_smiley, code - FROM {db_prefix}smileys', + FROM {db_prefix}smileys', [], );