From: fabrixxm <fabrix.xm@gmail.com>
Date: Sat, 1 Dec 2018 16:48:37 +0000 (+0100)
Subject: Code standards
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f7b6fef1978975cc1784fdbf663523ebc999d1c0;p=friendica.git

Code standards
---

diff --git a/src/Core/Console/Storage.php b/src/Core/Console/Storage.php
index 9db2a123f2..9334824e35 100644
--- a/src/Core/Console/Storage.php
+++ b/src/Core/Console/Storage.php
@@ -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));
 	}
 }
diff --git a/src/Core/StorageManager.php b/src/Core/StorageManager.php
index 6156c9731b..e1bab23aca 100644
--- a/src/Core/StorageManager.php
+++ b/src/Core/StorageManager.php
@@ -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++;