We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | */ |
| 91 | 91 | protected function getPath($name) |
| 92 | 92 | { |
| 93 | - return $this->laravel['path'].'/../resources/views/'.str_replace('\\', '/', $name).'.blade.php'; |
|
| 93 | + return $this->laravel[ 'path' ].'/../resources/views/'.str_replace('\\', '/', $name).'.blade.php'; |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
@@ -41,7 +41,9 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected function getStub() |
| 43 | 43 | { |
| 44 | - if ($this->option('plain')) return __DIR__.'/../stubs/view-plain.stub'; |
|
| 44 | + if ($this->option('plain')) { |
|
| 45 | + return __DIR__.'/../stubs/view-plain.stub'; |
|
| 46 | + } |
|
| 45 | 47 | |
| 46 | 48 | return __DIR__.'/../stubs/view.stub'; |
| 47 | 49 | } |
@@ -45,10 +45,10 @@ |
||
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | - * Execute the console command. |
|
| 49 | - * |
|
| 50 | - * @return bool|null |
|
| 51 | - */ |
|
| 48 | + * Execute the console command. |
|
| 49 | + * |
|
| 50 | + * @return bool|null |
|
| 51 | + */ |
|
| 52 | 52 | public function fire() |
| 53 | 53 | { |
| 54 | 54 | $name = $this->getNameInput(); |
@@ -45,10 +45,10 @@ |
||
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | - * Execute the console command. |
|
| 49 | - * |
|
| 50 | - * @return bool|null |
|
| 51 | - */ |
|
| 48 | + * Execute the console command. |
|
| 49 | + * |
|
| 50 | + * @return bool|null |
|
| 51 | + */ |
|
| 52 | 52 | public function fire() |
| 53 | 53 | { |
| 54 | 54 | $name = $this->getNameInput(); |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | */ |
| 89 | 89 | protected function getPath($name) |
| 90 | 90 | { |
| 91 | - return $this->laravel['path'].'/../config/'.str_replace('\\', '/', $name).'.php'; |
|
| 91 | + return $this->laravel[ 'path' ].'/../config/'.str_replace('\\', '/', $name).'.php'; |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
@@ -74,11 +74,11 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * Build the class with the given name. |
|
| 78 | - * |
|
| 79 | - * @param string $name |
|
| 80 | - * @return string |
|
| 81 | - */ |
|
| 77 | + * Build the class with the given name. |
|
| 78 | + * |
|
| 79 | + * @param string $name |
|
| 80 | + * @return string |
|
| 81 | + */ |
|
| 82 | 82 | protected function buildClass($name) |
| 83 | 83 | { |
| 84 | 84 | $stub = $this->files->get($this->getStub()); |
@@ -41,7 +41,9 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | protected function getStub() |
| 43 | 43 | { |
| 44 | - if ($this->option('softdelete')) return __DIR__.'/../stubs/model-softdelete.stub'; |
|
| 44 | + if ($this->option('softdelete')) { |
|
| 45 | + return __DIR__.'/../stubs/model-softdelete.stub'; |
|
| 46 | + } |
|
| 45 | 47 | |
| 46 | 48 | return __DIR__.'/../stubs/model.stub'; |
| 47 | 49 | } |