@@ -94,7 +94,7 @@ |
||
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 | { |
@@ -44,7 +44,7 @@ |
||
44 | 44 | /** |
45 | 45 | * Get addon. |
46 | 46 | * |
47 | - * @return string |
|
47 | + * @return Addon|null |
|
48 | 48 | */ |
49 | 49 | protected function getAddon() |
50 | 50 | { |
@@ -31,7 +31,6 @@ |
||
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 | { |
@@ -96,7 +96,7 @@ discard block |
||
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 |
||
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 | } |
@@ -80,7 +80,7 @@ |
||
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 | } |
@@ -97,7 +97,7 @@ |
||
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 | ]); |
@@ -81,7 +81,7 @@ |
||
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 | } |
@@ -81,7 +81,7 @@ |
||
81 | 81 | |
82 | 82 | return $generator->file($path)->template($this->getStub(), [ |
83 | 83 | 'namespace' => $namespace, |
84 | - 'root_namespace' => $this->getAppNamespace(), // use App\Jobs\Job |
|
84 | + 'root_namespace' => $this->getAppNamespace(), // use App\Jobs\Job |
|
85 | 85 | 'class' => $class, |
86 | 86 | ]); |
87 | 87 | } |
@@ -80,7 +80,7 @@ |
||
80 | 80 | |
81 | 81 | return $generator->file($path)->template($this->getStub(), [ |
82 | 82 | 'namespace' => $namespace, |
83 | - 'root_namespace' => $this->getAppNamespace(), // use App\Http\Requests\Request |
|
83 | + 'root_namespace' => $this->getAppNamespace(), // use App\Http\Requests\Request |
|
84 | 84 | 'class' => $class, |
85 | 85 | ]); |
86 | 86 | } |