Skip to content

Commit 5327190

Browse files
committed
remove floor function.
Thanks jfcherng for the hint
1 parent a8adfcb commit 5327190

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/jblond/Diff/Renderer/Html/HtmlArray.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,12 @@ protected function fixSpaces($matches)
254254
if ($count == 0) {
255255
continue;
256256
}
257-
$div = (int) floor($count / 2);
257+
$div = ($count / 2);
258258
$mod = $count % 2;
259259
$buffer .= str_repeat('  ', $div).str_repeat(' ', $mod);
260260
}
261261

262-
$div = (int) floor($count / 2);
262+
$div = ($count / 2);
263263
$mod = $count % 2;
264264
return str_repeat('  ', $div).str_repeat(' ', $mod);
265265
}

0 commit comments

Comments
 (0)