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

MigrateCommand::runMigrations()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 6

Duplication

Lines 9
Ratio 100 %

Importance

Changes 0
Metric Value
c 0
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 MigrateCommand extends DatabaseHelperCommand
10
{
11
    const MIGRATIONS_PATH = 'database/migrations';
12
13
    /**
14
     * @return int
15
     */
16
    public function run()
17
    {
18
        $files = glob(self::MIGRATIONS_PATH . '/*.php');
19
        $this->runFiles($files);
20
21
        return 0;
22
    }
23
24
}