Skip to content

Commit

Permalink
Whitespace fixes in Install
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Stovell <[email protected]>
  • Loading branch information
Sesquipedalian committed Mar 2, 2024
1 parent d56a9aa commit 8d7d87d
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions Sources/Maintenance/Tools/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] . '
<ul class="error_content">
<li>' . implode('</li>
<li>', $failed_files) . '</li>
</ul>';
<ul class="error_content">
<li>' . implode('</li>
<li>', $failed_files) . '</li>
</ul>';

return false;
}
Expand Down Expand Up @@ -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,
],
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
],
Expand All @@ -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,
Expand Down Expand Up @@ -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,
],
Expand Down Expand Up @@ -1445,13 +1445,13 @@ public function preExit(): void
private function checkAndTryToFixModSecurity(): bool
{
$htaccess_addition = '
<IfModule mod_security.c>
# Turn off mod_security filtering. SMF is a big boy, it doesn\'t need its hands held.
SecFilterEngine Off
<IfModule mod_security.c>
# 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
</IfModule>';
# The below probably isn\'t needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>';

if (!function_exists('apache_get_modules') || !in_array('mod_security', apache_get_modules())) {
return true;
Expand Down Expand Up @@ -1778,7 +1778,7 @@ private function populateSmileys(): void
$request = Db::$db->query(
'',
'SELECT id_smiley, code
FROM {db_prefix}smileys',
FROM {db_prefix}smileys',
[],
);

Expand Down

0 comments on commit 8d7d87d

Please sign in to comment.