mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
N°9167 Fix code style
This commit is contained in:
@@ -447,8 +447,6 @@ class iTopExtensionsMap
|
||||
return $aRes;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Mark the given extension as chosen
|
||||
* @param string $sExtensionCode The code of the extension (code without version number)
|
||||
|
||||
@@ -142,7 +142,8 @@ class iTopExtension
|
||||
return true;
|
||||
}
|
||||
|
||||
public function GetExtensionSourceLabel(): string {
|
||||
public function GetExtensionSourceLabel(): string
|
||||
{
|
||||
return match ($this->sSource) {
|
||||
iTopExtension::SOURCE_MANUAL => 'Local extensions folder',
|
||||
iTopExtension::SOURCE_REMOTE => (ITOP_APPLICATION == 'iTop') ? 'iTop Hub' : 'ITSM Designer',
|
||||
|
||||
@@ -33,8 +33,7 @@ class ExtensionDetailsUIBlockFactory extends AbstractUIBlockFactory
|
||||
if ($bMissingFromDisk) {
|
||||
$oExtensionDetails->GetToggler()->SetIsToggled(false);
|
||||
$oExtensionDetails->GetToggler()->SetIsDisabled(true);
|
||||
}
|
||||
else if (!$bUninstallable) {
|
||||
} elseif (!$bUninstallable) {
|
||||
$oExtensionDetails->AllowForceUninstall();
|
||||
$oExtensionDetails->GetToggler()->SetIsDisabled(true);
|
||||
}
|
||||
|
||||
@@ -642,7 +642,6 @@ $oColumnLeft->AddSubBlock($oExtensionDetailInstalledFromFactory);
|
||||
$oExtensionDetailInstalledFromFactory = ExtensionDetailsUIBlockFactory::MakeInstalled('itop-not-uninstallable', 'You cannot uninstall me', 'Click force uninstall to uninstall me', ['v9.9.9', 'Void', '12/12/2012'], ['uninstallable' => false,'missing' => false]);
|
||||
$oColumnLeft->AddSubBlock($oExtensionDetailInstalledFromFactory);
|
||||
|
||||
|
||||
$oExtensionDetailInstalledWithLongTitle = ExtensionDetailsUIBlockFactory::MakeNotInstalled('itop-sample', 'My extension with a very long title', 'This is for test only', ['v1.1.1', 'Designer', '12/12/2012'], ['uninstallable' => false]);
|
||||
$oColumnRight->AddSubBlock($oExtensionDetailInstalledWithLongTitle);
|
||||
$oPage->add('<hr id="page_bottom"/>');
|
||||
|
||||
Reference in New Issue
Block a user