Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
25 | 2 | public function initPaths($type = 'migrations') |
|
26 | { |
||
27 | 2 | $paths = []; |
|
28 | 2 | if (in_array($type, ['migrations', 'seeds'])) { |
|
29 | 2 | $test = Helper::normalizePath(Helper::getBasePath(), 'database', $type); |
|
30 | 2 | if (is_dir($test)) { |
|
31 | 2 | $paths[] = $test; |
|
32 | } |
||
33 | } |
||
34 | 2 | $this->setPath($paths, $type); |
|
35 | 2 | } |
|
69 | } |