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