khalyomede/laravel-seed

View on GitHub

Showing 2 of 4 total issues

SeedMake has 22 functions (exceeds 20 allowed). Consider refactoring.
Open

class SeedMake extends Command
{
    use CapableOfRunningSeeds;

    protected $signature = "seed:make {name : The name of the seeder. Can have sub folders in the name.} {--f|force : Will erase any existing file.} {--m|model= : The model into which to seed data.}";
Severity: Minor
Found in src/Commands/SeedMake.php - About 2 hrs to fix

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

        public function handle()
        {
            $this->batchNumber = Seeder::getNextBatchNumber();
    
            $seedFileNames = $this->getSeedFiles();
    Severity: Minor
    Found in src/Commands/Seed.php - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language