src/Illuminate/Database/Console/PruneCommand.php
Method handle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle(Dispatcher $events)
{
$models = $this->models();
if ($models->isEmpty()) {
Method models
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function models()
{
if (! empty($models = $this->option('model'))) {
return collect($models)->filter(function ($model) {
return class_exists($model);