mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-11-08 05:03:27 +08:00
fix psalm
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
cbc19c17ca
commit
c5bfdbb653
2 changed files with 6 additions and 1 deletions
|
|
@ -6,6 +6,8 @@
|
|||
xmlns="https://getpsalm.org/schema/config"
|
||||
xsi:schemaLocation="https://getpsalm.org/schema/config"
|
||||
errorBaseline="psalm-baseline.xml"
|
||||
findUnusedBaselineEntry="true"
|
||||
findUnusedCode="false"
|
||||
>
|
||||
<projectFiles>
|
||||
<directory name="templates"/>
|
||||
|
|
|
|||
|
|
@ -78,7 +78,10 @@ class ConfigurationManager
|
|||
}
|
||||
|
||||
$lastBackupLines = explode("\n", $content);
|
||||
$lastBackupLine = $lastBackupLines[sizeof($lastBackupLines) - 2];
|
||||
$lastBackupLine = "";
|
||||
if (count($lastBackupLines) >= 2) {
|
||||
$lastBackupLine = $lastBackupLines[sizeof($lastBackupLines) - 2];
|
||||
}
|
||||
if ($lastBackupLine === "") {
|
||||
return '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue