@@ -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 | } |
@@ -159,8 +159,7 @@ discard block |
||
| 159 | 159 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
| 160 | 160 | } |
| 161 | 161 | return $sUploadDir; |
| 162 | - } |
|
| 163 | - catch(FilesystemException $e) |
|
| 162 | + } catch(FilesystemException $e) |
|
| 164 | 163 | { |
| 165 | 164 | jaxon()->logger()->error('Filesystem error', ['message' => $e->getMessage()]); |
| 166 | 165 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
@@ -263,8 +262,7 @@ discard block |
||
| 263 | 262 | { |
| 264 | 263 | $aFiles['user']->filesystem()->write($aFiles['user']->path(), $aFiles['temp']->getStream()); |
| 265 | 264 | } |
| 266 | - } |
|
| 267 | - catch(FilesystemException $e) |
|
| 265 | + } catch(FilesystemException $e) |
|
| 268 | 266 | { |
| 269 | 267 | jaxon()->logger()->error('Filesystem error', ['message' => $e->getMessage()]); |
| 270 | 268 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
@@ -298,8 +296,7 @@ discard block |
||
| 298 | 296 | try |
| 299 | 297 | { |
| 300 | 298 | $this->xFileStorage->filesystem()->write($sUploadDir . $sTempFile . '.json', json_encode($aFiles)); |
| 301 | - } |
|
| 302 | - catch(FilesystemException $e) |
|
| 299 | + } catch(FilesystemException $e) |
|
| 303 | 300 | { |
| 304 | 301 | jaxon()->logger()->error('Filesystem error', ['message' => $e->getMessage()]); |
| 305 | 302 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
@@ -331,8 +328,7 @@ discard block |
||
| 331 | 328 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
| 332 | 329 | } |
| 333 | 330 | return $sUploadTempFile; |
| 334 | - } |
|
| 335 | - catch(FilesystemException $e) |
|
| 331 | + } catch(FilesystemException $e) |
|
| 336 | 332 | { |
| 337 | 333 | jaxon()->logger()->error('Filesystem error', ['message' => $e->getMessage()]); |
| 338 | 334 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
@@ -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 | { |
| 378 | 372 | jaxon()->logger()->warning('Filesystem error', ['message' => $e->getMessage()]); |
| 379 | 373 | } |