5 class Repository_Commit
9 public $committerEmail;
10 public $committerTime;
17 public function getIconUrl()
19 //workaround for https://pear.php.net/bugs/bug.php?id=19384
20 require_once 'PEAR/Services/Libravatar.php';
22 $s = new \Services_Libravatar();
24 $this->committerEmail,
27 'default' => Tools::fullUrl('/phorkie/anonymous.png')
33 * @return array Array with 7 fields, each has either "r", "g" or "n"
34 * ("red", "green" or "none")
36 public function getDots()
38 $r = $this->getDotNum($this->linesDeleted);
39 $g = $this->getDotNum($this->linesAdded);
42 $quot = ceil($sum / 7);
46 $string = str_repeat('g', $g) . str_repeat('r', $r) . str_repeat('n', 7 - $g - $r);
48 return str_split($string);
51 public function getDotNum($lines)
55 } else if ($lines == 1) {
57 } else if ($lines == 2) {
59 } else if ($lines == 3) {
61 } else if ($lines == 4) {
63 } else if ($lines < 10) {
65 } else if ($lines < 50) {