@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | public function generate() |
| 35 | 35 | { |
| 36 | - if (! file_exists($this->path)) { |
|
| 36 | + if (!file_exists($this->path)) { |
|
| 37 | 37 | mkdir($this->path, 0755, true); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | $tableBodyFields = []; |
| 139 | 139 | |
| 140 | 140 | foreach ($this->commandData->fields as $field) { |
| 141 | - if (! $field->inIndex) { |
|
| 141 | + if (!$field->inIndex) { |
|
| 142 | 142 | continue; |
| 143 | 143 | } |
| 144 | 144 | |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | $headerFields = []; |
| 171 | 171 | |
| 172 | 172 | foreach ($this->commandData->fields as $field) { |
| 173 | - if (! $field->inIndex) { |
|
| 173 | + if (!$field->inIndex) { |
|
| 174 | 174 | continue; |
| 175 | 175 | } |
| 176 | 176 | |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | $this->htmlFields = []; |
| 241 | 241 | |
| 242 | 242 | foreach ($this->commandData->fields as $field) { |
| 243 | - if (! $field->inForm) { |
|
| 243 | + if (!$field->inForm) { |
|
| 244 | 244 | continue; |
| 245 | 245 | } |
| 246 | 246 | |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | $minMaxRules = ''; |
| 249 | 249 | $required = ''; |
| 250 | 250 | foreach ($validations as $validation) { |
| 251 | - if (! Str::contains($validation, ['max:', 'min:'])) { |
|
| 251 | + if (!Str::contains($validation, ['max:', 'min:'])) { |
|
| 252 | 252 | continue; |
| 253 | 253 | } |
| 254 | 254 | |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | $inputArr = explode(',', $field->htmlValues[1]); |
| 280 | 280 | $columns = ''; |
| 281 | 281 | foreach ($inputArr as $item) { |
| 282 | - $columns .= "'$item'".','; //e.g 'email,id,' |
|
| 282 | + $columns .= "'$item'".','; //e.g 'email,id,' |
|
| 283 | 283 | } |
| 284 | 284 | $columns = substr_replace($columns, '', -1); // remove last , |
| 285 | 285 | |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | |
| 293 | 293 | $tableName = $this->commandData->config->tableName; |
| 294 | 294 | $viewPath = $this->commandData->config->prefixes['view']; |
| 295 | - if (! empty($viewPath)) { |
|
| 295 | + if (!empty($viewPath)) { |
|
| 296 | 296 | $tableName = $viewPath.'.'.$tableName; |
| 297 | 297 | } |
| 298 | 298 | |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | $fieldTemplate = $this->generateViewComposer($tableName, $variableName, $columns, $selectTable, $modalName); |
| 302 | 302 | } |
| 303 | 303 | |
| 304 | - if (! empty($fieldTemplate)) { |
|
| 304 | + if (!empty($fieldTemplate)) { |
|
| 305 | 305 | $fieldTemplate = fill_template_with_field_data( |
| 306 | 306 | $this->commandData->dynamicVars, |
| 307 | 307 | $this->commandData->fieldNamesMapping, |
@@ -385,7 +385,7 @@ discard block |
||
| 385 | 385 | $fieldsStr = ''; |
| 386 | 386 | |
| 387 | 387 | foreach ($this->commandData->fields as $field) { |
| 388 | - if (! $field->inView) { |
|
| 388 | + if (!$field->inView) { |
|
| 389 | 389 | continue; |
| 390 | 390 | } |
| 391 | 391 | $singleFieldStr = str_replace( |
@@ -431,7 +431,7 @@ discard block |
||
| 431 | 431 | 'show_fields.blade.php', |
| 432 | 432 | ]; |
| 433 | 433 | |
| 434 | - if (! empty($views)) { |
|
| 434 | + if (!empty($views)) { |
|
| 435 | 435 | $files = []; |
| 436 | 436 | foreach ($views as $view) { |
| 437 | 437 | $files[] = $view.'.blade.php'; |