| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | 29 | protected function setMigrationPaths() |
|
| 15 | { |
||
| 16 | 29 | $migrationSettings = []; |
|
| 17 | |||
| 18 | 29 | if (property_exists($this, 'realPath')) { |
|
| 19 | 29 | $migrationSettings['--realpath'] = $this->realPath ?? false; |
|
| 20 | } |
||
| 21 | |||
| 22 | 29 | if (property_exists($this, 'migrationPaths')) { |
|
| 23 | 29 | $migrationSettings['--path'] = $this->migrationPaths; |
|
| 24 | } |
||
| 25 | |||
| 26 | 29 | return $migrationSettings; |
|
| 27 | } |
||
| 60 |