@@ -1169,6 +1169,7 @@ |
||
1169 | 1169 | * |
1170 | 1170 | * @param array $user data of user |
1171 | 1171 | * @param string &$error reference catched error message |
1172 | + * @param string $error |
|
1172 | 1173 | * @return bool whether successful |
1173 | 1174 | */ |
1174 | 1175 | protected function importUser($user, &$error) |
@@ -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); |
@@ -189,7 +189,7 @@ |
||
189 | 189 | * @param string $user Username |
190 | 190 | * @param string $pass Cleartext Password |
191 | 191 | * @param bool $sticky Cookie should not expire |
192 | - * @return bool true on successful auth |
|
192 | + * @return boolean|null true on successful auth |
|
193 | 193 | */ |
194 | 194 | public function trustExternal($user, $pass, $sticky = false) |
195 | 195 | { |
@@ -85,6 +85,7 @@ |
||
85 | 85 | |
86 | 86 | /** |
87 | 87 | * @see PluginInterface::getLang() |
88 | + * @param string $id |
|
88 | 89 | */ |
89 | 90 | public function getLang($id) |
90 | 91 | { |
@@ -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; |
@@ -456,7 +456,7 @@ discard block |
||
456 | 456 | * keep track of internal links in $this->meta['relation']['references'] |
457 | 457 | * |
458 | 458 | * @param string $id page ID to link to. eg. 'wiki:syntax' |
459 | - * @param string|array|null $name name for the link, array for media file |
|
459 | + * @param string $name name for the link, array for media file |
|
460 | 460 | */ |
461 | 461 | public function internallink($id, $name = null) |
462 | 462 | { |
@@ -655,7 +655,7 @@ discard block |
||
655 | 655 | * |
656 | 656 | * @param string $name |
657 | 657 | * |
658 | - * @return mixed|string |
|
658 | + * @return string |
|
659 | 659 | */ |
660 | 660 | public function _simpleTitle($name) |
661 | 661 | { |
@@ -101,7 +101,7 @@ |
||
101 | 101 | * Like property_exists but also check for non-visible private properties and returns which |
102 | 102 | * class in the inheritance chain declared the property. |
103 | 103 | * @param string $property |
104 | - * @return string|bool Best guess for the class in which the property is defined. |
|
104 | + * @return string|false Best guess for the class in which the property is defined. |
|
105 | 105 | */ |
106 | 106 | private function deprecationHelperGetPropertyOwner($property) |
107 | 107 | { |
@@ -113,6 +113,7 @@ |
||
113 | 113 | * @param string|null &$salt The salt, pass null if you want one generated |
114 | 114 | * @param int $len The length of the salt |
115 | 115 | * @param bool $cut Apply length restriction to existing salt? |
116 | + * @param string|null $salt |
|
116 | 117 | */ |
117 | 118 | public function init_salt(&$salt, $len = 32, $cut = true) { |
118 | 119 | if(is_null($salt)) { |
@@ -55,6 +55,9 @@ |
||
55 | 55 | return $this->_event; |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param string $event |
|
60 | + */ |
|
58 | 61 | public function setEvent($event) |
59 | 62 | { |
60 | 63 | $this->_event = $event; |