Completed
Push — master ( aa9feb...52b2fb )
by Arne
02:41
created
src/IndexMerger/StandardIndexMerger.php 1 patch
Braces   +4 added lines, -10 removed lines patch added patch discarded remove patch
@@ -50,27 +50,21 @@
 block discarded – undo
50 50
                 if ($localObjectModified)
51 51
                 {
52 52
                     $mergedIndex->addObject($localObject);
53
-                }
54
-                elseif ($remoteIndex === null)
53
+                } elseif ($remoteIndex === null)
55 54
                 {
56 55
                     $mergedIndex->addObject($localObject);
57 56
                 }
58
-            }
59
-            else
57
+            } else
60 58
             {
61 59
                 $remoteObjectModified = $lastLocalIndex ? ($remoteObject->getMtime() > $lastLocalIndex->getCreated()->getTimestamp()) : false;
62 60
 
63 61
                 if (!$localObjectModified)
64 62
                 {
65 63
                     $mergedIndex->addObject($remoteObject);
66
-                }
67
-
68
-                elseif (!$remoteObjectModified)
64
+                } elseif (!$remoteObjectModified)
69 65
                 {
70 66
                     $mergedIndex->addObject($localObject);
71
-                }
72
-
73
-                else
67
+                } else
74 68
                 {
75 69
                     $conflictHandler->handleConflict($remoteObject, $localObject, $lastLocalIndex ? $lastLocalIndex->getObjectByPath($localObject->getRelativePath()) : null);
76 70
                 }
Please login to merge, or discard this patch.