Completed
Push — master ( de266e...61eb5c )
by Abdelrahman
02:51
created

RinvexFortDatabaseSeeder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 10 1
1
<?php
2
3
/*
4
 * NOTICE OF LICENSE
5
 *
6
 * Part of the Rinvex Fort Package.
7
 *
8
 * This source file is subject to The MIT License (MIT)
9
 * that is bundled with this package in the LICENSE file.
10
 *
11
 * Package: Rinvex Fort Package
12
 * License: The MIT License (MIT)
13
 * Link:    https://rinvex.com
14
 */
15
16
use Illuminate\Database\Seeder;
17
use Illuminate\Database\Eloquent\Model;
18
19
class RinvexFortDatabaseSeeder 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...
20
{
21
    /**
22
     * {@inheritDoc}
23
     */
24
    public function run()
25
    {
26
        Model::unguard();
27
28
        $this->call(RinvexFortAbilitiesTableSeeder::class);
29
        $this->call(RinvexFortRolesTableSeeder::class);
30
        $this->call(RinvexFortUsersTableSeeder::class);
31
32
        Model::reguard();
33
    }
34
}
35