remove debug statement
[phorkie.git] / src / phorkie / Repository / Commit.php
index ce00235590c4fd22d0e6cf0b0060fbdc777fd6ab..1afc151af68b5105b3c517c12d045d2145f1f7b4 100644 (file)
@@ -16,17 +16,8 @@ class Repository_Commit
 
     public function getIconUrl()
     {
-        //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,
-            array(
-                'size'    => 32,
-                'default' => Tools::fullUrl('/phorkie/anonymous.png')
-            )
-        );
+        $hh = new HtmlHelper();
+        return $hh->getIconUrl($this->committerEmail);
     }
 
     /**
@@ -40,10 +31,12 @@ 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);
+        $string = str_repeat('g', $g)
+            . str_repeat('r', $r)
+            . str_repeat('n', 7 - $g - $r);
 
         return str_split($string);
     }
@@ -69,4 +62,4 @@ class Repository_Commit
     }
 }
 
-?>
\ No newline at end of file
+?>