Code standards

This commit is contained in:
fabrixxm 2018-12-01 17:48:37 +01:00 committed by Hypolite Petovan
parent 682456c7d1
commit f7b6fef197
2 changed files with 5 additions and 5 deletions

View File

@ -94,7 +94,7 @@ HELP;
$name = $this->args[1];
$class = StorageManager::getByName($name);
if ($class === "") {
if ($class === '') {
$this->out($name . ' is not a registered backend.');
return -1;
}
@ -111,6 +111,6 @@ HELP;
$current = StorageManager::getBackend();
$r = StorageManager::move($current);
$this->out(sprintf("Moved %d files", $r));
$this->out(sprintf('Moved %d files', $r));
}
}

View File

@ -130,10 +130,10 @@ class StorageManager
}
$ref = $dest::put($data);
if ($ref !== "") {
$ru = DBA::update($table, ["backend-class" => $dest, "backend-ref" => $ref, "data" => ""], ["id" => $id]);
if ($ref !== '') {
$ru = DBA::update($table, ['backend-class' => $dest, 'backend-ref' => $ref, 'data' => ''], ['id' => $id]);
if ($ru) {
if ($backendClass !== "") {
if ($backendClass !== '') {
$backendClass::delete($backendRef);
}
$moved++;