@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | * the string to operate on |
338 | 338 | * @param integer $val |
339 | 339 | * the number to compare lengths with |
340 | - * @return string|boolean |
|
340 | + * @return string |
|
341 | 341 | * the resulting string or false on failure. |
342 | 342 | */ |
343 | 343 | public static function substrmin($str, $val) |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | * the string to operate on |
399 | 399 | * @param integer $val |
400 | 400 | * the number to compare lengths with |
401 | - * @return string|boolean |
|
401 | + * @return string |
|
402 | 402 | * the resulting string or false on failure. |
403 | 403 | */ |
404 | 404 | public static function substrmax($str, $val) |
@@ -413,7 +413,7 @@ discard block |
||
413 | 413 | * the string to extract the characters from. |
414 | 414 | * @param integer $num |
415 | 415 | * the number of characters to extract. |
416 | - * @return string|boolean |
|
416 | + * @return string |
|
417 | 417 | * a string containing the last `$num` characters of the |
418 | 418 | * input string, or false on failure. |
419 | 419 | */ |
@@ -431,7 +431,7 @@ discard block |
||
431 | 431 | * the string to extract the characters from. |
432 | 432 | * @param integer $num |
433 | 433 | * the number of characters to extract. |
434 | - * @return string|boolean |
|
434 | + * @return string |
|
435 | 435 | * a string containing the last `$num` characters of the |
436 | 436 | * input string, or false on failure. |
437 | 437 | */ |
@@ -629,6 +629,10 @@ discard block |
||
629 | 629 | public static function getPostData() |
630 | 630 | { |
631 | 631 | if (!function_exists('merge_file_post_data')) { |
632 | + |
|
633 | + /** |
|
634 | + * @param string $type |
|
635 | + */ |
|
632 | 636 | function merge_file_post_data($type, array $file, &$post) |
633 | 637 | { |
634 | 638 | foreach ($file as $key => $value) { |
@@ -848,7 +852,7 @@ discard block |
||
848 | 852 | * @param boolean $isFile (optional) |
849 | 853 | * if this is true, the method will attempt to read from a file, `$data` |
850 | 854 | * instead. |
851 | - * @param mixed $xsltProcessor (optional) |
|
855 | + * @param XsltProcess $xsltProcessor (optional) |
|
852 | 856 | * if set, the validation will be done using this XSLT processor rather |
853 | 857 | * than the built in XML parser. the default is null. |
854 | 858 | * @param string $encoding (optional) |
@@ -930,7 +934,7 @@ discard block |
||
930 | 934 | * the path of the file to write. |
931 | 935 | * @param mixed $data |
932 | 936 | * the data to write to the file. |
933 | - * @param integer|null $perm (optional) |
|
937 | + * @param integer $perm (optional) |
|
934 | 938 | * the permissions as an octal number to set set on the resulting file. |
935 | 939 | * this defaults to 0644 (if omitted or set to null) |
936 | 940 | * @param string $mode (optional) |
@@ -1051,7 +1055,7 @@ discard block |
||
1051 | 1055 | * @param mixed $strip_root (optional) |
1052 | 1056 | * If null, the full path to the file will be returned, otherwise the value |
1053 | 1057 | * of `strip_root` will be removed from the file path. |
1054 | - * @param array $exclude (optional) |
|
1058 | + * @param string[] $exclude (optional) |
|
1055 | 1059 | * ignore directories listed in this array. this defaults to an empty array. |
1056 | 1060 | * @param boolean $ignore_hidden (optional) |
1057 | 1061 | * ignore hidden directory (i.e.directories that begin with a period). this defaults |
@@ -1110,7 +1114,7 @@ discard block |
||
1110 | 1114 | * @param string $dir (optional) |
1111 | 1115 | * the path of the directory to construct the multi-dimensional array |
1112 | 1116 | * for. this defaults to '.'. |
1113 | - * @param array|string $filters (optional) |
|
1117 | + * @param string $filters (optional) |
|
1114 | 1118 | * either a regular expression to filter the files by or an array of |
1115 | 1119 | * files to include. |
1116 | 1120 | * @param boolean $recurse (optional) |
@@ -298,7 +298,7 @@ |
||
298 | 298 | * it is also possible to override the default filters on the resulting string. |
299 | 299 | * |
300 | 300 | * @link http://php.net/manual/en/filter.filters.php |
301 | - * @param array $exclude |
|
301 | + * @param string[] $exclude |
|
302 | 302 | * A simple array with the keys that should be omitted in the resulting |
303 | 303 | * query string. |
304 | 304 | * @param integer $filters |
@@ -542,7 +542,7 @@ |
||
542 | 542 | * @since Symphony 2.3 |
543 | 543 | * @param string $string |
544 | 544 | * The string that should be cleaned-up |
545 | - * @return mixed |
|
545 | + * @return string |
|
546 | 546 | * Returns the transliterated string |
547 | 547 | */ |
548 | 548 | private static function applyTransliterations($string) |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | * Returns the last insert ID from the previous query. This is |
356 | 356 | * the value from an auto_increment field. |
357 | 357 | * |
358 | - * @return integer |
|
358 | + * @return string |
|
359 | 359 | * The last interested row's ID |
360 | 360 | */ |
361 | 361 | public function getInsertID() |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | * conflicts. By default this is set to false, which will not update the data and |
383 | 383 | * would return an SQL error |
384 | 384 | * @throws DatabaseException |
385 | - * @return boolean |
|
385 | + * @return PDOStatement |
|
386 | 386 | */ |
387 | 387 | public function insert(array $fields, $table, $updateOnDuplicate = false) |
388 | 388 | { |
@@ -445,7 +445,7 @@ discard block |
||
445 | 445 | * A WHERE statement for this UPDATE statement, defaults to null |
446 | 446 | * which will update all rows in the $table |
447 | 447 | * @param array $params |
448 | - * @return bool |
|
448 | + * @return PDOStatement |
|
449 | 449 | */ |
450 | 450 | public function update($fields, $table, $where = null, $params = array()) |
451 | 451 | { |
@@ -472,7 +472,7 @@ discard block |
||
472 | 472 | * which will delete all rows in the $table |
473 | 473 | * @param array $params |
474 | 474 | * @throws DatabaseException |
475 | - * @return boolean |
|
475 | + * @return PDOStatement |
|
476 | 476 | */ |
477 | 477 | public function delete($table, $where = null, array $params = array()) |
478 | 478 | { |
@@ -685,7 +685,7 @@ discard block |
||
685 | 685 | * @throws Exception |
686 | 686 | * @param string $sql |
687 | 687 | * A string containing SQL queries delimited by `;` |
688 | - * @return boolean |
|
688 | + * @return boolean|null |
|
689 | 689 | * If one of the queries fails, false will be returned and no further queries |
690 | 690 | * will be executed, otherwise true will be returned. |
691 | 691 | */ |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * @param array $fields |
24 | 24 | * Associative array of field names => values for the Page |
25 | 25 | * @throws DatabaseException |
26 | - * @return integer|boolean |
|
26 | + * @return false|string |
|
27 | 27 | * Returns the Page ID of the created Page on success, false otherwise. |
28 | 28 | */ |
29 | 29 | public static function add(array $fields) |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * |
66 | 66 | * @param string $handle |
67 | 67 | * The handle of the page |
68 | - * @return integer |
|
68 | + * @return string |
|
69 | 69 | * The Page title |
70 | 70 | */ |
71 | 71 | public static function fetchTitleFromHandle($handle) |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | * |
85 | 85 | * @param string $handle |
86 | 86 | * The handle of the page |
87 | - * @return integer |
|
87 | + * @return string |
|
88 | 88 | * The Page ID |
89 | 89 | */ |
90 | 90 | public static function fetchIDFromHandle($handle) |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | * |
479 | 479 | * @param string $name |
480 | 480 | * Name of the template |
481 | - * @return mixed |
|
481 | + * @return string|false |
|
482 | 482 | * String, which is the path to the template if the template is found, |
483 | 483 | * false otherwise |
484 | 484 | */ |
@@ -610,10 +610,10 @@ discard block |
||
610 | 610 | * |
611 | 611 | * @param integer|array $page_id |
612 | 612 | * The ID of the Page, or an array of ID's |
613 | - * @param array $select (optional) |
|
613 | + * @param string[] $select (optional) |
|
614 | 614 | * Accepts an array of columns to return from `tbl_pages`. If omitted, |
615 | 615 | * all columns from the table will be returned. |
616 | - * @return array|null |
|
616 | + * @return integer|null |
|
617 | 617 | * An associative array of Page information with the key being the column |
618 | 618 | * name from `tbl_pages` and the value being the data. If multiple Pages |
619 | 619 | * are found, an array of Pages will be returned. If no Pages are found |
@@ -452,7 +452,7 @@ |
||
452 | 452 | * |
453 | 453 | * @param string $name |
454 | 454 | * Name of the template |
455 | - * @return mixed |
|
455 | + * @return string|false |
|
456 | 456 | * String, which is the path to the template if the template is found, |
457 | 457 | * false otherwise |
458 | 458 | */ |
@@ -293,7 +293,7 @@ |
||
293 | 293 | * function. |
294 | 294 | * |
295 | 295 | * @see toolkit.Field#commit() |
296 | - * @return boolean |
|
296 | + * @return boolean|null |
|
297 | 297 | * true if the commit was successful, false otherwise. |
298 | 298 | */ |
299 | 299 | public function commit() |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * An associative of settings for a section with the key being |
31 | 31 | * a column name from `tbl_sections` |
32 | 32 | * @throws DatabaseException |
33 | - * @return integer |
|
33 | + * @return false|string |
|
34 | 34 | * The newly created Section's ID |
35 | 35 | */ |
36 | 36 | public static function add(array $settings) |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | * |
195 | 195 | * @param string $handle |
196 | 196 | * The handle of the section |
197 | - * @return integer |
|
197 | + * @return string |
|
198 | 198 | * The Section ID |
199 | 199 | */ |
200 | 200 | public static function fetchIDFromHandle($handle) |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | * @param integer $field_id |
283 | 283 | * the field ID of the linked section's linked field. |
284 | 284 | * @throws DatabaseException |
285 | - * @return boolean |
|
285 | + * @return PDOStatement |
|
286 | 286 | */ |
287 | 287 | public static function removeSectionAssociation($field_id) |
288 | 288 | { |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * @param string $message |
114 | 114 | * @throws SMTPException |
115 | 115 | * @throws Exception |
116 | - * @return boolean |
|
116 | + * @return boolean|null |
|
117 | 117 | */ |
118 | 118 | public function sendMail($from, $to, $message) |
119 | 119 | { |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | * |
310 | 310 | * @param string $request |
311 | 311 | * @throws SMTPException |
312 | - * @return boolean|integer number of characters written. |
|
312 | + * @return integer number of characters written. |
|
313 | 313 | */ |
314 | 314 | protected function _send($request) |
315 | 315 | { |