Passed
Push — master ( 97a45c...28cbcb )
by nguereza
05:08 queued 02:59
created

RoleUserSeed20240616000006::run()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 6
nc 2
nop 0
dl 0
loc 12
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Platine\Framework\Migration\Seed;
5
6
use Platine\Framework\Migration\Seed\AbstractSeed;
7
8
class RoleUserSeed20240616000006 extends AbstractSeed
9
{
10
11
    public function run(): void
12
    {
13
      //Action when run the seed
14
      
15
        $data = [
16
    0 => [
17
        'user_id' => 1,
18
        'role_id' => 1,
19
    ],
20
];
21
        foreach ($data as $row) {
22
            $this->insert($row)->into('roles_users');
23
        }
24
        
25
    }
26
}