Completed
Push — master ( a8c5d7...b64b96 )
by Arne
02:19
created
src/Storeman.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -166,8 +166,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Config/ConfigurationFileReader.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Config/Configuration.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -229,8 +229,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.