| @@ 362-379 (lines=18) @@ | ||
| 359 | */ |
|
| 360 | private function printPathMappingStateHeader(IO $io, $pathMappingState) |
|
| 361 | { |
|
| 362 | switch ($pathMappingState) { |
|
| 363 | case PathMappingState::ENABLED: |
|
| 364 | $io->writeLine('The following path mappings are currently enabled:'); |
|
| 365 | $io->writeLine(''); |
|
| 366 | ||
| 367 | return; |
|
| 368 | case PathMappingState::NOT_FOUND: |
|
| 369 | $io->writeLine('The target paths of the following path mappings were not found:'); |
|
| 370 | $io->writeLine(''); |
|
| 371 | ||
| 372 | return; |
|
| 373 | case PathMappingState::CONFLICT: |
|
| 374 | $io->writeLine('Some path mappings have conflicting paths:'); |
|
| 375 | $io->writeLine(' (add the module names to the "override-order" key in puli.json to resolve)'); |
|
| 376 | $io->writeLine(''); |
|
| 377 | ||
| 378 | return; |
|
| 379 | } |
|
| 380 | } |
|
| 381 | ||
| 382 | private function mappingsEqual(PathMapping $mapping1, PathMapping $mapping2) |
|
| @@ 293-310 (lines=18) @@ | ||
| 290 | */ |
|
| 291 | private function printModuleState(IO $io, $ModuleState) |
|
| 292 | { |
|
| 293 | switch ($ModuleState) { |
|
| 294 | case ModuleState::ENABLED: |
|
| 295 | $io->writeLine('The following modules are currently enabled:'); |
|
| 296 | $io->writeLine(''); |
|
| 297 | ||
| 298 | return; |
|
| 299 | case ModuleState::NOT_FOUND: |
|
| 300 | $io->writeLine('The following modules could not be found:'); |
|
| 301 | $io->writeLine(' (use "puli module --clean" to remove)'); |
|
| 302 | $io->writeLine(''); |
|
| 303 | ||
| 304 | return; |
|
| 305 | case ModuleState::NOT_LOADABLE: |
|
| 306 | $io->writeLine('The following modules could not be loaded:'); |
|
| 307 | $io->writeLine(''); |
|
| 308 | ||
| 309 | return; |
|
| 310 | } |
|
| 311 | } |
|
| 312 | ||
| 313 | /** |
|