@@ -32,7 +32,6 @@ discard block |
||
32 | 32 | /** |
33 | 33 | * Get the default namespace for the class. |
34 | 34 | * |
35 | - * @param string $rootNamespace |
|
36 | 35 | * @return string |
37 | 36 | */ |
38 | 37 | public function getDefaultNamespace() : string |
@@ -45,7 +44,6 @@ discard block |
||
45 | 44 | /** |
46 | 45 | * Get the default namespace for the class. |
47 | 46 | * |
48 | - * @param string $rootNamespace |
|
49 | 47 | * @return string |
50 | 48 | */ |
51 | 49 | public function getModelNamespace() : string |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | { |
65 | 65 | $module = $this->laravel['modules']->findOrFail($this->getModuleName()); |
66 | 66 | |
67 | - if($this->option('model') ) { |
|
67 | + if ($this->option('model')) { |
|
68 | 68 | return (new Stub('/observer.stub', [ |
69 | 69 | 'NAMESPACE' => $this->getClassNamespace($module), |
70 | 70 | 'CLASS' => $this->getClass(), |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | |
93 | 93 | $notificationPath = GenerateConfigReader::read('observers'); |
94 | 94 | |
95 | - return $path . $notificationPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
95 | + return $path.$notificationPath->getPath().'/'.$this->getFileName().'.php'; |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $model = str_replace('/', '\\', $model); |
114 | 114 | |
115 | 115 | $module = $this->laravel['modules']->findOrFail($this->getModuleName()); |
116 | - $namespaceModel = $this->getClassNamespace($module, $this->getModelNamespace() ) . '\\' . $model; |
|
116 | + $namespaceModel = $this->getClassNamespace($module, $this->getModelNamespace()).'\\'.$model; |
|
117 | 117 | |
118 | 118 | if (Str::startsWith($model, '\\')) { |
119 | 119 | return trim($model, '\\'); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | { |
142 | 142 | $model = $this->getModel(); |
143 | 143 | |
144 | - return '$' . Str::camel($model); |
|
144 | + return '$'.Str::camel($model); |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | /** |
@@ -88,11 +88,11 @@ |
||
88 | 88 | |
89 | 89 | $namespace = $this->laravel['modules']->config('namespace'); |
90 | 90 | |
91 | - $namespace .= '\\' . $module->getStudlyName(); |
|
91 | + $namespace .= '\\'.$module->getStudlyName(); |
|
92 | 92 | |
93 | - $namespace .= '\\' . ($concrete ?? $this->getDefaultNamespace()); |
|
93 | + $namespace .= '\\'.($concrete ?? $this->getDefaultNamespace()); |
|
94 | 94 | |
95 | - $namespace .= '\\' . $extra; |
|
95 | + $namespace .= '\\'.$extra; |
|
96 | 96 | |
97 | 97 | $namespace = str_replace('/', '\\', $namespace); |
98 | 98 |