Completed
Push — master ( a851cc...20dc5c )
by Arne
02:03
created
src/IndexObject.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -168,17 +168,14 @@
 block discarded – undo
168 168
         {
169 169
             $object->type = static::TYPE_LINK;
170 170
             $object->linkTarget = str_replace($basePath, '', readlink($absolutePath));
171
-        }
172
-        elseif (is_file($absolutePath))
171
+        } elseif (is_file($absolutePath))
173 172
         {
174 173
             $object->type = static::TYPE_FILE;
175 174
             $object->size = (int)$stat['size'];
176
-        }
177
-        elseif (is_dir($absolutePath))
175
+        } elseif (is_dir($absolutePath))
178 176
         {
179 177
             $object->type = static::TYPE_DIR;
180
-        }
181
-        else
178
+        } else
182 179
         {
183 180
             throw new \LogicException();
184 181
         }
Please login to merge, or discard this patch.
src/OperationListBuilder/StandardOperationListBuilder.php 1 patch
Braces   +3 added lines, -9 removed lines patch added patch discarded remove patch
@@ -58,9 +58,7 @@  discard block
 block discarded – undo
58 58
                         $directoryMtimes[$mergedIndexObject->getRelativePath()] = $mergedIndexObject->getMtime();
59 59
                     }
60 60
                 }
61
-            }
62
-
63
-            elseif ($mergedIndexObject->isFile())
61
+            } elseif ($mergedIndexObject->isFile())
64 62
             {
65 63
                 // local file did not exist, hasn't been a file before or is outdated
66 64
                 $doDownloadFile = $localObject === null || !$localObject->isFile() || $localObject->getMtime() < $mergedIndexObject->getMtime();
@@ -76,9 +74,7 @@  discard block
 block discarded – undo
76 74
 
77 75
                     $modifiedPaths[] = $mergedIndexObject->getRelativePath();
78 76
                 }
79
-            }
80
-
81
-            elseif ($mergedIndexObject->isLink())
77
+            } elseif ($mergedIndexObject->isLink())
82 78
             {
83 79
                 if ($localObject !== null && $localObject->getLinkTarget() !== $mergedIndexObject->getLinkTarget())
84 80
                 {
@@ -87,9 +83,7 @@  discard block
 block discarded – undo
87 83
 
88 84
                     $modifiedPaths[] = $mergedIndexObject->getRelativePath();
89 85
                 }
90
-            }
91
-
92
-            else
86
+            } else
93 87
             {
94 88
                 // unknown/invalid object type
95 89
                 throw new Exception();
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
@@ -149,8 +149,7 @@
 block discarded – undo
149 149
     public function loadRemoteIndex(int $revision = null): ?Index
150 150
     {
151 151
         $synchronization = $revision ?
152
-            $this->getVaultLayout()->getSynchronization($revision) :
153
-            $this->getVaultLayout()->getLastSynchronization();
152
+            $this->getVaultLayout()->getSynchronization($revision) : $this->getVaultLayout()->getLastSynchronization();
154 153
 
155 154
         return $synchronization ? $synchronization->getIndex() : null;
156 155
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -216,8 +216,7 @@
 block discarded – undo
216 216
         {
217 217
             $newRevision = $newRevision ?: ($lastSynchronization->getRevision() + 1);
218 218
             $remoteIndex = $lastSynchronization->getIndex();
219
-        }
220
-        else
219
+        } else
221 220
         {
222 221
             $newRevision = $newRevision ?: 1;
223 222
             $remoteIndex = null;
Please login to merge, or discard this patch.
src/Operation/UnlinkOperation.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@
 block discarded – undo
20 20
         if (is_file($absolutePath) || is_link($absolutePath))
21 21
         {
22 22
             return unlink($localBasePath . $this->relativePath);
23
-        }
24
-        elseif (is_dir($absolutePath))
23
+        } elseif (is_dir($absolutePath))
25 24
         {
26 25
             return rmdir($absolutePath);
27 26
         }
Please login to merge, or discard this patch.
src/Cli/Command/InfoCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,8 +108,7 @@
 block discarded – undo
108 108
             }
109 109
 
110 110
             $table->render();
111
-        }
112
-        else
111
+        } else
113 112
         {
114 113
             $output->writeln('No synchronizations so far.');
115 114
         }
Please login to merge, or discard this patch.
src/VaultConfiguration.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -189,6 +189,9 @@
 block discarded – undo
189 189
         return $this->settings;
190 190
     }
191 191
 
192
+    /**
193
+     * @return string
194
+     */
192 195
     public function getSetting(string $name)
193 196
     {
194 197
         return isset($this->settings[$name]) ? $this->settings[$name] : null;
Please login to merge, or discard this patch.
src/Cli/ConflictHandler/ConsolePromptConflictHandler.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
             $this->consoleStyle->warning("Invalid choice");
47 47
         }
48
-        while(true);
48
+        while (true);
49 49
 
50 50
         return $return;
51 51
     }
Please login to merge, or discard this patch.
src/Cli/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 class Application extends \Symfony\Component\Console\Application
6 6
 {
7
-    public const LOGO =  <<<TXT
7
+    public const LOGO = <<<TXT
8 8
    ___           __   _      ___ 
9 9
   / _ | ________/ /  (_)  __/ _ \
10 10
  / __ |/ __/ __/ _ \/ / |/ / , _/
Please login to merge, or discard this patch.
src/Storeman.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -260,8 +260,7 @@
 block discarded – undo
260 260
         if ($vaultTitle)
261 261
         {
262 262
             $vault = $this->getVault($vaultTitle);
263
-        }
264
-        else
263
+        } else
265 264
         {
266 265
             $vaults = $this->getVaultsHavingRevision($revision);
267 266
             $vault = $this->getPrioritizedVault($vaults);
Please login to merge, or discard this patch.