@@ -1310,7 +1310,7 @@ public function JSCanMoveForward()
13101310 */
13111311class WizStepModulesChoice extends WizardStep
13121312{
1313- static protected string $ SEP = '_ ' ;
1313+ protected static string $ SEP = '_ ' ;
13141314 protected bool $ bUpgrade = false ;
13151315 protected bool $ bCanMoveForward = true ;
13161316 protected ?Config $ oConfig = null ;
@@ -1890,10 +1890,10 @@ protected function GetStepInfo($idx = null)
18901890 }
18911891 //Listing previously installed extension missing from disk
18921892 if (!is_null ($ this ->oConfig ) && ($ aPreviouslyInstalled = $ this ->oExtensionsMap ->GetInstalledExtensionsFromDatabase ($ this ->oConfig ))) {
1893- foreach ($ aPreviouslyInstalled as $ aExtension ) {
1893+ foreach ($ aPreviouslyInstalled as $ aExtension ) {
18941894 if (!$ this ->oExtensionsMap ->Get ($ aExtension ['code ' ])) {
18951895 $ bUninstallable = $ aExtension ['uninstallable ' ] === 'yes ' ;
1896- $ aStepDefinition ['options ' ][] = array (
1896+ $ aStepDefinition ['options ' ][] = [
18971897 'extension_code ' => $ aExtension ['code ' ],
18981898 'title ' => $ aExtension ['label ' ],
18991899 'description ' => $ aExtension ['description ' ] ?? '' ,
@@ -1904,7 +1904,7 @@ protected function GetStepInfo($idx = null)
19041904 'source_label ' => $ this ->GetExtensionSourceLabel ($ aExtension ['source ' ]),
19051905 'uninstallable ' => $ bUninstallable ,
19061906 'missing ' => true ,
1907- ) ;
1907+ ] ;
19081908 } else {
19091909 $ this ->oExtensionsMap ->Get ($ aExtension ['code ' ])->bInstalled = true ;
19101910 }
@@ -1986,7 +1986,8 @@ protected function DisplayOptions($oPage, $aStepInfo, $aSelectedComponents, $aDe
19861986 $ oITopExtension = $ this ->oExtensionsMap ->Get ($ aChoice ['extension_code ' ]);
19871987 $ bCanBeUninstalled = isset ($ aChoice ['uninstallable ' ]) ? $ aChoice ['uninstallable ' ] : $ oITopExtension ->CanBeUninstalled ();
19881988 $ bSelected = isset ($ aSelectedComponents [$ sChoiceId ]) && ($ aSelectedComponents [$ sChoiceId ] == $ sChoiceId );
1989- $ bMandatory = (isset ($ aChoice ['mandatory ' ]) && $ aChoice ['mandatory ' ]) || $ this ->bUpgrade && $ bIsDefault && !$ bCanBeUninstalled && !$ bDisableUninstallCheck ;;
1989+ $ bMandatory = (isset ($ aChoice ['mandatory ' ]) && $ aChoice ['mandatory ' ]) || $ this ->bUpgrade && $ bIsDefault && !$ bCanBeUninstalled && !$ bDisableUninstallCheck ;
1990+ ;
19901991 $ bMissingFromDisk = isset ($ aChoice ['missing ' ]) && $ aChoice ['missing ' ] === true ;
19911992 $ bInstalled = $ bMissingFromDisk || $ oITopExtension ->bInstalled ;
19921993 $ bDisabled = $ bMandatory || $ bAllDisabled || $ bMissingFromDisk ;
@@ -2083,7 +2084,6 @@ protected function DisplayChoice($oPage, $aChoice, $aSelectedComponents, $aDefau
20832084 $ sSourceLabel = $ aChoice ['source_label ' ] ?? '' ;
20842085 $ sId = utils::EscapeHtml ($ aChoice ['extension_code ' ]);
20852086
2086-
20872087 $ oPage ->add ('<label class="setup--wizard-choice--label" for=" ' .$ sId .'"> ' .$ sSourceLabel .'<b> ' .utils::EscapeHtml ($ aChoice ['title ' ]).'</b> ' .' ' .$ sTooltip .'</label> ' .$ sMoreInfo .'' );
20882088 $ sDescription = isset ($ aChoice ['description ' ]) ? utils::EscapeHtml ($ aChoice ['description ' ]) : '' ;
20892089 $ oPage ->add ('<div class="setup--wizard-choice--description description"> ' .$ sDescription .'<span id="sub_choices ' .$ sId .'"> ' );
@@ -2110,7 +2110,6 @@ public function JSCanMoveForward()
21102110 return $ this ->bCanMoveForward ? 'return true; ' : 'return false; ' ;
21112111 }
21122112
2113-
21142113 public function GetNextButtonLabel ()
21152114 {
21162115 return $ this ->bCanMoveForward ? 'Next ' : 'Non-uninstallatble extension missing ' ;
0 commit comments