@@ -120,11 +120,11 @@ discard block |
||
120 | 120 | */ |
121 | 121 | public function decodeContents() |
122 | 122 | { |
123 | - $attributes = json_decode($this->getContents(), 1); |
|
123 | + $attributes = json_decode($this->getContents(), 1); |
|
124 | 124 | |
125 | 125 | // any JSON parsing errors should throw an exception |
126 | 126 | if (json_last_error() > 0) { |
127 | - throw new InvalidJsonException('Error processing file: ' . $this->getPath() . '. Error: ' . json_last_error_msg()); |
|
127 | + throw new InvalidJsonException('Error processing file: '.$this->getPath().'. Error: '.json_last_error_msg()); |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | return $attributes; |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | return $this->decodeContents(); |
143 | 143 | } |
144 | 144 | |
145 | - return app('cache')->store(config('modules.cache.driver'))->remember($this->getPath(), config('modules.cache.lifetime'), function () { |
|
145 | + return app('cache')->store(config('modules.cache.driver'))->remember($this->getPath(), config('modules.cache.lifetime'), function() { |
|
146 | 146 | return $this->decodeContents(); |
147 | 147 | }); |
148 | 148 | } |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | private function handleOptionalMigrationOption() |
95 | 95 | { |
96 | 96 | if ($this->option('migration') === true) { |
97 | - $migrationName = 'create_' . $this->createMigrationName() . '_table'; |
|
97 | + $migrationName = 'create_'.$this->createMigrationName().'_table'; |
|
98 | 98 | $this->call('module:make-migration', ['name' => $migrationName, 'module' => $this->argument('module')]); |
99 | 99 | } |
100 | 100 | } |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | |
177 | 177 | $modelPath = GenerateConfigReader::read('model'); |
178 | 178 | |
179 | - return $path . $modelPath->getPath() . '/' . $this->getModelName() . '.php'; |
|
179 | + return $path.$modelPath->getPath().'/'.$this->getModelName().'.php'; |
|
180 | 180 | } |
181 | 181 | |
182 | 182 | /** |