TestBinaryRoleSeeder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 1
f 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 5 1
1
<?php
2
3
use Illuminate\Database\Seeder;
4
use MaksimM\CompositePrimaryKeys\Tests\Stubs\TestBinaryRole;
5
6
class TestBinaryRoleSeeder extends Seeder
7
{
8
    /**
9
     * Run the database seeds.
10
     */
11
    public function run()
12
    {
13
        TestBinaryRole::create([
14
            'role_id' => md5(1, true),
15
            'name'    => 'Foo',
16
        ]);
17
    }
18
}
19