Passed
Push — main ( 1a70e4...e654d0 )
by Thierry
01:53
created
src/Manager/UploadManager.php 1 patch
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -158,8 +158,7 @@  discard block
 block discarded – undo
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
         }
@@ -264,8 +263,7 @@  discard block
 block discarded – undo
264 263
             {
265 264
                 $aFiles['user']->filesystem()->write($aFiles['user']->path(), $aFiles['temp']->getStream()->getContents());
266 265
             }
267
-        }
268
-        catch(FilesystemException $e)
266
+        } catch(FilesystemException $e)
269 267
         {
270 268
             throw new RequestException($this->xTranslator->trans('errors.upload.access'));
271 269
         }
@@ -298,8 +296,7 @@  discard block
 block discarded – undo
298 296
         try
299 297
         {
300 298
             $xFilesystem->write($sUploadDir . $sTempFile . '.json', json_encode($aFiles));
301
-        }
302
-        catch(FilesystemException $e)
299
+        } catch(FilesystemException $e)
303 300
         {
304 301
             throw new RequestException($this->xTranslator->trans('errors.upload.access'));
305 302
         }
@@ -330,8 +327,7 @@  discard block
 block discarded – undo
330 327
                 throw new RequestException($this->xTranslator->trans('errors.upload.access'));
331 328
             }
332 329
             return [$xFilesystem, $sUploadTempFile];
333
-        }
334
-        catch(FilesystemException $e)
330
+        } catch(FilesystemException $e)
335 331
         {
336 332
             throw new RequestException($this->xTranslator->trans('errors.upload.access'));
337 333
         }
@@ -352,8 +348,7 @@  discard block
 block discarded – undo
352 348
         try
353 349
         {
354 350
             $aFiles = json_decode($xFilesystem->read($sUploadTempFile), true);
355
-        }
356
-        catch(FilesystemException $e)
351
+        } catch(FilesystemException $e)
357 352
         {
358 353
             throw new RequestException($this->xTranslator->trans('errors.upload.access'));
359 354
         }
@@ -369,8 +364,7 @@  discard block
 block discarded – undo
369 364
         try
370 365
         {
371 366
             $xFilesystem->delete($sUploadTempFile);
372
-        }
373
-        catch(FilesystemException $e){/* Not a big deal if the file cannot be deleted. */}
367
+        } catch(FilesystemException $e){/* Not a big deal if the file cannot be deleted. */}
374 368
         return $aUserFiles;
375 369
     }
376 370
 }
Please login to merge, or discard this patch.