@@ -233,8 +233,7 @@ |
||
233 | 233 | "size: {$this->size}", |
234 | 234 | "blobId: {$blobId}", |
235 | 235 | ]); |
236 | - } |
|
237 | - elseif ($this->isLink()) |
|
236 | + } elseif ($this->isLink()) |
|
238 | 237 | { |
239 | 238 | $parts = array_merge($parts, [ |
240 | 239 | "target: {$this->linkTarget}", |
@@ -45,7 +45,7 @@ |
||
45 | 45 | |
46 | 46 | $started = time(); |
47 | 47 | |
48 | - while(true) |
|
48 | + while (true) |
|
49 | 49 | { |
50 | 50 | $this->logger->debug("Checking lock existence for '{$name}'..."); |
51 | 51 |
@@ -57,12 +57,10 @@ discard block |
||
57 | 57 | $this->consoleStyle->error("Invalid argument compareTo given."); |
58 | 58 | |
59 | 59 | return 1; |
60 | - } |
|
61 | - elseif ($compareTo === null) |
|
60 | + } elseif ($compareTo === null) |
|
62 | 61 | { |
63 | 62 | $compareToIndex = $storeman->getLocalIndex(); |
64 | - } |
|
65 | - else |
|
63 | + } else |
|
66 | 64 | { |
67 | 65 | $vault = $vaults->getPrioritizedVault($vaults->getVaultsHavingRevision($compareTo)); |
68 | 66 | |
@@ -101,9 +99,7 @@ discard block |
||
101 | 99 | $table->render(); |
102 | 100 | |
103 | 101 | $output->write("\n"); |
104 | - } |
|
105 | - |
|
106 | - else |
|
102 | + } else |
|
107 | 103 | { |
108 | 104 | $output->writeln("No differences found."); |
109 | 105 | } |
@@ -34,16 +34,13 @@ |
||
34 | 34 | |
35 | 35 | return 0; |
36 | 36 | } |
37 | - } |
|
38 | - elseif ($revision === 'local') |
|
37 | + } elseif ($revision === 'local') |
|
39 | 38 | { |
40 | 39 | $index = $storeman->getLocalIndex(); |
41 | - } |
|
42 | - elseif (ctype_digit($revision)) |
|
40 | + } elseif (ctype_digit($revision)) |
|
43 | 41 | { |
44 | 42 | $revision = intval($revision); |
45 | - } |
|
46 | - else |
|
43 | + } else |
|
47 | 44 | { |
48 | 45 | $this->consoleStyle->error("Argument 'revision' invalid."); |
49 | 46 |
@@ -172,8 +172,7 @@ |
||
172 | 172 | $this->logger->info(sprintf("Loading %s remote index...", $revision ? "r{$revision}" : 'latest')); |
173 | 173 | |
174 | 174 | $synchronization = $revision ? |
175 | - $this->getVaultLayout()->getSynchronization($revision) : |
|
176 | - $this->getVaultLayout()->getLastSynchronization(); |
|
175 | + $this->getVaultLayout()->getSynchronization($revision) : $this->getVaultLayout()->getLastSynchronization(); |
|
177 | 176 | |
178 | 177 | return $synchronization ? $synchronization->getIndex() : null; |
179 | 178 | } |
@@ -148,8 +148,7 @@ discard block |
||
148 | 148 | fclose($stream); |
149 | 149 | |
150 | 150 | $this->logger->info("Read {$index->count()} records for last local index"); |
151 | - } |
|
152 | - else |
|
151 | + } else |
|
153 | 152 | { |
154 | 153 | $this->logger->info("No last local index exists"); |
155 | 154 | } |
@@ -239,8 +238,7 @@ discard block |
||
239 | 238 | { |
240 | 239 | $newRevision = $newRevision ?: ($lastSynchronization->getRevision() + 1); |
241 | 240 | $remoteIndex = $lastSynchronization->getIndex(); |
242 | - } |
|
243 | - else |
|
241 | + } else |
|
244 | 242 | { |
245 | 243 | $newRevision = $newRevision ?: 1; |
246 | 244 | $remoteIndex = null; |
@@ -40,8 +40,7 @@ |
||
40 | 40 | { |
41 | 41 | $configuration = new Configuration(); |
42 | 42 | $configuration->exchangeArray($array); |
43 | - } |
|
44 | - catch (\InvalidArgumentException $exception) |
|
43 | + } catch (\InvalidArgumentException $exception) |
|
45 | 44 | { |
46 | 45 | throw new ConfigurationException("In file {$configurationFilePath}", 0, $exception); |
47 | 46 | } |
@@ -229,8 +229,7 @@ |
||
229 | 229 | $vaultConfig = new VaultConfiguration($this); |
230 | 230 | $vaultConfig->exchangeArray($val); |
231 | 231 | } |
232 | - } |
|
233 | - else |
|
232 | + } else |
|
234 | 233 | { |
235 | 234 | // using setter to prevent skipping validation |
236 | 235 | call_user_func([$this, 'set' . ucfirst($key)], $value); |