@@ -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 | } |
@@ -99,9 +99,9 @@ discard block |
||
99 | 99 | public function getMigrations($reverse = false) |
100 | 100 | { |
101 | 101 | if (!empty($this->subpath)) { |
102 | - $files = $this->laravel['files']->glob($this->getPath() . '/' . $this->subpath); |
|
102 | + $files = $this->laravel['files']->glob($this->getPath().'/'.$this->subpath); |
|
103 | 103 | } else { |
104 | - $files = $this->laravel['files']->glob($this->getPath() . '/*_*.php'); |
|
104 | + $files = $this->laravel['files']->glob($this->getPath().'/*_*.php'); |
|
105 | 105 | } |
106 | 106 | |
107 | 107 | // Once we have the array of files in the directory we will just remove the |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | return []; |
112 | 112 | } |
113 | 113 | |
114 | - $files = array_map(function ($file) { |
|
114 | + $files = array_map(function($file) { |
|
115 | 115 | return str_replace('.php', '', basename($file)); |
116 | 116 | }, $files); |
117 | 117 | |
@@ -216,8 +216,8 @@ discard block |
||
216 | 216 | |
217 | 217 | $class = Str::studly($name); |
218 | 218 | |
219 | - if (!class_exists($class) && file_exists($this->getPath() . '/' . $file . '.php')) { |
|
220 | - return include $this->getPath() . '/' . $file . '.php'; |
|
219 | + if (!class_exists($class) && file_exists($this->getPath().'/'.$file.'.php')) { |
|
220 | + return include $this->getPath().'/'.$file.'.php'; |
|
221 | 221 | } |
222 | 222 | |
223 | 223 | return new $class(); |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | { |
233 | 233 | $path = $this->getPath(); |
234 | 234 | foreach ($files as $file) { |
235 | - $this->laravel['files']->requireOnce($path . '/' . $file . '.php'); |
|
235 | + $this->laravel['files']->requireOnce($path.'/'.$file.'.php'); |
|
236 | 236 | } |
237 | 237 | } |
238 | 238 | |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | |
316 | 316 | $result = $query->orderBy('migration', 'desc')->get(); |
317 | 317 | |
318 | - return collect($result)->map(function ($item) { |
|
318 | + return collect($result)->map(function($item) { |
|
319 | 319 | return (array) $item; |
320 | 320 | })->pluck('migration'); |
321 | 321 | } |