Passed
Push — master ( cfb337...85e48d )
by Roeland
15:04 queued 10s
created
lib/private/Files/Cache/Storage.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 		$this->storageId = self::adjustStorageId($this->storageId);
73 73
 
74 74
 		if ($row = self::getStorageById($this->storageId)) {
75
-			$this->numericId = (int)$row['numeric_id'];
75
+			$this->numericId = (int) $row['numeric_id'];
76 76
 		} else {
77 77
 			$connection = \OC::$server->getDatabaseConnection();
78 78
 			$available = $isAvailable ? 1 : 0;
@@ -80,9 +80,9 @@  discard block
 block discarded – undo
80 80
 				$this->numericId = $connection->lastInsertId('*PREFIX*storages');
81 81
 			} else {
82 82
 				if ($row = self::getStorageById($this->storageId)) {
83
-					$this->numericId = (int)$row['numeric_id'];
83
+					$this->numericId = (int) $row['numeric_id'];
84 84
 				} else {
85
-					throw new \RuntimeException('Storage could neither be inserted nor be selected from the database: ' . $this->storageId);
85
+					throw new \RuntimeException('Storage could neither be inserted nor be selected from the database: '.$this->storageId);
86 86
 				}
87 87
 			}
88 88
 		}
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 		$storageId = self::adjustStorageId($storageId);
150 150
 
151 151
 		if ($row = self::getStorageById($storageId)) {
152
-			return (int)$row['numeric_id'];
152
+			return (int) $row['numeric_id'];
153 153
 		} else {
154 154
 			return null;
155 155
 		}
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 	public function getAvailability() {
162 162
 		if ($row = self::getStorageById($this->storageId)) {
163 163
 			return [
164
-				'available' => (int)$row['available'] === 1,
164
+				'available' => (int) $row['available'] === 1,
165 165
 				'last_checked' => $row['last_checked']
166 166
 			];
167 167
 		} else {
Please login to merge, or discard this patch.