@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | $this->logger->logException($e); |
130 | 130 | return new DataResponse( |
131 | 131 | [ |
132 | - 'message' => (string)$this->l10n->t('Invalid backend or authentication mechanism class') |
|
132 | + 'message' => (string) $this->l10n->t('Invalid backend or authentication mechanism class') |
|
133 | 133 | ], |
134 | 134 | Http::STATUS_UNPROCESSABLE_ENTITY |
135 | 135 | ); |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | if ($mountPoint === '') { |
149 | 149 | return new DataResponse( |
150 | 150 | [ |
151 | - 'message' => (string)$this->l10n->t('Invalid mount point'), |
|
151 | + 'message' => (string) $this->l10n->t('Invalid mount point'), |
|
152 | 152 | ], |
153 | 153 | Http::STATUS_UNPROCESSABLE_ENTITY |
154 | 154 | ); |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | // objectstore must not be sent from client side |
159 | 159 | return new DataResponse( |
160 | 160 | [ |
161 | - 'message' => (string)$this->l10n->t('Objectstore forbidden'), |
|
161 | + 'message' => (string) $this->l10n->t('Objectstore forbidden'), |
|
162 | 162 | ], |
163 | 163 | Http::STATUS_UNPROCESSABLE_ENTITY |
164 | 164 | ); |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | // invalid backend |
173 | 173 | return new DataResponse( |
174 | 174 | [ |
175 | - 'message' => (string)$this->l10n->t('Invalid storage backend "%s"', [ |
|
175 | + 'message' => (string) $this->l10n->t('Invalid storage backend "%s"', [ |
|
176 | 176 | $backend->getIdentifier(), |
177 | 177 | ]), |
178 | 178 | ], |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | // not permitted to use backend |
185 | 185 | return new DataResponse( |
186 | 186 | [ |
187 | - 'message' => (string)$this->l10n->t('Not permitted to use backend "%s"', [ |
|
187 | + 'message' => (string) $this->l10n->t('Not permitted to use backend "%s"', [ |
|
188 | 188 | $backend->getIdentifier(), |
189 | 189 | ]), |
190 | 190 | ], |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | // not permitted to use auth mechanism |
196 | 196 | return new DataResponse( |
197 | 197 | [ |
198 | - 'message' => (string)$this->l10n->t('Not permitted to use authentication mechanism "%s"', [ |
|
198 | + 'message' => (string) $this->l10n->t('Not permitted to use authentication mechanism "%s"', [ |
|
199 | 199 | $authMechanism->getIdentifier(), |
200 | 200 | ]), |
201 | 201 | ], |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | // unsatisfied parameters |
208 | 208 | return new DataResponse( |
209 | 209 | [ |
210 | - 'message' => (string)$this->l10n->t('Unsatisfied backend parameters'), |
|
210 | + 'message' => (string) $this->l10n->t('Unsatisfied backend parameters'), |
|
211 | 211 | ], |
212 | 212 | Http::STATUS_UNPROCESSABLE_ENTITY |
213 | 213 | ); |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | // unsatisfied parameters |
217 | 217 | return new DataResponse( |
218 | 218 | [ |
219 | - 'message' => (string)$this->l10n->t('Unsatisfied authentication mechanism parameters'), |
|
219 | + 'message' => (string) $this->l10n->t('Unsatisfied authentication mechanism parameters'), |
|
220 | 220 | ], |
221 | 221 | Http::STATUS_UNPROCESSABLE_ENTITY |
222 | 222 | ); |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | // FIXME: convert storage exceptions to StorageNotAvailableException |
274 | 274 | $storage->setStatus( |
275 | 275 | StorageNotAvailableException::STATUS_ERROR, |
276 | - get_class($e) . ': ' . $e->getMessage() |
|
276 | + get_class($e).': '.$e->getMessage() |
|
277 | 277 | ); |
278 | 278 | } |
279 | 279 | } |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | } |
294 | 294 | |
295 | 295 | protected function formatStoragesForUI(array $storages): array { |
296 | - return array_map(function ($storage) { |
|
296 | + return array_map(function($storage) { |
|
297 | 297 | return $this->formatStorageForUI($storage); |
298 | 298 | }, $storages); |
299 | 299 | } |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | } catch (NotFoundException $e) { |
332 | 332 | return new DataResponse( |
333 | 333 | [ |
334 | - 'message' => (string)$this->l10n->t('Storage with ID "%d" not found', [$id]), |
|
334 | + 'message' => (string) $this->l10n->t('Storage with ID "%d" not found', [$id]), |
|
335 | 335 | ], |
336 | 336 | Http::STATUS_NOT_FOUND |
337 | 337 | ); |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | } catch (NotFoundException $e) { |
357 | 357 | return new DataResponse( |
358 | 358 | [ |
359 | - 'message' => (string)$this->l10n->t('Storage with ID "%d" not found', [$id]), |
|
359 | + 'message' => (string) $this->l10n->t('Storage with ID "%d" not found', [$id]), |
|
360 | 360 | ], |
361 | 361 | Http::STATUS_NOT_FOUND |
362 | 362 | ); |