@@ -77,6 +77,9 @@ discard block |
||
77 | 77 | return null; |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param string $name |
|
82 | + */ |
|
80 | 83 | protected function fileExists($name) { |
81 | 84 | return is_file($name); |
82 | 85 | } |
@@ -260,6 +263,9 @@ discard block |
||
260 | 263 | return $scope; |
261 | 264 | } |
262 | 265 | |
266 | + /** |
|
267 | + * @param string[] $selectors |
|
268 | + */ |
|
263 | 269 | protected function compileNestedBlock($block, $selectors) { |
264 | 270 | $this->pushEnv($block); |
265 | 271 | $this->scope = $this->makeOutputBlock($block->type, $selectors); |
@@ -278,6 +284,9 @@ discard block |
||
278 | 284 | $this->popEnv(); |
279 | 285 | } |
280 | 286 | |
287 | + /** |
|
288 | + * @param stdClass $out |
|
289 | + */ |
|
281 | 290 | protected function compileProps($block, $out) { |
282 | 291 | foreach ($this->sortProps($block->props) as $prop) { |
283 | 292 | $this->compileProp($prop, $block, $out); |
@@ -388,6 +397,9 @@ discard block |
||
388 | 397 | return $out; |
389 | 398 | } |
390 | 399 | |
400 | + /** |
|
401 | + * @param stdClass $env |
|
402 | + */ |
|
391 | 403 | protected function multiplyMedia($env, $childQueries = null) { |
392 | 404 | if (is_null($env) || |
393 | 405 | !empty($env->block->type) && $env->block->type != "media") |
@@ -1255,6 +1267,9 @@ discard block |
||
1255 | 1267 | $this->throwError($error); |
1256 | 1268 | } |
1257 | 1269 | |
1270 | + /** |
|
1271 | + * @param integer $expectedArgs |
|
1272 | + */ |
|
1258 | 1273 | public function assertArgs($value, $expectedArgs, $name="") { |
1259 | 1274 | if ($expectedArgs == 1) { |
1260 | 1275 | return $value; |
@@ -1309,6 +1324,11 @@ discard block |
||
1309 | 1324 | return $out; |
1310 | 1325 | } |
1311 | 1326 | |
1327 | + /** |
|
1328 | + * @param double $comp |
|
1329 | + * @param double $temp1 |
|
1330 | + * @param double $temp2 |
|
1331 | + */ |
|
1312 | 1332 | protected function toRGB_helper($comp, $temp1, $temp2) { |
1313 | 1333 | if ($comp < 0) $comp += 1.0; |
1314 | 1334 | elseif ($comp > 1) $comp -= 1.0; |
@@ -2283,6 +2303,9 @@ discard block |
||
2283 | 2303 | // caches preg escaped literals |
2284 | 2304 | static protected $literalCache = array(); |
2285 | 2305 | |
2306 | + /** |
|
2307 | + * @param lessc $lessc |
|
2308 | + */ |
|
2286 | 2309 | public function __construct($lessc, $sourceName = null) { |
2287 | 2310 | $this->eatWhiteDefault = true; |
2288 | 2311 | // reference to less needed for vPrefix, mPrefix, and parentSelector |
@@ -2583,6 +2606,7 @@ discard block |
||
2583 | 2606 | |
2584 | 2607 | /** |
2585 | 2608 | * recursively parse infix equation with $lhs at precedence $minP |
2609 | + * @param integer $minP |
|
2586 | 2610 | */ |
2587 | 2611 | protected function expHelper($lhs, $minP) { |
2588 | 2612 | $this->inExp = true; |
@@ -2809,6 +2833,11 @@ discard block |
||
2809 | 2833 | } |
2810 | 2834 | |
2811 | 2835 | // an unbounded string stopped by $end |
2836 | + |
|
2837 | + /** |
|
2838 | + * @param string $end |
|
2839 | + * @param string[] $rejectStrs |
|
2840 | + */ |
|
2812 | 2841 | protected function openString($end, &$out, $nestingOpen=null, $rejectStrs = null) { |
2813 | 2842 | $oldWhite = $this->eatWhiteDefault; |
2814 | 2843 | $this->eatWhiteDefault = false; |
@@ -3389,6 +3418,9 @@ discard block |
||
3389 | 3418 | |
3390 | 3419 | /* raw parsing functions */ |
3391 | 3420 | |
3421 | + /** |
|
3422 | + * @param boolean $eatWhitespace |
|
3423 | + */ |
|
3392 | 3424 | protected function literal($what, $eatWhitespace = null) { |
3393 | 3425 | if ($eatWhitespace === null) $eatWhitespace = $this->eatWhiteDefault; |
3394 | 3426 | |
@@ -3412,6 +3444,9 @@ discard block |
||
3412 | 3444 | return $this->match(self::$literalCache[$what], $m, $eatWhitespace); |
3413 | 3445 | } |
3414 | 3446 | |
3447 | + /** |
|
3448 | + * @param string $parseItem |
|
3449 | + */ |
|
3415 | 3450 | protected function genericList(&$out, $parseItem, $delim="", $flatten=true) { |
3416 | 3451 | $s = $this->seek(); |
3417 | 3452 | $items = array(); |
@@ -3485,6 +3520,10 @@ discard block |
||
3485 | 3520 | } |
3486 | 3521 | |
3487 | 3522 | // match something without consuming it |
3523 | + |
|
3524 | + /** |
|
3525 | + * @param string $regex |
|
3526 | + */ |
|
3488 | 3527 | protected function peek($regex, &$out = null, $from=null) { |
3489 | 3528 | if (is_null($from)) $from = $this->count; |
3490 | 3529 | $r = '/'.$regex.'/Ais'; |
@@ -3540,6 +3579,10 @@ discard block |
||
3540 | 3579 | } |
3541 | 3580 | |
3542 | 3581 | // push a block that doesn't multiply tags |
3582 | + |
|
3583 | + /** |
|
3584 | + * @param string $type |
|
3585 | + */ |
|
3543 | 3586 | protected function pushSpecialBlock($type) { |
3544 | 3587 | return $this->pushBlock(null, $type); |
3545 | 3588 | } |
@@ -87,6 +87,10 @@ |
||
87 | 87 | $this->redirectTo($this->url->create('users/login')); |
88 | 88 | } |
89 | 89 | } |
90 | + |
|
91 | + /** |
|
92 | + * @param integer|null $question_id |
|
93 | + */ |
|
90 | 94 | private function createAddCommentForm($question_id) |
91 | 95 | { |
92 | 96 | return $this->di->form->create([], [ |
@@ -56,6 +56,11 @@ |
||
56 | 56 | $this->redirectTo($this->url->create('users/login')); |
57 | 57 | } |
58 | 58 | } |
59 | + |
|
60 | + /** |
|
61 | + * @param integer $id |
|
62 | + * @param string $q_or_a |
|
63 | + */ |
|
59 | 64 | private function createAddCommentForm($id, $q_or_a) |
60 | 65 | { |
61 | 66 | return $this->di->form->create([], [ |
@@ -200,6 +200,9 @@ discard block |
||
200 | 200 | * int $id of question or answer |
201 | 201 | * string $linkText to display on linkText |
202 | 202 | * string 'q' or 'a' on comment on question or comment on answer |
203 | + * @param string $controller |
|
204 | + * @param string $linkText |
|
205 | + * @param string $qora |
|
203 | 206 | * |
204 | 207 | * @return void |
205 | 208 | */ |
@@ -340,7 +343,6 @@ discard block |
||
340 | 343 | /** |
341 | 344 | * Ask new question |
342 | 345 | * |
343 | - * @param string $route to page for comment flow. |
|
344 | 346 | * |
345 | 347 | * @return void |
346 | 348 | */ |
@@ -35,7 +35,7 @@ |
||
35 | 35 | * Get either a Gravatar URL or complete image tag for a specified email address. |
36 | 36 | * |
37 | 37 | * @param string $email The email address |
38 | - * @param string $s Size in pixels, defaults to 80px [ 1 - 2048 ] |
|
38 | + * @param integer $s Size in pixels, defaults to 80px [ 1 - 2048 ] |
|
39 | 39 | * @param string $d Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ] |
40 | 40 | * @param string $r Maximum rating (inclusive) [ g | pg | r | x ] |
41 | 41 | * @param boole $img True to return a complete IMG tag False for just the URL |
@@ -60,7 +60,6 @@ discard block |
||
60 | 60 | * Display most active users. |
61 | 61 | * Sum number of questions and answers contributed. |
62 | 62 | * |
63 | - * @param int $id of user to display |
|
64 | 63 | * |
65 | 64 | * @return void |
66 | 65 | */ |
@@ -100,7 +99,6 @@ discard block |
||
100 | 99 | /** |
101 | 100 | * Display user with acronym. |
102 | 101 | * |
103 | - * @param int $id of user to display |
|
104 | 102 | * |
105 | 103 | * @return void |
106 | 104 | */ |
@@ -224,7 +222,6 @@ discard block |
||
224 | 222 | /** |
225 | 223 | * List user with acronym. |
226 | 224 | * |
227 | - * @param int $id of user to display |
|
228 | 225 | * |
229 | 226 | * @return void |
230 | 227 | */ |
@@ -396,7 +393,6 @@ discard block |
||
396 | 393 | /** |
397 | 394 | * Update user. |
398 | 395 | * |
399 | - * @param string $acronym of user to update. |
|
400 | 396 | * |
401 | 397 | * @return void |
402 | 398 | */ |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | /** |
109 | 109 | * Find and return specific. |
110 | 110 | * |
111 | - * @return this |
|
111 | + * @return integer |
|
112 | 112 | */ |
113 | 113 | public function find($id) |
114 | 114 | { |
@@ -220,7 +220,6 @@ discard block |
||
220 | 220 | /** |
221 | 221 | * Execute the query built. |
222 | 222 | * |
223 | - * @param string $query custom query. |
|
224 | 223 | * |
225 | 224 | * @return $this |
226 | 225 | */ |