mirror of
https://github.com/Combodo/iTop.git
synced 2026-08-22 22:28:19 +02:00
N°9875 - code style
This commit is contained in:
@@ -3288,7 +3288,8 @@ TXT
|
||||
{
|
||||
$sTempnam = tempnam($sDirectory, $sPrefix);
|
||||
unlink($sTempnam);
|
||||
$sArchiveName = $sTempnam.'.zip';;
|
||||
$sArchiveName = $sTempnam.'.zip';
|
||||
;
|
||||
|
||||
return [ self::ZipArchiveOpen($sArchiveName, \ZipArchive::CREATE), $sArchiveName ];
|
||||
}
|
||||
|
||||
@@ -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++) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user