@@ -202,8 +202,7 @@ |
||
202 | 202 | $this->aUserFiles = $this->xUploadManager->readFromHttpData($xRequest); |
203 | 203 | $sTempFile = $this->xUploadManager->saveToTempFile($this->aUserFiles); |
204 | 204 | $this->xResponseManager->append(new UploadResponse($this->xPsr17Factory, $sTempFile)); |
205 | - } |
|
206 | - catch(Exception $e) |
|
205 | + } catch(Exception $e) |
|
207 | 206 | { |
208 | 207 | $this->xResponseManager->append(new UploadResponse($this->xPsr17Factory, '', $e->getMessage())); |
209 | 208 | } |
@@ -162,8 +162,7 @@ discard block |
||
162 | 162 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
163 | 163 | } |
164 | 164 | return $sUploadDir; |
165 | - } |
|
166 | - catch(FilesystemException $e) |
|
165 | + } catch(FilesystemException $e) |
|
167 | 166 | { |
168 | 167 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
169 | 168 | } |
@@ -267,8 +266,7 @@ discard block |
||
267 | 266 | { |
268 | 267 | $aFiles['user']->filesystem()->write($aFiles['user']->path(), $aFiles['temp']->getStream()->getContents()); |
269 | 268 | } |
270 | - } |
|
271 | - catch(FilesystemException $e) |
|
269 | + } catch(FilesystemException $e) |
|
272 | 270 | { |
273 | 271 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
274 | 272 | } |
@@ -301,8 +299,7 @@ discard block |
||
301 | 299 | try |
302 | 300 | { |
303 | 301 | $xFilesystem->write($sUploadDir . $sTempFile . '.json', json_encode($aFiles)); |
304 | - } |
|
305 | - catch(FilesystemException $e) |
|
302 | + } catch(FilesystemException $e) |
|
306 | 303 | { |
307 | 304 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
308 | 305 | } |
@@ -333,8 +330,7 @@ discard block |
||
333 | 330 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
334 | 331 | } |
335 | 332 | return [$xFilesystem, $sUploadTempFile]; |
336 | - } |
|
337 | - catch(FilesystemException $e) |
|
333 | + } catch(FilesystemException $e) |
|
338 | 334 | { |
339 | 335 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
340 | 336 | } |
@@ -355,8 +351,7 @@ discard block |
||
355 | 351 | try |
356 | 352 | { |
357 | 353 | $aFiles = json_decode($xFilesystem->read($sUploadTempFile), true); |
358 | - } |
|
359 | - catch(FilesystemException $e) |
|
354 | + } catch(FilesystemException $e) |
|
360 | 355 | { |
361 | 356 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
362 | 357 | } |
@@ -372,8 +367,7 @@ discard block |
||
372 | 367 | try |
373 | 368 | { |
374 | 369 | $xFilesystem->delete($sUploadTempFile); |
375 | - } |
|
376 | - catch(FilesystemException $e){} |
|
370 | + } catch(FilesystemException $e){} |
|
377 | 371 | return $aUserFiles; |
378 | 372 | } |
379 | 373 | } |