@@ -75,17 +75,17 @@ |
||
| 75 | 75 | $status = $line["status"] == "ok" ? "<fg=green>✓</fg=green>" : "<fg=red>✗</fg=red>"; |
| 76 | 76 | |
| 77 | 77 | switch ($line['operation']) { |
| 78 | - case "creating": |
|
| 79 | - $operation = sprintf("<fg=green>%s</fg=green>", ucwords($line['operation'])); |
|
| 80 | - break; |
|
| 81 | - case "overwriting": |
|
| 82 | - $operation = sprintf("<fg=cyan>%s</fg=cyan>", ucwords($line['operation'])); |
|
| 83 | - break; |
|
| 84 | - case "deleting": |
|
| 85 | - $operation = sprintf("<fg=red>%s</fg=red>", ucwords($line['operation'])); |
|
| 86 | - break; |
|
| 87 | - default: |
|
| 88 | - $operation = ucwords($line['operation']); |
|
| 78 | + case "creating": |
|
| 79 | + $operation = sprintf("<fg=green>%s</fg=green>", ucwords($line['operation'])); |
|
| 80 | + break; |
|
| 81 | + case "overwriting": |
|
| 82 | + $operation = sprintf("<fg=cyan>%s</fg=cyan>", ucwords($line['operation'])); |
|
| 83 | + break; |
|
| 84 | + case "deleting": |
|
| 85 | + $operation = sprintf("<fg=red>%s</fg=red>", ucwords($line['operation'])); |
|
| 86 | + break; |
|
| 87 | + default: |
|
| 88 | + $operation = ucwords($line['operation']); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | $output->writeln( |
@@ -54,16 +54,16 @@ |
||
| 54 | 54 | |
| 55 | 55 | $results = array_keys($this->getPomm()->getSessionBuilders()); |
| 56 | 56 | switch (count($results)) { |
| 57 | - case 0: |
|
| 58 | - $output->writeln("There are no session builders in current Pomm instance."); |
|
| 59 | - break; |
|
| 60 | - case 1: |
|
| 61 | - $output->writeln("There is <info>1</info> builder in current Pomm instance:"); |
|
| 62 | - $this->showResultList($output, $results); |
|
| 63 | - break; |
|
| 64 | - default: |
|
| 65 | - $output->writeln(sprintf("There are <info>%d</info> builders in current Pomm instance:", count($results))); |
|
| 66 | - $this->showResultList($output, $results); |
|
| 57 | + case 0: |
|
| 58 | + $output->writeln("There are no session builders in current Pomm instance."); |
|
| 59 | + break; |
|
| 60 | + case 1: |
|
| 61 | + $output->writeln("There is <info>1</info> builder in current Pomm instance:"); |
|
| 62 | + $this->showResultList($output, $results); |
|
| 63 | + break; |
|
| 64 | + default: |
|
| 65 | + $output->writeln(sprintf("There are <info>%d</info> builders in current Pomm instance:", count($results))); |
|
| 66 | + $this->showResultList($output, $results); |
|
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | |