@@ -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 | { |
@@ -32,8 +32,7 @@ |
||
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 |
@@ -32,8 +32,7 @@ |
||
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 |
@@ -32,8 +32,7 @@ |
||
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 |
@@ -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 | { |
@@ -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 | { |
@@ -50,12 +50,10 @@ |
||
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 |