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 ( ea9462...f6a83c )
by Nikhil
10:26
created

ModelsTableSeeder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 88
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
B run() 0 79 1
1
<?php
2
3
use Illuminate\Database\Seeder;
4
5
class ModelsTableSeeder 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
    /**
9
     * Auto generated seed file
10
     *
11
     * @return void
12
     */
13
    public function run()
14
    {
15
        \DB::table('models')->delete();
16
        
17
        \DB::table('models')->insert(array (
18
            0 => 
19
            array (
20
                'id' => 1,
21
                'make_id' => 2,
22
                'name' => '1G-1',
23
                'photo' => 'images/e422457682369fd5a176bc2b711750ea55611abd.jpg',
24
                'deleted_at' => NULL,
25
            ),
26
            1 => 
27
            array (
28
                'id' => 2,
29
                'make_id' => 2,
30
                'name' => '100 Series',
31
                'photo' => 'images/6d162048307629e84559fef71935feeb1555b789.jpg',
32
                'deleted_at' => NULL,
33
            ),
34
            2 => 
35
            array (
36
                'id' => 3,
37
                'make_id' => 2,
38
                'name' => '100 Series Delta Player',
39
                'photo' => 'images/ce92299bb79ab4b54dfdf2097790e4fef5ebc3c8.jpg',
40
                'deleted_at' => NULL,
41
            ),
42
            3 => 
43
            array (
44
                'id' => 4,
45
                'make_id' => 2,
46
                'name' => '200 Series',
47
                'photo' => 'images/a81c9f2f24018cf6e31e6b4085df8557b5a6e32e.jpg',
48
                'deleted_at' => NULL,
49
            ),
50
            4 => 
51
            array (
52
                'id' => 5,
53
                'make_id' => 2,
54
                'name' => '500 Series',
55
                'photo' => 'images/81962e3d81810a5cd668ce409c1aefa60c337c9a.jpg',
56
                'deleted_at' => NULL,
57
            ),
58
            6 => 
59
            array (
60
                'id' => 7,
61
                'make_id' => 1,
62
                'name' => '714/615 Series',
63
                'photo' => 'images/5ef886bc0575a3cce636c3238d47dc7646425810.jpg',
64
                'deleted_at' => NULL,
65
            ),
66
            7 => 
67
            array (
68
                'id' => 8,
69
                'make_id' => 1,
70
                'name' => 'ClassAxe',
71
                'photo' => 'images/f448d7a4d16d7ddd2179481637d4e18e60fdb9a4.jpg',
72
                'deleted_at' => NULL,
73
            ),
74
            8 => 
75
            array (
76
                'id' => 9,
77
                'make_id' => 1,
78
                'name' => 'HollowBody',
79
                'photo' => 'images/cfcb9f46cf8417c340aca1f4694afdeb6c9de216.jpg',
80
                'deleted_at' => NULL,
81
            ),
82
            9 => 
83
            array (
84
                'id' => 10,
85
                'make_id' => 1,
86
                'name' => 'Mac Series',
87
                'photo' => 'images/bafd2f462c4c0788bcc363879bd9586557e948cb.jpg',
88
                'deleted_at' => NULL,
89
            ),
90
        ));
91
    }
92
}
93