@@ -517,7 +517,7 @@ |
||
517 | 517 | * @param string $id page id |
518 | 518 | * @param string $text wiki text |
519 | 519 | * @param array $params such as summary,minor |
520 | - * @return bool|string |
|
520 | + * @return boolean |
|
521 | 521 | */ |
522 | 522 | function appendPage($id, $text, $params) { |
523 | 523 | $currentpage = $this->rawPage($id); |
@@ -614,7 +614,7 @@ |
||
614 | 614 | /** |
615 | 615 | * Decodes numeric HTML entities to their correct UTF-8 characters |
616 | 616 | * |
617 | - * @param $ent string A numeric entity |
|
617 | + * @param string $ent string A numeric entity |
|
618 | 618 | * @return string|false |
619 | 619 | */ |
620 | 620 | function utf8_decode_numeric($ent) { |
@@ -343,7 +343,7 @@ |
||
343 | 343 | /** |
344 | 344 | * @param resource $zip |
345 | 345 | * @param string $zip_name filename path to file |
346 | - * @return array |
|
346 | + * @return resource |
|
347 | 347 | */ |
348 | 348 | function ReadCentralDir($zip,$zip_name) { |
349 | 349 | $size = filesize($zip_name); |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | * |
263 | 263 | * @param string $tpl the used template |
264 | 264 | * @param bool $preview load preview replacements |
265 | - * @return array with keys 'stylesheets' and 'replacements' |
|
265 | + * @return string with keys 'stylesheets' and 'replacements' |
|
266 | 266 | */ |
267 | 267 | function css_styleini($tpl, $preview=false) { |
268 | 268 | global $conf; |
@@ -437,6 +437,9 @@ discard block |
||
437 | 437 | protected $location; // base url location of the CSS/Less file |
438 | 438 | protected $relative_path = null; |
439 | 439 | |
440 | + /** |
|
441 | + * @param string $file |
|
442 | + */ |
|
440 | 443 | public function __construct($file) { |
441 | 444 | $this->filepath = $file; |
442 | 445 | } |
@@ -713,6 +713,8 @@ |
||
713 | 713 | * |
714 | 714 | * @author Frank Schubert <[email protected]> |
715 | 715 | * @author Andreas Gohr <[email protected]> |
716 | + * @param boolean $ispage |
|
717 | + * @param string $name |
|
716 | 718 | */ |
717 | 719 | function _html_checkboxes($setperm,$ispage,$name){ |
718 | 720 | global $lang; |
@@ -183,7 +183,7 @@ discard block |
||
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: |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | * @author Andreas Gohr <[email protected]> |
239 | 239 | * @param string $user the user name |
240 | 240 | * @param bool $requireGroups whether or not the returned data must include groups |
241 | - * @return false|array containing user data or false |
|
241 | + * @return boolean containing user data or false |
|
242 | 242 | */ |
243 | 243 | public function getUserData($user, $requireGroups=true) { |
244 | 244 | if(!$this->cando['external']) msg("no valid authorisation system in use", -1); |
@@ -765,7 +765,7 @@ |
||
765 | 765 | * @author Matthias Grimm <[email protected]> |
766 | 766 | * |
767 | 767 | * @param string $user user's nick to get data for |
768 | - * @return false|array false on error, user info on success |
|
768 | + * @return string false on error, user info on success |
|
769 | 769 | */ |
770 | 770 | protected function _retrieveUserInfo($user) { |
771 | 771 | $sql = str_replace('%{user}', $this->_escape($user), $this->getConf('getUserInfo')); |
@@ -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(); |
@@ -348,6 +348,9 @@ discard block |
||
348 | 348 | } |
349 | 349 | } |
350 | 350 | |
351 | + /** |
|
352 | + * @param string $line |
|
353 | + */ |
|
351 | 354 | protected function _splitUserData($line){ |
352 | 355 | // due to a bug in PCRE 6.6, preg_split will fail with the regex we use here |
353 | 356 | // refer github issues 877 & 885 |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * |
175 | 175 | * @param DokuWiki_Plugin $plugin object of config plugin |
176 | 176 | * @param bool $echo true: show inputted value, when error occurred, otherwise the stored setting |
177 | - * @return array with content array(string $label_html, string $input_html) |
|
177 | + * @return string[] with content array(string $label_html, string $input_html) |
|
178 | 178 | */ |
179 | 179 | function html(&$plugin, $echo=false) { |
180 | 180 | global $lang; |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | * |
284 | 284 | * @param DokuWiki_Plugin $plugin object of config plugin |
285 | 285 | * @param bool $echo true: show inputted value, when error occurred, otherwise the stored setting |
286 | - * @return array with content array(string $label_html, string $input_html) |
|
286 | + * @return string[] with content array(string $label_html, string $input_html) |
|
287 | 287 | */ |
288 | 288 | function html(&$plugin, $echo=false) { |
289 | 289 |