@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | { |
| 88 | 88 | $this->inferProjectSourcePaths(); |
| 89 | 89 | |
| 90 | - return array_values(array_filter($this->getProjectClasses(), function (string $class) { |
|
| 90 | + return array_values(array_filter($this->getProjectClasses(), function(string $class) { |
|
| 91 | 91 | return Str::startsWith($class, $this->projectNamespaces) && $this->isSearchableModel($class); |
| 92 | 92 | })); |
| 93 | 93 | } |
@@ -131,13 +131,13 @@ discard block |
||
| 131 | 131 | */ |
| 132 | 132 | private function inferProjectSourcePaths(): void |
| 133 | 133 | { |
| 134 | - $rootPackage = ComposerFactory::create(new NullIO(), null,null)->getPackage(); |
|
| 134 | + $rootPackage = ComposerFactory::create(new NullIO(), null, null)->getPackage(); |
|
| 135 | 135 | $autoload = array_merge_recursive( |
| 136 | 136 | $rootPackage->getAutoload(), |
| 137 | 137 | $rootPackage->getDevAutoload() |
| 138 | 138 | ); |
| 139 | 139 | |
| 140 | - if (!isset($autoload['psr-4'])) { |
|
| 140 | + if ( ! isset($autoload['psr-4'])) { |
|
| 141 | 141 | throw new RuntimeException('psr-4 autoload mappings are not present in composer.json'); |
| 142 | 142 | } |
| 143 | 143 | |