Commit 3c7d2199 authored by Sebastian Bergmann's avatar Sebastian Bergmann

Fix CS/WS issues

parent a37535ba
...@@ -26,6 +26,7 @@ class Chunk ...@@ -26,6 +26,7 @@ class Chunk
* @var int * @var int
*/ */
private $end; private $end;
/** /**
* @var int * @var int
*/ */
......
...@@ -363,10 +363,13 @@ class Differ ...@@ -363,10 +363,13 @@ class Differ
$end = array(); $end = array();
\reset($to); \reset($to);
foreach ($from as $k => $v) { foreach ($from as $k => $v) {
$toK = \key($to); $toK = \key($to);
if ($toK === $k && $v === $to[$k]) { if ($toK === $k && $v === $to[$k]) {
$start[$k] = $v; $start[$k] = $v;
unset($from[$k], $to[$k]); unset($from[$k], $to[$k]);
} else { } else {
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment