Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche authored and actions-user committed Nov 2, 2020
1 parent d1fc027 commit b760d6c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/DiscoverModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ public function discover(): Collection
$ignoredFiles = $this->getAutoloadedFiles(base_path('composer.json'));

return collect($files)
->reject(fn(SplFileInfo $file) => in_array($file->getPathname(), $ignoredFiles))
->map(fn(SplFileInfo $file) => $this->fullyQualifiedClassNameFromFile($file))
->filter(fn(string $modelClass) => $this->shouldClassBeIncluded($modelClass))
->map(fn(string $modelClass) => new ReflectionClass($modelClass))
->reject(fn(ReflectionClass $reflection) => $reflection->isAbstract());
->reject(fn (SplFileInfo $file) => in_array($file->getPathname(), $ignoredFiles))
->map(fn (SplFileInfo $file) => $this->fullyQualifiedClassNameFromFile($file))
->filter(fn (string $modelClass) => $this->shouldClassBeIncluded($modelClass))
->map(fn (string $modelClass) => new ReflectionClass($modelClass))
->reject(fn (ReflectionClass $reflection) => $reflection->isAbstract());
}

private function fullyQualifiedClassNameFromFile(SplFileInfo $file): string
Expand Down Expand Up @@ -129,6 +129,6 @@ private function getAutoloadedFiles($composerJsonPath): array
$composerContents['autoload-dev']['files'] ?? []
);

return array_map(fn(string $path) => realpath($basePath . $path), $paths);
return array_map(fn (string $path) => realpath($basePath . $path), $paths);
}
}

0 comments on commit b760d6c

Please sign in to comment.