@@ -55,6 +55,9 @@ discard block |
||
55 | 55 | return true; |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param integer $pos |
|
60 | + */ |
|
58 | 61 | public function replaceRepresentation(Representation $rep, $pos = null) |
59 | 62 | { |
60 | 63 | if ($pos === null) { |
@@ -74,6 +77,9 @@ discard block |
||
74 | 77 | } |
75 | 78 | } |
76 | 79 | |
80 | + /** |
|
81 | + * @param string $name |
|
82 | + */ |
|
77 | 83 | public function getRepresentation($name) |
78 | 84 | { |
79 | 85 | if (isset($this->representations[$name])) { |
@@ -161,6 +161,9 @@ discard block |
||
161 | 161 | public $hints = array('color'); |
162 | 162 | public $color = null; |
163 | 163 | |
164 | + /** |
|
165 | + * @param Representation\ColorRepresentation $color |
|
166 | + */ |
|
164 | 167 | public function __construct($color) |
165 | 168 | { |
166 | 169 | parent::__construct(); |
@@ -175,7 +178,7 @@ discard block |
||
175 | 178 | * @param float $s Saturation |
176 | 179 | * @param float $l Lightness |
177 | 180 | * |
178 | - * @return array RGB array |
|
181 | + * @return double[] RGB array |
|
179 | 182 | */ |
180 | 183 | public static function hslToRgb($h, $s, $l) |
181 | 184 | { |
@@ -208,6 +211,9 @@ discard block |
||
208 | 211 | /** |
209 | 212 | * Helper function for hslToRgb. Even blacker magic. |
210 | 213 | * |
214 | + * @param double $m1 |
|
215 | + * @param double $m2 |
|
216 | + * @param double $hue |
|
211 | 217 | * @return float Color value |
212 | 218 | */ |
213 | 219 | private static function hueToRgb($m1, $m2, $hue) |
@@ -13,6 +13,11 @@ |
||
13 | 13 | public $mem_peak_real = null; |
14 | 14 | public $hints = array('microtime'); |
15 | 15 | |
16 | + /** |
|
17 | + * @param integer $group |
|
18 | + * @param double $lap |
|
19 | + * @param double $total |
|
20 | + */ |
|
16 | 21 | public function __construct($group, $lap = null, $total = null, $i = 0) |
17 | 22 | { |
18 | 23 | parent::__construct('Microtime'); |
@@ -11,6 +11,10 @@ |
||
11 | 11 | |
12 | 12 | protected $name; |
13 | 13 | |
14 | + /** |
|
15 | + * @param string $label |
|
16 | + * @param string $name |
|
17 | + */ |
|
14 | 18 | public function __construct($label, $name = null) |
15 | 19 | { |
16 | 20 | $this->label = $label; |
@@ -145,6 +145,9 @@ |
||
145 | 145 | return "<a {$class}href=\"{$ideLink}\">{$shortenedPath}:{$line}</a>"; |
146 | 146 | } |
147 | 147 | |
148 | + /** |
|
149 | + * @param string $string |
|
150 | + */ |
|
148 | 151 | public function escape($string, $encoding = false) |
149 | 152 | { |
150 | 153 | if ($encoding === false) { |
@@ -6,5 +6,8 @@ |
||
6 | 6 | |
7 | 7 | interface ObjectPluginInterface extends PluginInterface |
8 | 8 | { |
9 | + /** |
|
10 | + * @return string|null |
|
11 | + */ |
|
9 | 12 | public function renderObject(BasicObject $o); |
10 | 13 | } |
@@ -6,5 +6,8 @@ |
||
6 | 6 | |
7 | 7 | interface PluginInterface |
8 | 8 | { |
9 | + /** |
|
10 | + * @return void |
|
11 | + */ |
|
9 | 12 | public function __construct(RichRenderer $r); |
10 | 13 | } |
@@ -103,6 +103,9 @@ |
||
103 | 103 | return $out; |
104 | 104 | } |
105 | 105 | |
106 | + /** |
|
107 | + * @param integer $width |
|
108 | + */ |
|
106 | 109 | public function boxText($text, $width) |
107 | 110 | { |
108 | 111 | if (BlobObject::strlen($text) > $width - 4) { |