@@ -158,8 +158,7 @@ discard block |
||
| 158 | 158 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
| 159 | 159 | } |
| 160 | 160 | return $sUploadDir; |
| 161 | - } |
|
| 162 | - catch(FilesystemException $e) |
|
| 161 | + } catch(FilesystemException $e) |
|
| 163 | 162 | { |
| 164 | 163 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
| 165 | 164 | } |
@@ -261,8 +260,7 @@ discard block |
||
| 261 | 260 | { |
| 262 | 261 | $aFiles['user']->filesystem()->write($aFiles['user']->path(), $aFiles['temp']->getStream()); |
| 263 | 262 | } |
| 264 | - } |
|
| 265 | - catch(FilesystemException $e) |
|
| 263 | + } catch(FilesystemException $e) |
|
| 266 | 264 | { |
| 267 | 265 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
| 268 | 266 | } |
@@ -295,8 +293,7 @@ discard block |
||
| 295 | 293 | try |
| 296 | 294 | { |
| 297 | 295 | $this->xFileStorage->filesystem()->write($sUploadDir . $sTempFile . '.json', json_encode($aFiles)); |
| 298 | - } |
|
| 299 | - catch(FilesystemException $e) |
|
| 296 | + } catch(FilesystemException $e) |
|
| 300 | 297 | { |
| 301 | 298 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
| 302 | 299 | } |
@@ -327,8 +324,7 @@ discard block |
||
| 327 | 324 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
| 328 | 325 | } |
| 329 | 326 | return $sUploadTempFile; |
| 330 | - } |
|
| 331 | - catch(FilesystemException $e) |
|
| 327 | + } catch(FilesystemException $e) |
|
| 332 | 328 | { |
| 333 | 329 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
| 334 | 330 | } |
@@ -350,8 +346,7 @@ discard block |
||
| 350 | 346 | try |
| 351 | 347 | { |
| 352 | 348 | $aFiles = json_decode($xFileSystem->read($sUploadTempFile), true); |
| 353 | - } |
|
| 354 | - catch(FilesystemException $e) |
|
| 349 | + } catch(FilesystemException $e) |
|
| 355 | 350 | { |
| 356 | 351 | throw new RequestException($this->xTranslator->trans('errors.upload.access')); |
| 357 | 352 | } |
@@ -367,8 +362,7 @@ discard block |
||
| 367 | 362 | try |
| 368 | 363 | { |
| 369 | 364 | $xFileSystem->delete($sUploadTempFile); |
| 370 | - } |
|
| 371 | - catch(FilesystemException $e){/* Not a big deal if the file cannot be deleted. */} |
|
| 365 | + } catch(FilesystemException $e){/* Not a big deal if the file cannot be deleted. */} |
|
| 372 | 366 | return $aUserFiles; |
| 373 | 367 | } |
| 374 | 368 | } |