@@ -72,7 +72,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 { |