|
@@ 292-303 (lines=12) @@
|
| 289 |
|
if ($environment !== null && $dbReference !== null) { |
| 290 |
|
|
| 291 |
|
$environment = $this->getEnvironment($environment); |
| 292 |
|
if (isset($environment[$dbReference]['paths']['migrations'])) { |
| 293 |
|
if (!is_array($environment[$dbReference]['paths']['migrations'])) { |
| 294 |
|
return [$environment[$dbReference]['paths']['migrations']]; |
| 295 |
|
} else { |
| 296 |
|
foreach ($environment[$dbReference]['paths']['migrations'] as $namespace => $migrationPath) { |
| 297 |
|
$paths[$namespace]= $migrationPath; |
| 298 |
|
} |
| 299 |
|
if (count($paths) > 0) { |
| 300 |
|
$this->values['paths']['migrations']= $paths; |
| 301 |
|
} |
| 302 |
|
} |
| 303 |
|
} |
| 304 |
|
} elseif (is_null($environment) && is_null($dbReference)) { |
| 305 |
|
if (isset($this->values['environments']) && is_array($this->values['environments'])) { |
| 306 |
|
$environments = array_keys($this->values['environments']); |
|
@@ 365-377 (lines=13) @@
|
| 362 |
|
|
| 363 |
|
if ($environment !== null && $dbReference !== null) { |
| 364 |
|
$environment = $this->getEnvironment($environment); |
| 365 |
|
if (isset($environment[$dbReference]['paths']['seeds'])) { |
| 366 |
|
|
| 367 |
|
if (!is_array($environment[$dbReference]['paths']['seeds'])) { |
| 368 |
|
return [$environment[$dbReference]['paths']['seeds']]; |
| 369 |
|
} else { |
| 370 |
|
foreach ($environment[$dbReference]['paths']['seeds'] as $namespace => $seedPath) { |
| 371 |
|
$paths[$namespace]= $seedPath; |
| 372 |
|
} |
| 373 |
|
if (count($paths) > 0) { |
| 374 |
|
$this->values['paths']['seeds']= $paths; |
| 375 |
|
} |
| 376 |
|
} |
| 377 |
|
} |
| 378 |
|
} elseif (is_null($environment) && is_null($dbReference)) { |
| 379 |
|
if (isset($this->values['environments']) && is_array($this->values['environments'])) { |
| 380 |
|
$environments = array_keys($this->values['environments']); |