Passed
Push — master ( d92c42...cb3f3d )
by Sebastian
08:02
created
src/Diff.php 1 patch
Braces   +4 added lines, -7 removed lines patch added patch discarded remove patch
@@ -173,8 +173,7 @@  discard block
 block discarded – undo
173 173
         {
174 174
             $this->sequence1 = self::splitCharacters($this->string1);
175 175
             $this->sequence2 = self::splitCharacters($this->string2);
176
-        }
177
-        else
176
+        } else
178 177
         {
179 178
             $this->sequence1 = self::splitLines($this->string1);
180 179
             $this->sequence2 = self::splitLines($this->string2);
@@ -302,7 +301,7 @@  discard block
 block discarded – undo
302 301
                 if ($this->sequence1[$index1 + $start - 1]
303 302
                     === $this->sequence2[$index2 + $start - 1]){
304 303
                         $table[$index1][$index2] = $table[$index1 - 1][$index2 - 1] + 1;
305
-                }else{
304
+                } else{
306 305
                     $table[$index1][$index2] =
307 306
                     max($table[$index1 - 1][$index2], $table[$index1][$index2 - 1]);
308 307
                 }
@@ -346,16 +345,14 @@  discard block
 block discarded – undo
346 345
                 $diff[] = array($this->sequence1[$index1 + $start - 1], self::UNMODIFIED);
347 346
                 $index1 --;
348 347
                 $index2 --;
349
-            }
350
-            elseif (
348
+            } elseif (
351 349
                 $index2 > 0
352 350
                 && $table[$index1][$index2] === $table[$index1][$index2 - 1]
353 351
             ) {
354 352
                 // update the diff and the indices
355 353
                 $diff[] = array($this->sequence2[$index2 + $start - 1], self::INSERTED);
356 354
                 $index2 --;
357
-            }
358
-            else
355
+            } else
359 356
             {
360 357
                 // update the diff and the indices
361 358
                 $diff[] = array($this->sequence1[$index1 + $start - 1], self::DELETED);
Please login to merge, or discard this patch.