summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/phorkie/Repository/Commit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/phorkie/Repository/Commit.php b/src/phorkie/Repository/Commit.php
index 031d95e..7c66673 100644
--- a/src/phorkie/Repository/Commit.php
+++ b/src/phorkie/Repository/Commit.php
@@ -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);