CreateCmsRoles   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A up() 0 4 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Oscer\Cms\Core\Models\Role;
5
6
class CreateCmsRoles extends Migration
7
{
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     */
13
    public function up()
14
    {
15
        Role::create(['name' => Role::SUPER_ADMIN_ROLE]);
16
    }
17
}
18