@@ -37,7 +37,7 @@ |
||
| 37 | 37 | */ |
| 38 | 38 | protected function buildModelReplacements(array $replace = []) |
| 39 | 39 | { |
| 40 | - if($this->modelClass == '') { |
|
| 40 | + if ($this->modelClass == '') { |
|
| 41 | 41 | $this->modelClass = $this->parseModel((string) $this->getNameInput()); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -77,10 +77,10 @@ discard block |
||
| 77 | 77 | // First we will check to see if the class already exists. If it does, we don't want |
| 78 | 78 | // to create the class and overwrite the user's code. So, we will bail out so the |
| 79 | 79 | // code is untouched. Otherwise, we will continue generating this class' files. |
| 80 | - if ((! $this->hasOption('force') || |
|
| 81 | - ! $this->option('force')) && |
|
| 80 | + if ((!$this->hasOption('force') || |
|
| 81 | + !$this->option('force')) && |
|
| 82 | 82 | $this->alreadyExists($name)) { |
| 83 | - $this->error($this->type.' already exists!'); |
|
| 83 | + $this->error($this->type . ' already exists!'); |
|
| 84 | 84 | return false; |
| 85 | 85 | } |
| 86 | 86 | // Next, we will generate the path to the location where this class' file should get |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | // stub files so that it gets the correctly formatted namespace and class name. |
| 89 | 89 | $this->makeDirectory($path); |
| 90 | 90 | $this->files->put($path, $this->buildClass($className)); |
| 91 | - $this->info($this->type.' created successfully.'); |
|
| 91 | + $this->info($this->type . ' created successfully.'); |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | /** |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $this->schema = $this->insepctTable((string) $this->option('table')); |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | - if (in_array('model', $this->includes) === true ) { |
|
| 76 | + if (in_array('model', $this->includes) === true) { |
|
| 77 | 77 | $this->createModel(); |
| 78 | 78 | } |
| 79 | 79 | |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | $results = array_map( |
| 158 | - function ($field) { |
|
| 158 | + function($field) { |
|
| 159 | 159 | return $this->addArg($field); |
| 160 | 160 | }, |
| 161 | 161 | $results |