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

NotificationsTableSeeder::run()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 46
Code Lines 39

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 46
rs 8.9411
cc 1
eloc 39
nc 1
nop 0
1
<?php
2
3
use Illuminate\Database\Seeder;
4
5
class NotificationsTableSeeder 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('notifications')->delete();
16
        
17
        \DB::table('notifications')->insert(array (
18
            0 => 
19
            array (
20
                'id' => 1,
21
                'icon' => 'flight_land',
22
                'link' => '/purchases/1',
23
                'message' => 'Purchase of 10 Acoustic Guitar has arrived from Aria Resellers, China.',
24
                'notifiable_type' => 'App\\Purchase',
25
                'notifiable_id' => 1,
26
                'dismissed' => 1,
27
                'created_at' => '2016-04-18 13:05:18',
28
                'updated_at' => '2016-04-18 13:07:59',
29
                'deleted_at' => NULL,
30
            ),
31
            1 => 
32
            array (
33
                'id' => 2,
34
                'icon' => 'flight_land',
35
                'link' => '/purchases/3',
36
                'message' => 'Purchase of 10 Acoustic Guitar has arrived from Aria Resellers, China.',
37
                'notifiable_type' => 'App\\Purchase',
38
                'notifiable_id' => 3,
39
                'dismissed' => 1,
40
                'created_at' => '2016-04-18 13:06:42',
41
                'updated_at' => '2016-04-18 13:07:54',
42
                'deleted_at' => NULL,
43
            ),
44
            2 => 
45
            array (
46
                'id' => 3,
47
                'icon' => 'flight_land',
48
                'link' => '/purchases/4',
49
                'message' => 'Purchase of 50 Electric Guitars has arrived from Aria Resellers, China.',
50
                'notifiable_type' => 'App\\Purchase',
51
                'notifiable_id' => 4,
52
                'dismissed' => 1,
53
                'created_at' => '2016-04-18 13:07:11',
54
                'updated_at' => '2016-04-18 13:07:51',
55
                'deleted_at' => NULL,
56
            ),
57
        ));
58
    }
59
}
60