TestBinaryRoleSeeder::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 3
c 1
b 1
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
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