@@ -123,7 +123,7 @@ |
||
| 123 | 123 | // just make current category as root |
| 124 | 124 | // else we need to find the parent |
| 125 | 125 | // and associate it as child |
| 126 | - if ( (int)$params['parent'] == 0) { |
|
| 126 | + if ((int) $params['parent'] == 0) { |
|
| 127 | 127 | $category->saveAsRoot(); |
| 128 | 128 | } else { |
| 129 | 129 | $parent = $this->findCategoryById($params['parent']); |
@@ -112,13 +112,13 @@ |
||
| 112 | 112 | { |
| 113 | 113 | // get plural from model name |
| 114 | 114 | $pluralModel = str_plural($this->model); |
| 115 | - // create container folder |
|
| 115 | + // create container folder |
|
| 116 | 116 | $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}")); |
| 117 | - // add requests folder |
|
| 117 | + // add requests folder |
|
| 118 | 118 | $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}/Requests")); |
| 119 | - // add repositories folder |
|
| 119 | + // add repositories folder |
|
| 120 | 120 | $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}/Repositories/")); |
| 121 | - // add Interfaces folder |
|
| 121 | + // add Interfaces folder |
|
| 122 | 122 | $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}/Repositories/Interfaces")); |
| 123 | 123 | } |
| 124 | 124 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | $pluralModel = str_plural($this->model); |
| 61 | 61 | |
| 62 | 62 | // Check if the model already created |
| 63 | - if ( $this->filesystem->exists(app_path("Shop/{$pluralModel}/{$this->model}.php")) ){ |
|
| 63 | + if ($this->filesystem->exists(app_path("Shop/{$pluralModel}/{$this->model}.php"))) { |
|
| 64 | 64 | return $this->error("The given model already exists!"); |
| 65 | 65 | } |
| 66 | 66 | |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | // Create Model under default instalation folder |
| 83 | 83 | $this->call('make:model', [ |
| 84 | - 'name' => 'Shop/' . $pluralModel . '/' .$this->model, |
|
| 84 | + 'name' => 'Shop/' . $pluralModel . '/' . $this->model, |
|
| 85 | 85 | '--migration' => $this->option('migration'), |
| 86 | 86 | ]); |
| 87 | 87 | } |
@@ -113,12 +113,12 @@ discard block |
||
| 113 | 113 | // get plural from model name |
| 114 | 114 | $pluralModel = str_plural($this->model); |
| 115 | 115 | // create container folder |
| 116 | - $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}")); |
|
| 116 | + $this->filesystem->makeDirectory(app_path($baseFolder . "/{$pluralModel}")); |
|
| 117 | 117 | // add requests folder |
| 118 | - $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}/Requests")); |
|
| 118 | + $this->filesystem->makeDirectory(app_path($baseFolder . "/{$pluralModel}/Requests")); |
|
| 119 | 119 | // add repositories folder |
| 120 | - $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}/Repositories/")); |
|
| 120 | + $this->filesystem->makeDirectory(app_path($baseFolder . "/{$pluralModel}/Repositories/")); |
|
| 121 | 121 | // add Interfaces folder |
| 122 | - $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}/Repositories/Interfaces")); |
|
| 122 | + $this->filesystem->makeDirectory(app_path($baseFolder . "/{$pluralModel}/Repositories/Interfaces")); |
|
| 123 | 123 | } |
| 124 | 124 | } |