laravel/framework

View on GitHub
src/Illuminate/Database/Console/PruneCommand.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method handle has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function handle(Dispatcher $events)
    {
        $models = $this->models();

        if ($models->isEmpty()) {
Severity: Minor
Found in src/Illuminate/Database/Console/PruneCommand.php - About 1 hr to fix

    Method models has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected function models()
        {
            if (! empty($models = $this->option('model'))) {
                return collect($models)->filter(function ($model) {
                    return class_exists($model);
    Severity: Minor
    Found in src/Illuminate/Database/Console/PruneCommand.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status