mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00: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"
|
xmlns="https://getpsalm.org/schema/config"
|
||||||
xsi:schemaLocation="https://getpsalm.org/schema/config"
|
xsi:schemaLocation="https://getpsalm.org/schema/config"
|
||||||
errorBaseline="psalm-baseline.xml"
|
errorBaseline="psalm-baseline.xml"
|
||||||
|
findUnusedBaselineEntry="true"
|
||||||
|
findUnusedCode="false"
|
||||||
>
|
>
|
||||||
<projectFiles>
|
<projectFiles>
|
||||||
<directory name="templates"/>
|
<directory name="templates"/>
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,10 @@ class ConfigurationManager
|
||||||
}
|
}
|
||||||
|
|
||||||
$lastBackupLines = explode("\n", $content);
|
$lastBackupLines = explode("\n", $content);
|
||||||
$lastBackupLine = $lastBackupLines[sizeof($lastBackupLines) - 2];
|
$lastBackupLine = "";
|
||||||
|
if (count($lastBackupLines) >= 2) {
|
||||||
|
$lastBackupLine = $lastBackupLines[sizeof($lastBackupLines) - 2];
|
||||||
|
}
|
||||||
if ($lastBackupLine === "") {
|
if ($lastBackupLine === "") {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue