Passed
Push — master ( 590809...500e04 )
by Michele
03:35
created
src/Middleware/WebArtisanEnabled.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     public function handle($request, Closure $next)
36 36
     {
37 37
         $response = $next($request);
38
-        if ($this->webartisan->isEnabled() and $request->url() != asset(config('webartisan.route_prefix').'/run')) {
38
+        if ($this->webartisan->isEnabled() and $request->url() != asset(config('webartisan.route_prefix') . '/run')) {
39 39
             try {
40 40
                 $response->getContent();
41 41
             }
Please login to merge, or discard this patch.
src/LaravelWebArtisanServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     public function boot()
18 18
     {
19 19
         $this->publishes([
20
-            __DIR__.'/../config/config.php' => config_path('webartisan.php'),
20
+            __DIR__ . '/../config/config.php' => config_path('webartisan.php'),
21 21
         ], 'config');
22 22
 
23 23
         $routeConfig = [
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             ]);
34 34
         });
35 35
 
36
-        $this->loadViewsFrom(__DIR__.'/Resources/Views', 'webartisan');
36
+        $this->loadViewsFrom(__DIR__ . '/Resources/Views', 'webartisan');
37 37
 
38 38
         $this->registerMiddleware(WebArtisanEnabled::class);
39 39
     }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function register()
47 47
     {
48
-        $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'webartisan');
48
+        $this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'webartisan');
49 49
     }
50 50
 
51 51
     /**
Please login to merge, or discard this patch.
src/LaravelWebArtisan.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 	public function __construct($app = null)
29 29
 	{
30 30
         if (!$app) {
31
-            $app = app();   //Fallback when $app is not given
31
+            $app = app(); //Fallback when $app is not given
32 32
         }
33 33
         $this->app = $app;
34 34
 
Please login to merge, or discard this patch.
src/Controllers/WebArtisanCommandController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@
 block discarded – undo
27 27
             ? $request->get('command')
28 28
             : null;
29 29
 
30
-        if($this->command) {
30
+        if ($this->command) {
31 31
             $commandPrepared = $this->prepareCommand($this->command);
32 32
             try {
33 33
                 Artisan::call($commandPrepared);
34 34
             }
35
-            catch(\Exception $e) {
35
+            catch (\Exception $e) {
36 36
                 return $this->prepareResultToHtml($e->getMessage(), 'error');
37 37
             }
38 38
             return $this->prepareResultToHtml(Artisan::output(), 'success');
Please login to merge, or discard this patch.