Code standards
This commit is contained in:
parent
682456c7d1
commit
f7b6fef197
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue