Passed
Push — master ( 590809...500e04 )
by Michele
03:35
created
src/Middleware/WebArtisanEnabled.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@
 block discarded – undo
38 38
         if ($this->webartisan->isEnabled() and $request->url() != asset(config('webartisan.route_prefix').'/run')) {
39 39
             try {
40 40
                 $response->getContent();
41
-            }
42
-            catch (\ErrorException $e) {
41
+            } catch (\ErrorException $e) {
43 42
                 return $response;
44 43
             }
45 44
             $this->webartisan->render($response);
Please login to merge, or discard this patch.
src/Controllers/WebArtisanCommandController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@
 block discarded – undo
31 31
             $commandPrepared = $this->prepareCommand($this->command);
32 32
             try {
33 33
                 Artisan::call($commandPrepared);
34
-            }
35
-            catch(\Exception $e) {
34
+            } catch(\Exception $e) {
36 35
                 return $this->prepareResultToHtml($e->getMessage(), 'error');
37 36
             }
38 37
             return $this->prepareResultToHtml(Artisan::output(), 'success');
Please login to merge, or discard this patch.