Skip to content

Commit

Permalink
Fixing a couple incrementers and decrementers
Browse files Browse the repository at this point in the history
  • Loading branch information
Theaxiom committed Apr 17, 2017
1 parent 534fb76 commit dd111a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Error/Debugger.php
Expand Up @@ -424,7 +424,7 @@ public static function excerpt($file, $line, $context = 2)
if (!isset($data[$line])) {
return $lines;
}
$line = $line - 1;
--$line;
for ($i = $line - $context; $i < $line + $context + 1; $i++) {
if (!isset($data[$i])) {
continue;
Expand Down
2 changes: 1 addition & 1 deletion src/I18n/RelativeTimeFormatter.php
Expand Up @@ -231,7 +231,7 @@ protected function _diffData($futureTime, $pastTime, $backwards, $options)
}

if ($months >= 12) {
$years = $years + 1;
++$years;
$months = $months - 12;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Utility/Hash.php
Expand Up @@ -819,7 +819,7 @@ public static function dimensions(array $data)
$depth = 1;
while ($elem = array_shift($data)) {
if (is_array($elem)) {
$depth += 1;
++$depth;
$data = $elem;
} else {
break;
Expand Down

0 comments on commit dd111a6

Please sign in to comment.