N°9875 - code style

This commit is contained in:
odain
2026-08-18 17:16:19 +02:00
parent c3412dd352
commit 7f2b7afc5c
3 changed files with 4 additions and 3 deletions

View File

@@ -3288,7 +3288,8 @@ TXT
{
$sTempnam = tempnam($sDirectory, $sPrefix);
unlink($sTempnam);
$sArchiveName = $sTempnam.'.zip';;
$sArchiveName = $sTempnam.'.zip';
;
return [ self::ZipArchiveOpen($sArchiveName, \ZipArchive::CREATE), $sArchiveName ];
}

View File

@@ -116,7 +116,7 @@ function DoLanding(WebPage $oPage)
try {
$oZip = utils::ZipArchiveOpen($sZipArchiveFile);
} catch(\Exception $e){
} catch (\Exception $e) {
throw new Exception('Unable to open "'.$sZipArchiveFile.'" for extraction. Make sure that the directory "'.'data/downloaded-extensions/'.'" is writable for the web server.');
}
for ($idx = 0; $idx < $oZip->numFiles; $idx++) {

View File

@@ -1102,7 +1102,7 @@ INI;
$oZip->addFile(__FILE__);
$oZip->close();
self::assertTrue(in_array($sFilePath, glob(sys_get_temp_dir() . '/**')));
self::assertTrue(in_array($sFilePath, glob(sys_get_temp_dir().'/**')));
self::assertTrue(is_file($sFilePath), $sFilePath);
unlink($sFilePath);
}