@@ -183,7 +183,7 @@ |
||
183 | 183 | * @param string $user Username |
184 | 184 | * @param string $pass Cleartext Password |
185 | 185 | * @param bool $sticky Cookie should not expire |
186 | - * @return bool true on successful auth |
|
186 | + * @return boolean|null true on successful auth |
|
187 | 187 | */ |
188 | 188 | public function trustExternal($user, $pass, $sticky = false) { |
189 | 189 | /* some example: |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * @author Andreas Gohr <[email protected]> |
83 | 83 | * @param string $user |
84 | 84 | * @param bool $requireGroups (optional) ignored by this plugin, grps info always supplied |
85 | - * @return array|false |
|
85 | + * @return string |
|
86 | 86 | */ |
87 | 87 | public function getUserData($user, $requireGroups=true) { |
88 | 88 | if($this->users === null) $this->_loadUserData(); |
@@ -380,6 +380,9 @@ discard block |
||
380 | 380 | return $users; |
381 | 381 | } |
382 | 382 | |
383 | + /** |
|
384 | + * @param string $line |
|
385 | + */ |
|
383 | 386 | protected function _splitUserData($line){ |
384 | 387 | // due to a bug in PCRE 6.6, preg_split will fail with the regex we use here |
385 | 388 | // refer github issues 877 & 885 |
@@ -484,6 +484,9 @@ |
||
484 | 484 | protected $location; // base url location of the CSS/Less file |
485 | 485 | protected $relative_path = null; |
486 | 486 | |
487 | + /** |
|
488 | + * @param string $file |
|
489 | + */ |
|
487 | 490 | public function __construct($file) { |
488 | 491 | $this->filepath = $file; |
489 | 492 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @param string $file file name |
25 | 25 | * @param bool $knownonly |
26 | - * @return array with extension, mimetype and if it should be downloaded |
|
26 | + * @return string with extension, mimetype and if it should be downloaded |
|
27 | 27 | */ |
28 | 28 | function mimetype($file, $knownonly=true){ |
29 | 29 | $mtypes = getMimeTypes(); // known mimetypes |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | * @param string $file |
245 | 245 | * @param bool $lower |
246 | 246 | * |
247 | - * @return array |
|
247 | + * @return string |
|
248 | 248 | */ |
249 | 249 | function confToHash($file,$lower=false) { |
250 | 250 | $conf = array(); |
@@ -942,6 +942,9 @@ discard block |
||
942 | 942 | $this->_tag = ''; |
943 | 943 | } |
944 | 944 | |
945 | + /** |
|
946 | + * @param string $new_tag |
|
947 | + */ |
|
945 | 948 | function _flushGroup($new_tag) { |
946 | 949 | if ($this->_group !== '') { |
947 | 950 | if ($this->_tag == 'mark') |
@@ -1364,8 +1367,8 @@ discard block |
||
1364 | 1367 | /** |
1365 | 1368 | * @access private |
1366 | 1369 | * |
1367 | - * @param array $edits1 |
|
1368 | - * @param array $edits2 |
|
1370 | + * @param _DiffOp[] $edits1 |
|
1371 | + * @param _DiffOp[] $edits2 |
|
1369 | 1372 | * |
1370 | 1373 | * @return array |
1371 | 1374 | */ |
@@ -8,7 +8,7 @@ |
||
8 | 8 | * |
9 | 9 | * @param integer $start |
10 | 10 | * |
11 | - * @return mixed |
|
11 | + * @return double |
|
12 | 12 | */ |
13 | 13 | function delta_time($start=0) { |
14 | 14 | return microtime(true)-((float)$start); |
@@ -2546,7 +2546,7 @@ discard block |
||
2546 | 2546 | * @param string $header |
2547 | 2547 | * @param mixed $value |
2548 | 2548 | * |
2549 | - * @return int|mixed |
|
2549 | + * @return integer |
|
2550 | 2550 | */ |
2551 | 2551 | function _write8BIM(&$data, $pos, $type, $header, &$value) { |
2552 | 2552 | $signature = "8BIM"; |
@@ -2616,7 +2616,7 @@ discard block |
||
2616 | 2616 | * @param string $type |
2617 | 2617 | * @param mixed $value |
2618 | 2618 | * |
2619 | - * @return int|mixed |
|
2619 | + * @return integer |
|
2620 | 2620 | */ |
2621 | 2621 | function _writeIPTCEntry(&$data, $pos, $type, &$value) { |
2622 | 2622 | $pos = $this->_putShort($data, $pos, 0x1C02); |
@@ -2778,6 +2778,10 @@ discard block |
||
2778 | 2778 | } |
2779 | 2779 | |
2780 | 2780 | /*************************************************************/ |
2781 | + |
|
2782 | + /** |
|
2783 | + * @param string $mode |
|
2784 | + */ |
|
2781 | 2785 | function _exifTagTypes($mode) { |
2782 | 2786 | $tags = array(); |
2783 | 2787 | |
@@ -2928,6 +2932,10 @@ discard block |
||
2928 | 2932 | } |
2929 | 2933 | |
2930 | 2934 | /*************************************************************/ |
2935 | + |
|
2936 | + /** |
|
2937 | + * @param string $mode |
|
2938 | + */ |
|
2931 | 2939 | function _exifNameTags($mode) { |
2932 | 2940 | $tags = $this->_exifTagNames($mode); |
2933 | 2941 | return $this->_names2Tags($tags); |
@@ -3008,6 +3016,10 @@ discard block |
||
3008 | 3016 | } |
3009 | 3017 | |
3010 | 3018 | /*************************************************************/ |
3019 | + |
|
3020 | + /** |
|
3021 | + * @param integer $pos |
|
3022 | + */ |
|
3011 | 3023 | function _getShort(&$data, $pos, $bigEndian = true) { |
3012 | 3024 | if ($bigEndian) { |
3013 | 3025 | return (ord($data{$pos}) << 8) |
@@ -31,6 +31,9 @@ discard block |
||
31 | 31 | $this->CallWriter->writeCall($call); |
32 | 32 | } |
33 | 33 | |
34 | + /** |
|
35 | + * @param integer $pos |
|
36 | + */ |
|
34 | 37 | function addPluginCall($plugin, $args, $state, $pos, $match) { |
35 | 38 | $call = array('plugin',array($plugin, $args, $state, $match), $pos); |
36 | 39 | $this->CallWriter->writeCall($call); |
@@ -728,8 +731,20 @@ discard block |
||
728 | 731 | |
729 | 732 | //------------------------------------------------------------------------ |
730 | 733 | interface Doku_Handler_CallWriter_Interface { |
734 | + |
|
735 | + /** |
|
736 | + * @return void |
|
737 | + */ |
|
731 | 738 | public function writeCall($call); |
739 | + |
|
740 | + /** |
|
741 | + * @return void |
|
742 | + */ |
|
732 | 743 | public function writeCalls($calls); |
744 | + |
|
745 | + /** |
|
746 | + * @return void |
|
747 | + */ |
|
733 | 748 | public function finalise(); |
734 | 749 | } |
735 | 750 |
@@ -565,7 +565,7 @@ |
||
565 | 565 | * |
566 | 566 | * @param string $str |
567 | 567 | * |
568 | - * @return mixed |
|
568 | + * @return string |
|
569 | 569 | */ |
570 | 570 | function Doku_Lexer_Escape($str) { |
571 | 571 | //$str = addslashes($str); |