fix broken commit dots v0.1.0
authorChristian Weiske <cweiske@cweiske.de>
Wed, 18 Apr 2012 20:16:58 +0000 (22:16 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 18 Apr 2012 20:16:58 +0000 (22:16 +0200)
src/phorkie/Repository/Commit.php

index 031d95e..7c66673 100644 (file)
@@ -44,8 +44,8 @@ class Repository_Commit
         $sum = $r + $g;
         if ($sum > 7) {
             $quot = ceil($sum / 7);
-            $r = int($r / $quot);
-            $g = int($g / $quot);
+            $r = intval($r / $quot);
+            $g = intval($g / $quot);
         }
         $string = str_repeat('g', $g) . str_repeat('r', $r) . str_repeat('n', 7 - $g - $r);