mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 14:28:53 +02:00
N°9144 Fix static analysis issues (#885)
* N°9144 Fix static analysis issues with phpstan * up to level 1 for all setup files * up to level 5 for all wizardsteps
This commit is contained in:
@@ -39,7 +39,7 @@ class WizStepDone extends WizardStep
|
||||
return new WizardState('');
|
||||
}
|
||||
|
||||
public function Display(WebPage $oPage)
|
||||
public function Display(SetupPage $oPage): void
|
||||
{
|
||||
// Check if there are some manual steps required:
|
||||
$aManualSteps = [];
|
||||
@@ -102,9 +102,9 @@ class WizStepDone extends WizardStep
|
||||
$sSetupTokenFile = APPROOT.'data/.setup';
|
||||
$sSetupToken = bin2hex(random_bytes(12));
|
||||
file_put_contents($sSetupTokenFile, $sSetupToken);
|
||||
$sIframeUrl .= "&setup_token=$sSetupToken";
|
||||
|
||||
if ($sIframeUrl != '') {
|
||||
if (mb_strlen($sIframeUrl) > 0) {
|
||||
$sIframeUrl .= "&setup_token=$sSetupToken";
|
||||
$oPage->add('<iframe id="fresh_content" frameborder="0" scrolling="auto" src="'.$sIframeUrl.'"></iframe>');
|
||||
|
||||
$oPage->add_script("
|
||||
|
||||
Reference in New Issue
Block a user