Skip to content

Commit 181b75f

Browse files
committed
Code style fix ?
1 parent 8a621fe commit 181b75f

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

setup/extensionsmap.class.inc.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,7 @@ public function GetInstalledExtensionsFromDatabase(Config $oConfig): array|false
522522
}
523523
$sLatestInstallationDate = CMDBSource::QueryToScalar("SELECT max(installed) FROM ".$oConfig->Get('db_subname')."priv_extension_install");
524524
return CMDBSource::QueryToArray("SELECT * FROM ".$oConfig->Get('db_subname')."priv_extension_install WHERE installed = '".$sLatestInstallationDate."'");
525-
}
526-
catch (MySQLException $e) {
525+
} catch (MySQLException $e) {
527526
// No database or erroneous information
528527
return false;
529528
}

setup/wizardsteps.class.inc.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,8 +1446,7 @@ protected function DisplayStep($oPage)
14461446
if (substr($sBannerPath, 0, 1) == '/') {
14471447
// absolute path, means relative to APPROOT
14481448
$sBannerUrl = utils::GetDefaultUrlAppRoot(true).$sBannerPath;
1449-
}
1450-
else {
1449+
} else {
14511450
// relative path: i.e. relative to the directory containing the XML file
14521451
$sFullPath = dirname($this->GetSourceFilePath()).'/'.$sBannerPath;
14531452
$sRealPath = realpath($sFullPath);
@@ -1906,8 +1905,7 @@ protected function GetStepInfo($idx = null)
19061905
'uninstallable' => $bUninstallable,
19071906
'missing' => true,
19081907
);
1909-
}
1910-
else {
1908+
} else {
19111909
$this->oExtensionsMap->Get($aExtension['code'])->bInstalled = true;
19121910
}
19131911
}
@@ -2002,8 +2000,7 @@ protected function DisplayOptions($oPage, $aStepInfo, $aSelectedComponents, $aDe
20022000
if ($bInstalled) {
20032001
$sTooltip .= '<span class="setup-extension-tag checked installed">installed</span>';
20042002
$sTooltip .= '<span class="setup-extension-tag unchecked tobeuninstalled">to be uninstalled</span>';
2005-
}
2006-
else {
2003+
} else {
20072004
$sTooltip .= '<span class="setup-extension-tag checked tobeinstalled">to be installed</span>';
20082005
$sTooltip .= '<span class="setup-extension-tag unchecked notinstalled">not installed</span>';
20092006
}
@@ -2118,7 +2115,7 @@ public function GetNextButtonLabel()
21182115
{
21192116
return $this->bCanMoveForward ? 'Next' : 'Non-uninstallatble extension missing';
21202117
}
2121-
2118+
21222119
}
21232120

21242121
/**

0 commit comments

Comments
 (0)