adress review

Signed-off-by: szaimen <szaimen@e.mail.de>
Co-Authored-By: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
szaimen 2022-02-16 14:32:57 +01:00
parent 63e0849215
commit 0880aff7ea

View file

@ -64,7 +64,7 @@ class ConfigurationManager
} }
$content = file_get_contents(DataConst::GetBackupArchivesList()); $content = file_get_contents(DataConst::GetBackupArchivesList());
if ($content === "") { if (count($content) === 0) {
return ''; return '';
} }
@ -89,14 +89,14 @@ class ConfigurationManager
} }
$content = file_get_contents(DataConst::GetBackupArchivesList()); $content = file_get_contents(DataConst::GetBackupArchivesList());
if ($content === "") { if (count($content) === 0) {
return $array[] = ''; return $array[] = '';
} }
$backupLines = explode("\n", $content); $backupLines = explode('\n', $content);
$backupTimes = array(); $backupTimes = [];
foreach($backupLines as $lines) { foreach($backupLines as $lines) {
$backupTimesTemp = explode(",", $lines); $backupTimesTemp = explode(',', $lines);
$backupTimes[] = $backupTimesTemp[1]; $backupTimes[] = $backupTimesTemp[1];
} }