@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | $factoryPath = GenerateConfigReader::read('factory'); |
73 | 73 | |
74 | - return $path . $factoryPath->getPath() . '/' . $this->getFileName(); |
|
74 | + return $path.$factoryPath->getPath().'/'.$this->getFileName(); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function getClass() |
83 | 83 | { |
84 | - $studlyName = Str::studly( $this->argument($this->argumentName)); |
|
84 | + $studlyName = Str::studly($this->argument($this->argumentName)); |
|
85 | 85 | |
86 | 86 | if (!str_contains($studlyName, 'Factory')) |
87 | 87 | $studlyName .= 'Factory'; |
@@ -105,11 +105,11 @@ discard block |
||
105 | 105 | |
106 | 106 | $namespace = $this->laravel['modules']->config('namespace'); |
107 | 107 | |
108 | - $namespace .= '\\' . $module->getStudlyName(); |
|
108 | + $namespace .= '\\'.$module->getStudlyName(); |
|
109 | 109 | |
110 | - $namespace .= '\\' . $modules->config('paths.generator.model.path', 'Entities'); |
|
110 | + $namespace .= '\\'.$modules->config('paths.generator.model.path', 'Entities'); |
|
111 | 111 | |
112 | - $namespace .= '\\' . str_replace('Factory', '', $this->argument($this->argumentName)); |
|
112 | + $namespace .= '\\'.str_replace('Factory', '', $this->argument($this->argumentName)); |
|
113 | 113 | |
114 | 114 | if (class_exists($namespace)) |
115 | 115 | $model = $namespace; |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | */ |
136 | 136 | private function getFileName() |
137 | 137 | { |
138 | - return $this->getClass() . '.php'; |
|
138 | + return $this->getClass().'.php'; |
|
139 | 139 | } |
140 | 140 | |
141 | 141 | |
@@ -169,9 +169,9 @@ discard block |
||
169 | 169 | { |
170 | 170 | $namespace = $this->laravel['modules']->config('namespace'); |
171 | 171 | |
172 | - $namespace .= '\\' . $module->getStudlyName(); |
|
172 | + $namespace .= '\\'.$module->getStudlyName(); |
|
173 | 173 | |
174 | - $namespace .= '\\' . $this->getDefaultNamespace(); |
|
174 | + $namespace .= '\\'.$this->getDefaultNamespace(); |
|
175 | 175 | |
176 | 176 | $namespace = str_replace('/', '\\', $namespace); |
177 | 177 |
@@ -83,8 +83,9 @@ discard block |
||
83 | 83 | { |
84 | 84 | $studlyName = Str::studly( $this->argument($this->argumentName)); |
85 | 85 | |
86 | - if (!str_contains($studlyName, 'Factory')) |
|
87 | - $studlyName .= 'Factory'; |
|
86 | + if (!str_contains($studlyName, 'Factory')) { |
|
87 | + $studlyName .= 'Factory'; |
|
88 | + } |
|
88 | 89 | |
89 | 90 | return $studlyName; |
90 | 91 | } |
@@ -111,8 +112,9 @@ discard block |
||
111 | 112 | |
112 | 113 | $namespace .= '\\' . str_replace('Factory', '', $this->argument($this->argumentName)); |
113 | 114 | |
114 | - if (class_exists($namespace)) |
|
115 | - $model = $namespace; |
|
115 | + if (class_exists($namespace)) { |
|
116 | + $model = $namespace; |
|
117 | + } |
|
116 | 118 | |
117 | 119 | } |
118 | 120 |