davide-casiraghi/laravel-events-calendar

View on GitHub
database/seeds/CountriesTableSeeder.php

Summary

Maintainability
C
1 day
Test Coverage

Method run has 260 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function run()
    {
        $countries = [
            ['id' => '1', 'name' => 'Italy', 'continent_id' => '6', 'code' => 'IT'],
            ['id' => '2', 'name' => 'United States', 'continent_id' => '3', 'code' => 'US'],
Severity: Major
Found in database/seeds/CountriesTableSeeder.php - About 1 day to fix

    File CountriesTableSeeder.php has 269 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    use Illuminate\Database\Seeder;
    use Illuminate\Support\Facades\DB;
    
    
    Severity: Minor
    Found in database/seeds/CountriesTableSeeder.php - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status