@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function toArray() |
26 | 26 | { |
27 | - return array_map(function ($value) { |
|
27 | + return array_map(function($value) { |
|
28 | 28 | if ($value instanceof Module) { |
29 | 29 | return $value->json()->getAttributes(); |
30 | 30 | } |
@@ -122,7 +122,7 @@ |
||
122 | 122 | return json_decode($this->getContents(), 1); |
123 | 123 | } |
124 | 124 | |
125 | - return app('cache')->remember($this->getPath(), config('modules.cache.lifetime'), function () { |
|
125 | + return app('cache')->remember($this->getPath(), config('modules.cache.lifetime'), function() { |
|
126 | 126 | return json_decode($this->getContents(), 1); |
127 | 127 | }); |
128 | 128 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | $module = $this->laravel['modules']->findOrFail($this->getModuleName()); |
69 | 69 | |
70 | - return (new Stub('/' . $stub . '.stub', [ |
|
70 | + return (new Stub('/'.$stub.'.stub', [ |
|
71 | 71 | 'NAMESPACE' => $this->getClassNamespace($module), |
72 | 72 | 'CLASS' => $this->getClass(), |
73 | 73 | 'LOWER_NAME' => $module->getLowerName(), |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | $generatorPath = $this->laravel['modules']->config('paths.generator.provider'); |
92 | 92 | |
93 | - return $path . $generatorPath . '/' . $this->getFileName() . '.php'; |
|
93 | + return $path.$generatorPath.'/'.$this->getFileName().'.php'; |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | "EVENTNAME" => $this->getEventName($module), |
63 | 63 | "EVENTSHORTENEDNAME" => $this->option('event'), |
64 | 64 | "CLASS" => $this->getClass(), |
65 | - 'DUMMYNAMESPACE' => $this->laravel->getNamespace() . "Events", |
|
65 | + 'DUMMYNAMESPACE' => $this->laravel->getNamespace()."Events", |
|
66 | 66 | ]))->render(); |
67 | 67 | } |
68 | 68 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | |
73 | 73 | $seederPath = $this->laravel['modules']->config('paths.generator.listener'); |
74 | 74 | |
75 | - return $path . $seederPath . '/' . $this->getFileName() . '.php'; |
|
75 | + return $path.$seederPath.'/'.$this->getFileName().'.php'; |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
@@ -94,13 +94,13 @@ discard block |
||
94 | 94 | |
95 | 95 | protected function getEventName(Module $module) |
96 | 96 | { |
97 | - return $this->getClassNamespace($module) . "\\" . config('modules.paths.generator.event') . "\\" . $this->option('event'); |
|
97 | + return $this->getClassNamespace($module)."\\".config('modules.paths.generator.event')."\\".$this->option('event'); |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | private function getNamespace($module) |
101 | 101 | { |
102 | 102 | $namespace = str_replace('/', '\\', config('modules.paths.generator.listener')); |
103 | 103 | |
104 | - return $this->getClassNamespace($module) . "\\" . $namespace; |
|
104 | + return $this->getClassNamespace($module)."\\".$namespace; |
|
105 | 105 | } |
106 | 106 | } |
@@ -68,7 +68,7 @@ |
||
68 | 68 | |
69 | 69 | $generatorPath = $this->laravel['modules']->config('paths.generator.provider'); |
70 | 70 | |
71 | - return $path . $generatorPath . '/' . $this->getFileName() . '.php'; |
|
71 | + return $path.$generatorPath.'/'.$this->getFileName().'.php'; |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | /** |
@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | $module = $this->laravel['modules']->findOrFail($this->getModuleName()); |
58 | 58 | |
59 | 59 | return (new Stub('/event.stub', [ |
60 | - 'NAMESPACE' => $this->getClassNamespace($module) . "\\" . config('modules.paths.generator.event'), |
|
60 | + 'NAMESPACE' => $this->getClassNamespace($module)."\\".config('modules.paths.generator.event'), |
|
61 | 61 | "CLASS" => $this->getClass(), |
62 | - 'DUMMYNAMESPACE' => $this->laravel->getNamespace() . 'Events', |
|
62 | + 'DUMMYNAMESPACE' => $this->laravel->getNamespace().'Events', |
|
63 | 63 | ]))->render(); |
64 | 64 | } |
65 | 65 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $path = $this->laravel['modules']->getModulePath($this->getModuleName()); |
69 | 69 | $seederPath = $this->laravel['modules']->config('paths.generator.event'); |
70 | 70 | |
71 | - return $path . $seederPath . '/' . $this->getFileName() . '.php'; |
|
71 | + return $path.$seederPath.'/'.$this->getFileName().'.php'; |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | /** |
@@ -86,11 +86,11 @@ |
||
86 | 86 | |
87 | 87 | $namespace = $this->laravel['modules']->config('namespace'); |
88 | 88 | |
89 | - $namespace .= '\\' . $module->getStudlyName(); |
|
89 | + $namespace .= '\\'.$module->getStudlyName(); |
|
90 | 90 | |
91 | - $namespace .= '\\' . $this->getDefaultNamespace(); |
|
91 | + $namespace .= '\\'.$this->getDefaultNamespace(); |
|
92 | 92 | |
93 | - $namespace .= '\\' . $extra; |
|
93 | + $namespace .= '\\'.$extra; |
|
94 | 94 | |
95 | 95 | return rtrim($namespace, '\\'); |
96 | 96 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | |
114 | 114 | $generatorPath = $this->laravel['modules']->config('paths.generator.migration'); |
115 | 115 | |
116 | - return $path . $generatorPath . '/' . $this->getFileName() . '.php'; |
|
116 | + return $path.$generatorPath.'/'.$this->getFileName().'.php'; |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | */ |
122 | 122 | private function getFileName() |
123 | 123 | { |
124 | - return date('Y_m_d_His_') . $this->getSchemaName(); |
|
124 | + return date('Y_m_d_His_').$this->getSchemaName(); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
@@ -86,7 +86,7 @@ |
||
86 | 86 | |
87 | 87 | $seederPath = $this->laravel['modules']->config('paths.generator.model'); |
88 | 88 | |
89 | - return $path . $seederPath . '/' . $this->getModelName() . '.php'; |
|
89 | + return $path.$seederPath.'/'.$this->getModelName().'.php'; |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |