@@ -423,7 +423,7 @@ |
||
| 423 | 423 | * keep track of internal links in $this->meta['relation']['references'] |
| 424 | 424 | * |
| 425 | 425 | * @param string $id page ID to link to. eg. 'wiki:syntax' |
| 426 | - * @param string|array|null $name name for the link, array for media file |
|
| 426 | + * @param string $name name for the link, array for media file |
|
| 427 | 427 | */ |
| 428 | 428 | function internallink($id, $name = null) { |
| 429 | 429 | global $ID; |
@@ -454,7 +454,7 @@ |
||
| 454 | 454 | * |
| 455 | 455 | * @param string $id page id |
| 456 | 456 | * @param array $orig the original metadata |
| 457 | - * @return array|null array('current'=> array,'persistent'=> array); |
|
| 457 | + * @return string array('current'=> array,'persistent'=> array); |
|
| 458 | 458 | */ |
| 459 | 459 | function p_render_metadata($id, $orig){ |
| 460 | 460 | // make sure the correct ID is in global ID |
@@ -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)) { |
@@ -306,7 +306,7 @@ |
||
| 306 | 306 | /** |
| 307 | 307 | * Transform file to xml |
| 308 | 308 | * |
| 309 | - * @param mixed $data |
|
| 309 | + * @param string|boolean $data |
|
| 310 | 310 | * @return mixed |
| 311 | 311 | */ |
| 312 | 312 | public function toFile($data) { |
@@ -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; |