@@ -424,7 +424,7 @@ |
||
424 | 424 | * @param string $id page id |
425 | 425 | * @param string|null $name the name of the link |
426 | 426 | * @param bool $return |
427 | - * @return true|string |
|
427 | + * @return string|boolean |
|
428 | 428 | */ |
429 | 429 | function tpl_pagelink($id, $name = null, $return = false) { |
430 | 430 | $out = '<bdi>'.html_wikilink($id, $name).'</bdi>'; |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | * |
195 | 195 | * @author Andreas Gohr <[email protected]> |
196 | 196 | * |
197 | - * @return array with info about current document |
|
197 | + * @return string with info about current document |
|
198 | 198 | */ |
199 | 199 | function pageinfo() { |
200 | 200 | global $ID; |
@@ -2045,6 +2045,7 @@ discard block |
||
2045 | 2045 | * Strips source mapping declarations from given text #601 |
2046 | 2046 | * |
2047 | 2047 | * @param string &$text reference to the CSS or JavaScript code to clean |
2048 | + * @param string $text |
|
2048 | 2049 | */ |
2049 | 2050 | function stripsourcemaps(&$text){ |
2050 | 2051 | $text = preg_replace('/^(\/\/|\/\*)[@#]\s+sourceMappingURL=.*?(\*\/)?$/im', '\\1\\2', $text); |
@@ -824,7 +824,7 @@ |
||
824 | 824 | * @param string $url url to download |
825 | 825 | * @param string $file path to file or directory where to save |
826 | 826 | * @param string $defaultName fallback for name of download |
827 | - * @return bool|string if failed false, otherwise true or the name of the file in the given dir |
|
827 | + * @return false|string if failed false, otherwise true or the name of the file in the given dir |
|
828 | 828 | */ |
829 | 829 | protected function downloadToFile($url,$file,$defaultName=''){ |
830 | 830 | global $conf; |
@@ -2545,7 +2545,7 @@ discard block |
||
2545 | 2545 | * @param string $header |
2546 | 2546 | * @param mixed $value |
2547 | 2547 | * |
2548 | - * @return int|mixed |
|
2548 | + * @return integer |
|
2549 | 2549 | */ |
2550 | 2550 | function _write8BIM(&$data, $pos, $type, $header, &$value) { |
2551 | 2551 | $signature = "8BIM"; |
@@ -2613,7 +2613,7 @@ discard block |
||
2613 | 2613 | * @param string $type |
2614 | 2614 | * @param mixed $value |
2615 | 2615 | * |
2616 | - * @return int|mixed |
|
2616 | + * @return integer |
|
2617 | 2617 | */ |
2618 | 2618 | function _writeIPTCEntry(&$data, $pos, $type, &$value) { |
2619 | 2619 | $pos = $this->_putShort($data, $pos, 0x1C02); |
@@ -2775,6 +2775,10 @@ discard block |
||
2775 | 2775 | } |
2776 | 2776 | |
2777 | 2777 | /*************************************************************/ |
2778 | + |
|
2779 | + /** |
|
2780 | + * @param string $mode |
|
2781 | + */ |
|
2778 | 2782 | function _exifTagTypes($mode) { |
2779 | 2783 | $tags = array(); |
2780 | 2784 | |
@@ -2925,6 +2929,10 @@ discard block |
||
2925 | 2929 | } |
2926 | 2930 | |
2927 | 2931 | /*************************************************************/ |
2932 | + |
|
2933 | + /** |
|
2934 | + * @param string $mode |
|
2935 | + */ |
|
2928 | 2936 | function _exifNameTags($mode) { |
2929 | 2937 | $tags = $this->_exifTagNames($mode); |
2930 | 2938 | return $this->_names2Tags($tags); |
@@ -3005,6 +3013,10 @@ discard block |
||
3005 | 3013 | } |
3006 | 3014 | |
3007 | 3015 | /*************************************************************/ |
3016 | + |
|
3017 | + /** |
|
3018 | + * @param integer $pos |
|
3019 | + */ |
|
3008 | 3020 | function _getShort(&$data, $pos, $bigEndian = true) { |
3009 | 3021 | if ($bigEndian) { |
3010 | 3022 | return (ord($data[$pos]) << 8) |