@@ -19,6 +19,9 @@ |
||
19 | 19 | public $mem_peak_real = 0; |
20 | 20 | public $hints = array('microtime'); |
21 | 21 | |
22 | + /** |
|
23 | + * @param integer $group |
|
24 | + */ |
|
22 | 25 | public function __construct($seconds, $microseconds, $group, $lap = null, $total = null, $i = 0) |
23 | 26 | { |
24 | 27 | parent::__construct('Microtime'); |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | * @param float $s Saturation |
422 | 422 | * @param float $l Lightness |
423 | 423 | * |
424 | - * @return int[] RGB array |
|
424 | + * @return integer[] RGB array |
|
425 | 425 | */ |
426 | 426 | public static function hslToRgb($h, $s, $l) |
427 | 427 | { |
@@ -448,6 +448,9 @@ discard block |
||
448 | 448 | /** |
449 | 449 | * Helper function for hslToRgb. Even blacker magic. |
450 | 450 | * |
451 | + * @param double $m1 |
|
452 | + * @param double $m2 |
|
453 | + * @param double $hue |
|
451 | 454 | * @return float Color value |
452 | 455 | */ |
453 | 456 | private static function hueToRgb($m1, $m2, $hue) |
@@ -469,11 +472,11 @@ discard block |
||
469 | 472 | /** |
470 | 473 | * Converts RGB to HSL. Color inversion of previous black magic is white magic? |
471 | 474 | * |
472 | - * @param int|float $red Red |
|
475 | + * @param integer $red Red |
|
473 | 476 | * @param int|float $green Green |
474 | - * @param int|float $blue Blue |
|
477 | + * @param integer $blue Blue |
|
475 | 478 | * |
476 | - * @return float[] HSL array |
|
479 | + * @return double[] HSL array |
|
477 | 480 | */ |
478 | 481 | public static function rgbToHsl($red, $green, $blue) |
479 | 482 | { |
@@ -9,6 +9,11 @@ |
||
9 | 9 | public $class = null; |
10 | 10 | public $hints = array('docstring'); |
11 | 11 | |
12 | + /** |
|
13 | + * @param string|null $file |
|
14 | + * @param integer|null $line |
|
15 | + * @param string $class |
|
16 | + */ |
|
12 | 17 | public function __construct($docstring, $file, $line, $class = null) |
13 | 18 | { |
14 | 19 | parent::__construct('Docstring'); |
@@ -136,6 +136,9 @@ |
||
136 | 136 | return '<a '.$class.'href="'.$this->escape($ideLink).'">'.$path.'</a>'; |
137 | 137 | } |
138 | 138 | |
139 | + /** |
|
140 | + * @param string $string |
|
141 | + */ |
|
139 | 142 | public function escape($string, $encoding = false) |
140 | 143 | { |
141 | 144 | if ($encoding === false) { |
@@ -30,6 +30,9 @@ discard block |
||
30 | 30 | return $this->call_info; |
31 | 31 | } |
32 | 32 | |
33 | + /** |
|
34 | + * @param boolean $expand |
|
35 | + */ |
|
33 | 36 | public function setExpand($expand) |
34 | 37 | { |
35 | 38 | $this->expand = $expand; |
@@ -40,6 +43,9 @@ discard block |
||
40 | 43 | return $this->expand; |
41 | 44 | } |
42 | 45 | |
46 | + /** |
|
47 | + * @param boolean $mode |
|
48 | + */ |
|
43 | 49 | public function setReturnMode($mode) |
44 | 50 | { |
45 | 51 | $this->return_mode = $mode; |
@@ -50,6 +56,9 @@ discard block |
||
50 | 56 | return $this->return_mode; |
51 | 57 | } |
52 | 58 | |
59 | + /** |
|
60 | + * @param boolean $show |
|
61 | + */ |
|
53 | 62 | public function setShowTrace($show) |
54 | 63 | { |
55 | 64 | $this->show_trace = $show; |
@@ -128,6 +128,9 @@ discard block |
||
128 | 128 | return '<dl><dt><var>No argument</var></dt></dl>'; |
129 | 129 | } |
130 | 130 | |
131 | + /** |
|
132 | + * @param boolean $has_children |
|
133 | + */ |
|
131 | 134 | public function renderHeaderWrapper(BasicObject $o, $has_children, $contents) |
132 | 135 | { |
133 | 136 | $out = '<dt'; |
@@ -254,6 +257,9 @@ discard block |
||
254 | 257 | return $output.'</dd>'; |
255 | 258 | } |
256 | 259 | |
260 | + /** |
|
261 | + * @return string |
|
262 | + */ |
|
257 | 263 | protected function renderTab(BasicObject $o, Representation $rep) |
258 | 264 | { |
259 | 265 | if ($plugin = $this->getPlugin(self::$tab_plugins, $rep->hints)) { |
@@ -110,6 +110,9 @@ |
||
110 | 110 | } |
111 | 111 | } |
112 | 112 | |
113 | + /** |
|
114 | + * @param integer $width |
|
115 | + */ |
|
113 | 116 | public function boxText($text, $width) |
114 | 117 | { |
115 | 118 | if (BlobObject::strlen($text) > $width - 4) { |