GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 9dca68...baaa35 )
by Nikhil
10:35
created

MakeTableSeeder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 2
Bugs 1 Features 1
Metric Value
wmc 1
c 2
b 1
f 1
lcom 0
cbo 3
dl 0
loc 25
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 17 1
1
<?php
2
3
use Illuminate\Database\Seeder;
4
5
class MakeTableSeeder extends Seeder
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
6
{
7
    /**
8
     * Run the database seeds.
9
     *
10
     * @return void
11
     */
12
    public function run()
13
    {
14
        $makes = collect([
15
            'Acoustic Guitars',
16
            'Electric Lead Guitars',
17
            'Electro-acoustic Guitars',
18
            'Twelve-string Guitars',
19
            'Archtop Guitars',
20
            'Steel Guitars',
21
            'Resonator Guitars',
22
            'Bass Guitars',
23
            'Double-neck Guitars',
24
        ]);
25
        $makes->each(function ($name) {
26
            factory(App\Make::class)->create(['name' => $name]);
27
        });
28
    }
29
}
30