@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | } |
86 | 86 | |
87 | 87 | $fields = array_map( |
88 | - function ($field) { |
|
88 | + function($field) { |
|
89 | 89 | return $this->addArg($field); |
90 | 90 | }, |
91 | 91 | $schema |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | } |
124 | 124 | |
125 | 125 | $fields = array_map( |
126 | - function ($field) { |
|
126 | + function($field) { |
|
127 | 127 | return $this->addResolve($field); |
128 | 128 | }, |
129 | 129 | $schema |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | } |
162 | 162 | |
163 | 163 | $fields = array_map( |
164 | - function ($field) { |
|
164 | + function($field) { |
|
165 | 165 | return $this->addField($field); |
166 | 166 | }, |
167 | 167 | $schema |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | } |
207 | 207 | |
208 | 208 | $fields = array_map( |
209 | - function ($field) { |
|
209 | + function($field) { |
|
210 | 210 | return $this->addData($field); |
211 | 211 | }, |
212 | 212 | $schema |
@@ -36,7 +36,7 @@ |
||
36 | 36 | // Register the service the package provides. |
37 | 37 | $this->app->singleton( |
38 | 38 | 'artomator', |
39 | - function () { |
|
39 | + function() { |
|
40 | 40 | return new Artomator(); |
41 | 41 | } |
42 | 42 | ); |
@@ -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 |