]> git.mxchange.org Git - friendica.git/commitdiff
Code standards
authorfabrixxm <fabrix.xm@gmail.com>
Sat, 1 Dec 2018 16:48:37 +0000 (17:48 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 21 Jan 2019 14:11:35 +0000 (09:11 -0500)
src/Core/Console/Storage.php
src/Core/StorageManager.php

index 9db2a123f2d335087ca910ea6a8b1a3c6a1fedb6..9334824e355c5e7aa13836bc785c270345fa8cf8 100644 (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));
        }
 }
index 6156c9731bcacb0d49197b1a91506304c32a8739..e1bab23acab70db1ff2da955949ce7ad759c6281 100644 (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++;