Passed
Push — master ( 92224a...b0c10d )
by nguereza
03:55 queued 01:47
created

RolesSeed   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 15 2
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 RolesSeed extends AbstractSeed
9
{
10
11
    public function run(): void
12
    {
13
      //Action when run the seed
14
      
15
        $data = [
16
    0 => [
17
        'id' => 1,
18
        'name' => 'Administrator',
19
        'description' => NULL,
20
        'created_at' => '2023-12-06 00:37:48',
21
        'updated_at' => '2023-12-07 06:16:19',
22
    ],
23
];
24
        foreach ($data as $row) {
25
            $this->insert($row)->into('roles');
26
        }
27
        
28
    }
29
}