@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | public function restore(int $toRevision = null, string $fromVault = null, SynchronizationProgressListenerInterface $progressListener = null): OperationResultList |
| 118 | 118 | { |
| 119 | - $this->getLogger()->notice(sprintf("Restoring from %s...", $toRevision ? "r{$toRevision}": 'latest revision')); |
|
| 119 | + $this->getLogger()->notice(sprintf("Restoring from %s...", $toRevision ? "r{$toRevision}" : 'latest revision')); |
|
| 120 | 120 | |
| 121 | 121 | $vault = $this->getVaultForDownload($toRevision, $fromVault); |
| 122 | 122 | |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | |
| 133 | 133 | public function dump(string $targetPath, int $revision = null, string $fromVault = null, SynchronizationProgressListenerInterface $progressListener = null): OperationResultList |
| 134 | 134 | { |
| 135 | - $this->getLogger()->notice(sprintf("Dumping from %s to {$targetPath}...", $revision ? "r{$revision}": 'latest revision')); |
|
| 135 | + $this->getLogger()->notice(sprintf("Dumping from %s to {$targetPath}...", $revision ? "r{$revision}" : 'latest revision')); |
|
| 136 | 136 | |
| 137 | 137 | $vault = $this->getVaultForDownload($revision, $fromVault); |
| 138 | 138 | |
@@ -166,8 +166,7 @@ discard block |
||
| 166 | 166 | $this->getLogger()->debug("Vault {$vault->getIdentifier()} is at r{$lastSynchronization->getRevision()}"); |
| 167 | 167 | |
| 168 | 168 | $max = max($max, $lastSynchronization->getRevision()); |
| 169 | - } |
|
| 170 | - else |
|
| 169 | + } else |
|
| 171 | 170 | { |
| 172 | 171 | $this->getLogger()->debug("Vault {$vault->getIdentifier()} has no synchronizations yet"); |
| 173 | 172 | } |
@@ -226,8 +225,7 @@ discard block |
||
| 226 | 225 | if ($vaultTitle) |
| 227 | 226 | { |
| 228 | 227 | $vault = $vaultContainer->getVaultByTitle($vaultTitle); |
| 229 | - } |
|
| 230 | - else |
|
| 228 | + } else |
|
| 231 | 229 | { |
| 232 | 230 | $vaults = $vaultContainer->getVaultsHavingRevision($revision); |
| 233 | 231 | $vault = $vaultContainer->getPrioritizedVault($vaults); |
@@ -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); |