@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | public function getManifest(): array |
| 68 | 68 | { |
| 69 | - if (! is_null($this->manifest)) { |
|
| 69 | + if (!is_null($this->manifest)) { |
|
| 70 | 70 | return $this->manifest; |
| 71 | 71 | } |
| 72 | 72 | |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | { |
| 90 | 90 | // todo check this section store on module.php or not? |
| 91 | 91 | $this->getModulesData() |
| 92 | - ->each(function (array $manifest) { |
|
| 92 | + ->each(function(array $manifest) { |
|
| 93 | 93 | if (empty($manifest['files'])) { |
| 94 | 94 | return; |
| 95 | 95 | } |
@@ -102,17 +102,17 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | public function getModulesData(): Collection |
| 104 | 104 | { |
| 105 | - if (! empty(self::$manifestData) && ! app()->runningUnitTests()) { |
|
| 105 | + if (!empty(self::$manifestData) && !app()->runningUnitTests()) { |
|
| 106 | 106 | return self::$manifestData; |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | self::$manifestData = $this->paths |
| 110 | - ->flatMap(function ($path) { |
|
| 110 | + ->flatMap(function($path) { |
|
| 111 | 111 | $manifests = $this->files->glob("{$path}/module.json"); |
| 112 | 112 | is_array($manifests) || $manifests = []; |
| 113 | 113 | |
| 114 | 114 | return collect($manifests) |
| 115 | - ->map(function ($manifest) { |
|
| 115 | + ->map(function($manifest) { |
|
| 116 | 116 | return [ |
| 117 | 117 | 'module_directory' => dirname($manifest), |
| 118 | 118 | ...$this->files->json($manifest), |