Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
50 | 2 | protected function initPaths($type = 'migrations') |
|
51 | { |
||
52 | 2 | $paths = []; |
|
53 | 2 | if (in_array($type, ['migrations', 'seeds'])) { |
|
54 | 2 | $test = Helper::normalizePath(Helper::getBasePath(), 'database', $type); |
|
55 | 2 | if (is_dir($test)) { |
|
56 | 2 | $paths[] = $test; |
|
57 | } |
||
58 | } |
||
59 | 2 | $this->setPath($paths, $type); |
|
60 | 2 | } |
|
62 |