Completed
Push — master ( 500503...dd30bb )
by Fumio
04:19
created
sources/Generators/Console/ModelMakeCommand.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
      * @param string $path
95 95
      * @param string $fqcn
96 96
      *
97
-     * @return bool
97
+     * @return boolean|null
98 98
      */
99 99
     protected function generateFile(FileGenerator $generator, $path, $fqcn)
100 100
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Jumilla\Generators\Laravel\OneFileGeneratorCommand as BaseCommand;
6 6
 use Jumilla\Generators\FileGenerator;
7
-use LaravelPlus\Extension\Addons\Addon;
8 7
 use LaravelPlus\Extension\Generators\GeneratorCommandTrait;
9 8
 use Illuminate\Support\Str;
10 9
 
Please login to merge, or discard this patch.
sources/Specs/FormModel.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,6 @@
 block discarded – undo
31 31
 
32 32
     /**
33 33
      * @param string $id
34
-     * @param LaravelPlus\Extension\Specs\InputSpec $path
35 34
      */
36 35
     public function __construct($id, InputSpec $spec)
37 36
     {
Please login to merge, or discard this patch.
sources/Console/TailCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
         $lines = $this->option('lines');
98 98
 
99
-        (new Process('tail -f -n '.$lines.' '.escapeshellarg($path)))->setTimeout(null)->run(function ($type, $line) use ($output) {
99
+        (new Process('tail -f -n '.$lines.' '.escapeshellarg($path)))->setTimeout(null)->run(function($type, $line) use ($output) {
100 100
             $output->write($line);
101 101
         });
102 102
     }
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 
159 159
         $lines = $this->option('lines');
160 160
 
161
-        $this->getRemote($connection)->run('tail -f -n '.$lines.' '.escapeshellarg($path), function ($line) use ($out) {
161
+        $this->getRemote($connection)->run('tail -f -n '.$lines.' '.escapeshellarg($path), function($line) use ($out) {
162 162
             $out->write($line);
163 163
         });
164 164
     }
Please login to merge, or discard this patch.
sources/Console/AppContainerCommand.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,12 +50,10 @@
 block discarded – undo
50 50
             if (is_array($instance)) {
51 51
                 if ($instance['shared']) {
52 52
                     $this->output(array_get($instances, $name));
53
-                }
54
-                else {
53
+                } else {
55 54
                     $this->output($instance['concrete']);
56 55
                 }
57
-            }
58
-            else {
56
+            } else {
59 57
                 $this->output($instance);
60 58
             }
61 59
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace LaravelPlus\Extension\Console;
4 4
 
5 5
 use Illuminate\Console\Command;
6
-use Illuminate\Foundation\Application;
7 6
 use LaravelPlus\Extension\Hooks\ApplicationHook;
8 7
 
9 8
 /**
Please login to merge, or discard this patch.
sources/Specs/InputModel.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@
 block discarded – undo
32 32
     {
33 33
         if (is_string($pathOrSpec)) {
34 34
             $spec = new InputSpec(app('specs'), app('translator'), $pathOrSpec);
35
-        }
36
-        else {
35
+        } else {
37 36
             $spec = $pathOrSpec;
38 37
         }
39 38
 
Please login to merge, or discard this patch.
sources/Generators/GeneratorCommandTrait.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     }
73 73
 
74 74
     /**
75
-    * Get the addon namespace.
75
+     * Get the addon namespace.
76 76
      *
77 77
      * @return $string
78 78
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
         if ($this->addon) {
102 102
             $directories = $this->addon->config('addon.directories');
103 103
 
104
-            if (! $directories) {
104
+            if (!$directories) {
105 105
                 $directories = ['classes'];
106 106
             }
107 107
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@
 block discarded – undo
32 32
     {
33 33
         if (is_string($pathOrSpec)) {
34 34
             $spec = new InputSpec(app('specs'), app('translator'), $pathOrSpec);
35
-        }
36
-        else {
35
+        } else {
37 36
             $spec = $pathOrSpec;
38 37
         }
39 38
 
Please login to merge, or discard this patch.
sources/Generators/Console/EventMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
 
81 81
         return $generator->file($path)->template($this->getStub(), [
82 82
             'namespace' => $namespace,
83
-            'root_namespace' => $this->getAppNamespace(),     // use App\Events\Event
83
+            'root_namespace' => $this->getAppNamespace(), // use App\Events\Event
84 84
             'class' => $class,
85 85
         ]);
86 86
     }
Please login to merge, or discard this patch.
sources/Generators/Console/ListenerMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
 
98 98
         return $generator->file($path)->template($this->getStub(), [
99 99
             'namespace' => $namespace,
100
-            'root_namespace' => $this->getAppNamespace(),     // use App\Events\{$event}
100
+            'root_namespace' => $this->getAppNamespace(), // use App\Events\{$event}
101 101
             'class' => $class,
102 102
             'event' => $this->option('event'),
103 103
         ]);
Please login to merge, or discard this patch.
sources/Generators/Console/ControllerMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
 
82 82
         return $generator->file($path)->template($this->getStub(), [
83 83
             'namespace' => $namespace,
84
-            'root_namespace' => $this->getAppNamespace(),   // use App\Http\Controllers\Controller
84
+            'root_namespace' => $this->getAppNamespace(), // use App\Http\Controllers\Controller
85 85
             'class' => $class,
86 86
         ]);
87 87
     }
Please login to merge, or discard this patch.