Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | 1 | protected function setMigrationPaths() |
|
40 | { |
||
41 | 1 | $migrationSettings = []; |
|
42 | |||
43 | 1 | if(property_exists($this, 'realPath')) { |
|
44 | 1 | $migrationSettings['--realpath'] = $this->realPath ?? false; |
|
45 | } |
||
46 | |||
47 | 1 | if (property_exists($this, 'migrationPaths')) { |
|
48 | 1 | $migrationSettings['--path'] = $this->migrationPaths; |
|
49 | } |
||
50 | |||
51 | 1 | return $migrationSettings; |
|
52 | } |
||
54 |