Code standards
This commit is contained in:
parent
682456c7d1
commit
f7b6fef197
2 changed files with 5 additions and 5 deletions
|
@ -94,7 +94,7 @@ HELP;
|
||||||
$name = $this->args[1];
|
$name = $this->args[1];
|
||||||
$class = StorageManager::getByName($name);
|
$class = StorageManager::getByName($name);
|
||||||
|
|
||||||
if ($class === "") {
|
if ($class === '') {
|
||||||
$this->out($name . ' is not a registered backend.');
|
$this->out($name . ' is not a registered backend.');
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -111,6 +111,6 @@ HELP;
|
||||||
|
|
||||||
$current = StorageManager::getBackend();
|
$current = StorageManager::getBackend();
|
||||||
$r = StorageManager::move($current);
|
$r = StorageManager::move($current);
|
||||||
$this->out(sprintf("Moved %d files", $r));
|
$this->out(sprintf('Moved %d files', $r));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -130,10 +130,10 @@ class StorageManager
|
||||||
}
|
}
|
||||||
$ref = $dest::put($data);
|
$ref = $dest::put($data);
|
||||||
|
|
||||||
if ($ref !== "") {
|
if ($ref !== '') {
|
||||||
$ru = DBA::update($table, ["backend-class" => $dest, "backend-ref" => $ref, "data" => ""], ["id" => $id]);
|
$ru = DBA::update($table, ['backend-class' => $dest, 'backend-ref' => $ref, 'data' => ''], ['id' => $id]);
|
||||||
if ($ru) {
|
if ($ru) {
|
||||||
if ($backendClass !== "") {
|
if ($backendClass !== '') {
|
||||||
$backendClass::delete($backendRef);
|
$backendClass::delete($backendRef);
|
||||||
}
|
}
|
||||||
$moved++;
|
$moved++;
|
||||||
|
|
Loading…
Reference in a new issue