Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
13 | protected function appendMigrations( |
||
14 | console\Application $application, |
||
15 | string $migrationNamespace |
||
16 | ): void { |
||
17 | if (!array_key_exists('migrate', $application->controllerMap)) { |
||
18 | $application->controllerMap['migrate'] = [ |
||
19 | 'class' => console\controllers\MigrateController::class, |
||
20 | ]; |
||
21 | } |
||
22 | $application->controllerMap['migrate']['migrationNamespaces'][] = $migrationNamespace; |
||
23 | } |
||
24 | } |
||
25 |