@@ -56,12 +56,10 @@ discard block |
||
| 56 | 56 | $this->consoleStyle->error("Invalid argument compareTo given."); |
| 57 | 57 | |
| 58 | 58 | return 1; |
| 59 | - } |
|
| 60 | - elseif ($compareTo === null) |
|
| 59 | + } elseif ($compareTo === null) |
|
| 61 | 60 | { |
| 62 | 61 | $compareToIndex = $storeman->getLocalIndex(); |
| 63 | - } |
|
| 64 | - else |
|
| 62 | + } else |
|
| 65 | 63 | { |
| 66 | 64 | $vault = $vaults->getPrioritizedVault($vaults->getVaultsHavingRevision($compareTo)); |
| 67 | 65 | |
@@ -88,9 +86,7 @@ discard block |
||
| 88 | 86 | /** @var DisplayIndexComparisonHelper $helper */ |
| 89 | 87 | $helper = $this->getHelper('displayIndexComparison'); |
| 90 | 88 | $helper->displayIndexComparison($diff, $output, "r{$revision}", $compareTo ? "r{$compareTo}" : "local"); |
| 91 | - } |
|
| 92 | - |
|
| 93 | - else |
|
| 89 | + } else |
|
| 94 | 90 | { |
| 95 | 91 | $output->writeln("No differences found."); |
| 96 | 92 | } |
@@ -59,8 +59,7 @@ |
||
| 59 | 59 | "blobId: " . ($indexObject->getBlobId() ?: '-'), |
| 60 | 60 | "hash(es):" . ($indexObject->getHashes() && $indexObject->getHashes()->count() ? ("\n" . str_replace(', ', "\n", $indexObject->getHashes()->__toString())) : ' -'), |
| 61 | 61 | ]); |
| 62 | - } |
|
| 63 | - elseif ($indexObject->isLink()) |
|
| 62 | + } elseif ($indexObject->isLink()) |
|
| 64 | 63 | { |
| 65 | 64 | $parts = array_merge($parts, [ |
| 66 | 65 | "target: {$indexObject->getLinkTarget()}" |