Passed
Push — master ( e9e480...b77902 )
by Michele
02:50
created
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.
src/Middleware/WebArtisanEnabled.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
39 39
         if ($response instanceof Response and $this->webartisan->isEnabled() and $request->url() != asset(config('webartisan.route_prefix').'/run')) {
40 40
             try {
41 41
                 $response->getContent();
42
-            }
43
-            catch (\ErrorException $e) {
42
+            } catch (\ErrorException $e) {
44 43
                 return $response;
45 44
             }
46 45
             $this->webartisan->render($response);
Please login to merge, or discard this patch.