Fixing a couple incrementers and decrementers
@@ -424,7 +424,7 @@ class Debugger
if (!isset($data[$line])) {
return $lines;
}
- $line = $line - 1;
+ $line--;
for ($i = $line - $context; $i < $line + $context + 1; $i++) {
if (!isset($data[$i])) {
continue;
@@ -819,7 +819,7 @@ class Hash
$depth = 1;
while ($elem = array_shift($data)) {
if (is_array($elem)) {
- $depth += 1;
+ $depth++;
$data = $elem;
} else {
break;