@@ -41,11 +41,11 @@ |
||
| 41 | 41 | throw InvalidJson::invalidString($this->getPath()); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - if (! config('modules.cache.enabled')) { |
|
| 44 | + if (!config('modules.cache.enabled')) { |
|
| 45 | 45 | return $attributes; |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | - return app('cache')->remember($this->getPath(), config('modules.cache.lifetime'), function () use ($attributes) { |
|
| 48 | + return app('cache')->remember($this->getPath(), config('modules.cache.lifetime'), function() use ($attributes) { |
|
| 49 | 49 | return $attributes; |
| 50 | 50 | }); |
| 51 | 51 | } |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | return []; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | - $files = array_map(static function ($file) { |
|
| 54 | + $files = array_map(static function($file) { |
|
| 55 | 55 | return str_replace('.php', '', basename($file)); |
| 56 | 56 | }, $files); |
| 57 | 57 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | ->orderBy('migration', 'desc') |
| 76 | 76 | ->get(); |
| 77 | 77 | |
| 78 | - return collect($rows)->map(static function ($row) { |
|
| 78 | + return collect($rows)->map(static function($row) { |
|
| 79 | 79 | return (array) $row; |
| 80 | 80 | })->pluck('migration'); |
| 81 | 81 | } |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | $file = 'module.json'; |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | - return Arr::get($this->moduleJson, $file, function () use ($file) { |
|
| 205 | + return Arr::get($this->moduleJson, $file, function() use ($file) { |
|
| 206 | 206 | return $this->moduleJson[$file] = new Json($this->getPath() . '/' . $file, $this->files); |
| 207 | 207 | }); |
| 208 | 208 | } |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | |
| 214 | 214 | $this->registerProviders(); |
| 215 | 215 | |
| 216 | - if (! $this->isLoadFilesOnBoot()) { |
|
| 216 | + if (!$this->isLoadFilesOnBoot()) { |
|
| 217 | 217 | $this->registerFiles(); |
| 218 | 218 | } |
| 219 | 219 | |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | { |
| 36 | 36 | $path = $this->getPath(); |
| 37 | 37 | |
| 38 | - if (! $this->filesystem->exists($path)) { |
|
| 38 | + if (!$this->filesystem->exists($path)) { |
|
| 39 | 39 | return $this->filesystem->put($path, $this->getContents()); |
| 40 | 40 | } |
| 41 | 41 | |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | foreach ($this->getFiles() as $stub => $file) { |
| 101 | 101 | $path = $this->module->getModulePath($this->getName()) . $file; |
| 102 | 102 | |
| 103 | - if (! $this->filesystem->isDirectory($dir = dirname($path))) { |
|
| 103 | + if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
| 104 | 104 | $this->filesystem->makeDirectory($dir, 0775, true); |
| 105 | 105 | } |
| 106 | 106 | |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | $this->module->getModulePath($this->getName()) . '/' . $folder->getPath() |
| 126 | 126 | ); |
| 127 | 127 | |
| 128 | - if (! $this->filesystem->isDirectory($path)) { |
|
| 128 | + if (!$this->filesystem->isDirectory($path)) { |
|
| 129 | 129 | $this->filesystem->makeDirectory($path, 0755, true); |
| 130 | 130 | |
| 131 | 131 | if (config('modules.stubs.gitkeep')) { |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | { |
| 280 | 280 | $replacements = $this->getReplacements(); |
| 281 | 281 | |
| 282 | - if (! isset($replacements[$stub])) { |
|
| 282 | + if (!isset($replacements[$stub])) { |
|
| 283 | 283 | return []; |
| 284 | 284 | } |
| 285 | 285 | |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | { |
| 340 | 340 | $path = $this->module->getModulePath($this->getName()) . 'module.json'; |
| 341 | 341 | |
| 342 | - if (! $this->filesystem->isDirectory($dir = dirname($path))) { |
|
| 342 | + if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
|
| 343 | 343 | $this->filesystem->makeDirectory($dir, 0775, true); |
| 344 | 344 | } |
| 345 | 345 | |