Completed
Push — master ( a8c5d7...b64b96 )
by Arne
02:19
created
src/Index/IndexObject.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -233,8 +233,7 @@
 block discarded – undo
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}",
Please login to merge, or discard this patch.
src/LockAdapter/StorageBasedLockAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Cli/Command/DiffCommand.php 1 patch
Braces   +3 added lines, -7 removed lines patch added patch discarded remove patch
@@ -57,12 +57,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Cli/Command/ShowIndexCommand.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,16 +34,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Vault.php 2 patches
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -172,8 +172,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -148,8 +148,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
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.