diff --git a/src/CleanUpModelsCommand.php b/src/CleanUpModelsCommand.php index bb1cdd1..8e9ff66 100644 --- a/src/CleanUpModelsCommand.php +++ b/src/CleanUpModelsCommand.php @@ -49,7 +49,7 @@ protected function getModelsThatShouldBeCleanedUp() : Collection { $directories = config('laravel-model-cleanup.directories'); - $modelsFromDirectories = $this->getAllModelsInEachDirectory($directories); + $modelsFromDirectories = $this->getAllModelsFromEachDirectory($directories); return $modelsFromDirectories ->merge(collect(config('laravel-model-cleanup.models'))) @@ -69,7 +69,7 @@ protected function cleanUp(Collection $cleanableModels) }); } - protected function getAllModelsInEachDirectory(array $directories) : Collection + protected function getAllModelsFromEachDirectory(array $directories) : Collection { return collect($directories) ->map(function ($directory) {