Completed
Push — master ( fefd2b...bbdd37 )
by Vincenzo
02:31
created

SeedCommand::runSeeders()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 6

Duplication

Lines 9
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 9
loc 9
rs 9.6666
cc 2
eloc 6
nc 2
nop 1
1
<?php
2
3
4
namespace App\Lib\Slime\Console\Commands;
5
6
7
use App\Lib\Slime\Console\DatabaseHelperCommand;
8
9
class SeedCommand extends DatabaseHelperCommand
10
{
11
    const SEED_PATH = 'database/seeds';
12
13
    /**
14
     * @return int
15
     */
16
    public function run()
17
    {
18
        $files = glob(self::SEED_PATH . '/*.php');
19
        $this->runFiles($files);
20
21
        return 0;
22
    }
23
}