return '/phorkie/anonymous.png';
}
- //workaround for https://pear.php.net/bugs/bug.php?id=19384
- require_once 'PEAR/Services/Libravatar.php';
-
$s = new \Services_Libravatar();
return $s->url(
$this->committerEmail,
$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);