@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | * |
89 | 89 | * @param string $action (optional) |
90 | 90 | * @param integer $start_time (optional) |
91 | - * @return integer |
|
91 | + * @return double |
|
92 | 92 | */ |
93 | 93 | function precision_timer($action = 'start', $start_time = null) |
94 | 94 | { |
@@ -212,8 +212,6 @@ discard block |
||
212 | 212 | * Responsible for launching a standard symphony instance and |
213 | 213 | * sending output to the browser. |
214 | 214 | * |
215 | - * @param string $val (optional) |
|
216 | - * @return integer |
|
217 | 215 | */ |
218 | 216 | function symphony_launcher($mode) |
219 | 217 | { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * |
76 | 76 | * @since Symphony 2.2.4 |
77 | 77 | * @param string $name |
78 | - * @return array|string|null |
|
78 | + * @return string |
|
79 | 79 | * If `$name` is omitted this function returns array. |
80 | 80 | * If `$name` is not set, this fucntion returns `null` |
81 | 81 | * If `$name` is set, this function returns string |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * result in the current time being used |
160 | 160 | * @param string $timezone (optional) |
161 | 161 | * The timezone associated with the timestamp |
162 | - * @return string|boolean |
|
162 | + * @return false|string |
|
163 | 163 | * The formatted date, of if the date could not be parsed, false. |
164 | 164 | */ |
165 | 165 | public static function get($format, $timestamp = 'now', $timezone = null) |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | * Localizes the output, if true, defaults to true |
182 | 182 | * @param string $timezone (optional) |
183 | 183 | * The timezone associated with the timestamp |
184 | - * @return string|boolean |
|
184 | + * @return false|string |
|
185 | 185 | * The formatted date, or if the date could not be parsed, false. |
186 | 186 | */ |
187 | 187 | public static function format($string = 'now', $format = DateTime::ISO8601, $localize = true, $timezone = null) |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | * |
372 | 372 | * @link http://au2.php.net/manual/en/function.date.php |
373 | 373 | * @since Symphony 2.3 |
374 | - * @return array |
|
374 | + * @return string[] |
|
375 | 375 | */ |
376 | 376 | public static function getDateFormats() |
377 | 377 | { |
@@ -431,7 +431,7 @@ discard block |
||
431 | 431 | * |
432 | 432 | * @link http://au2.php.net/manual/en/function.date.php |
433 | 433 | * @since Symphony 2.3 |
434 | - * @return array |
|
434 | + * @return string[] |
|
435 | 435 | */ |
436 | 436 | public static function getTimeFormats() |
437 | 437 | { |
@@ -624,7 +624,7 @@ discard block |
||
624 | 624 | * has been found. Returns `FALSE` otherwise. |
625 | 625 | * |
626 | 626 | * @since Symphony 2.3.1 |
627 | - * @return mixed |
|
627 | + * @return string |
|
628 | 628 | */ |
629 | 629 | public static function getMigrationVersion() |
630 | 630 | { |
@@ -677,7 +677,7 @@ discard block |
||
677 | 677 | * This methods sets the `GenericExceptionHandler::$enabled` value to `true`. |
678 | 678 | * |
679 | 679 | * @see core.SymphonyErrorPage |
680 | - * @param string|XMLElement $message |
|
680 | + * @param string $message |
|
681 | 681 | * A description for this error, which can be provided as a string |
682 | 682 | * or as an XMLElement. |
683 | 683 | * @param string $heading |
@@ -716,7 +716,7 @@ discard block |
||
716 | 716 | * Accessor for `self::$exception`. |
717 | 717 | * |
718 | 718 | * @since Symphony 2.3.2 |
719 | - * @return Exception|null |
|
719 | + * @return Exception |
|
720 | 720 | */ |
721 | 721 | public static function getException() |
722 | 722 | { |
@@ -937,7 +937,7 @@ discard block |
||
937 | 937 | * is not found, `false` is returned |
938 | 938 | * |
939 | 939 | * @since Symphony 2.3 |
940 | - * @return mixed |
|
940 | + * @return string|false |
|
941 | 941 | * String, which is the path to the template if the template is found, |
942 | 942 | * false otherwise |
943 | 943 | */ |
@@ -497,7 +497,7 @@ discard block |
||
497 | 497 | * |
498 | 498 | * @throws EmailGatewayException |
499 | 499 | * @throws Exception |
500 | - * @return boolean |
|
500 | + * @return boolean|null |
|
501 | 501 | */ |
502 | 502 | protected function prepareMessageBody() |
503 | 503 | { |
@@ -728,6 +728,7 @@ discard block |
||
728 | 728 | * |
729 | 729 | * @see EmailGateway::contentInfoArray() |
730 | 730 | * |
731 | + * @param string $type |
|
731 | 732 | * @return string|null |
732 | 733 | */ |
733 | 734 | protected function contentInfoString($type = null, $file = null, $filename = null, $charset = null) |
@@ -575,7 +575,7 @@ discard block |
||
575 | 575 | * |
576 | 576 | * @param integer $entry_id |
577 | 577 | * The ID of the Entry to return it's section |
578 | - * @return integer |
|
578 | + * @return string|null |
|
579 | 579 | * The Section ID for this Entry's section |
580 | 580 | */ |
581 | 581 | public static function fetchEntrySectionID($entry_id) |
@@ -656,7 +656,7 @@ discard block |
||
656 | 656 | * by providing an array of field names. Defaults to null, which will load data |
657 | 657 | * from all fields in a section. |
658 | 658 | * @throws Exception |
659 | - * @return array |
|
659 | + * @return integer |
|
660 | 660 | * Either an array of Entry objects, or an associative array containing |
661 | 661 | * the total entries, the start position, the entries per page and the |
662 | 662 | * Entry objects |
@@ -1210,7 +1210,7 @@ discard block |
||
1210 | 1210 | * |
1211 | 1211 | * @param string $string |
1212 | 1212 | * The string to test. |
1213 | - * @return boolean |
|
1213 | + * @return boolean|null |
|
1214 | 1214 | * True if the string is prefixed with `regexp:` or `not-regexp:`, false otherwise. |
1215 | 1215 | */ |
1216 | 1216 | protected static function isFilterRegex($string) |
@@ -1230,7 +1230,7 @@ discard block |
||
1230 | 1230 | * @link http://dev.mysql.com/doc/refman/5.5/en/regexp.html |
1231 | 1231 | * @param string $filter |
1232 | 1232 | * The full filter, eg. `regexp: ^[a-d]` |
1233 | - * @param array $columns |
|
1233 | + * @param string[] $columns |
|
1234 | 1234 | * The array of columns that need the given `$filter` applied to. The conditions |
1235 | 1235 | * will be added using `OR`. |
1236 | 1236 | * @param string $joins |
@@ -1401,7 +1401,7 @@ discard block |
||
1401 | 1401 | * The data for this field from it's `tbl_entry_data_{id}` table |
1402 | 1402 | * @param integer $entry_id |
1403 | 1403 | * The optional id of this field entry instance |
1404 | - * @return string|array |
|
1404 | + * @return string |
|
1405 | 1405 | * The formatted value to be used as the parameter. Note that this can be |
1406 | 1406 | * an array or a string. When returning multiple values use array, otherwise |
1407 | 1407 | * use string. |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @param string $type |
61 | 61 | * The field handle, that is, `field.{$handle}.php` |
62 | - * @return string|boolean |
|
62 | + * @return string|false |
|
63 | 63 | */ |
64 | 64 | public static function __getClassPath($type) |
65 | 65 | { |
@@ -602,7 +602,7 @@ discard block |
||
602 | 602 | * Check if a specific text formatter is used by a Field |
603 | 603 | * |
604 | 604 | * @since Symphony 2.3 |
605 | - * @param $text_formatter_handle |
|
605 | + * @param string $text_formatter_handle |
|
606 | 606 | * The handle of the `TextFormatter` |
607 | 607 | * @return boolean |
608 | 608 | * true if used, false if not |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | * @param boolean $isFile (optional) |
108 | 108 | * if this is true, the method will attempt to read from a file, `$data` |
109 | 109 | * instead. |
110 | - * @param mixed $xsltProcessor (optional) |
|
110 | + * @param XsltProcess $xsltProcessor (optional) |
|
111 | 111 | * if set, the validation will be done using this XSLT processor rather |
112 | 112 | * than the built in XML parser. the default is null. |
113 | 113 | * @param string $encoding (optional) |
@@ -443,7 +443,7 @@ discard block |
||
443 | 443 | * the string to operate on |
444 | 444 | * @param integer $val |
445 | 445 | * the number to compare lengths with |
446 | - * @return string|boolean |
|
446 | + * @return string |
|
447 | 447 | * the resulting string or false on failure. |
448 | 448 | */ |
449 | 449 | public static function substrmin($str, $val) |
@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | * the string to operate on |
461 | 461 | * @param integer $val |
462 | 462 | * the number to compare lengths with |
463 | - * @return string|boolean |
|
463 | + * @return string |
|
464 | 464 | * the resulting string or false on failure. |
465 | 465 | */ |
466 | 466 | public static function substrmax($str, $val) |
@@ -475,7 +475,7 @@ discard block |
||
475 | 475 | * the string to extract the characters from. |
476 | 476 | * @param integer $num |
477 | 477 | * the number of characters to extract. |
478 | - * @return string|boolean |
|
478 | + * @return string |
|
479 | 479 | * a string containing the last `$num` characters of the |
480 | 480 | * input string, or false on failure. |
481 | 481 | */ |
@@ -492,7 +492,7 @@ discard block |
||
492 | 492 | * the string to extract the characters from. |
493 | 493 | * @param integer $num |
494 | 494 | * the number of characters to extract. |
495 | - * @return string|boolean |
|
495 | + * @return string |
|
496 | 496 | * a string containing the last `$num` characters of the |
497 | 497 | * input string, or false on failure. |
498 | 498 | */ |
@@ -586,7 +586,7 @@ discard block |
||
586 | 586 | /** |
587 | 587 | * Search a multi-dimensional array for a value. |
588 | 588 | * |
589 | - * @param mixed $needle |
|
589 | + * @param string $needle |
|
590 | 590 | * the value to search for. |
591 | 591 | * @param array $haystack |
592 | 592 | * the multi-dimensional array to search. |
@@ -690,6 +690,10 @@ discard block |
||
690 | 690 | public static function getPostData() |
691 | 691 | { |
692 | 692 | if (!function_exists('merge_file_post_data')) { |
693 | + |
|
694 | + /** |
|
695 | + * @param string $type |
|
696 | + */ |
|
693 | 697 | function merge_file_post_data($type, array $file, &$post) { |
694 | 698 | foreach ($file as $key => $value) { |
695 | 699 | if (!isset($post[$key])) { |
@@ -905,7 +909,7 @@ discard block |
||
905 | 909 | * the path of the file to write. |
906 | 910 | * @param mixed $data |
907 | 911 | * the data to write to the file. |
908 | - * @param integer|null $perm (optional) |
|
912 | + * @param integer $perm (optional) |
|
909 | 913 | * the permissions as an octal number to set set on the resulting file. |
910 | 914 | * this defaults to 0644 (if omitted or set to null) |
911 | 915 | * @param string $mode (optional) |
@@ -1085,7 +1089,7 @@ discard block |
||
1085 | 1089 | * @param mixed $strip_root (optional) |
1086 | 1090 | * If null, the full path to the file will be returned, otherwise the value |
1087 | 1091 | * of `strip_root` will be removed from the file path. |
1088 | - * @param array $exclude (optional) |
|
1092 | + * @param string[] $exclude (optional) |
|
1089 | 1093 | * ignore directories listed in this array. this defaults to an empty array. |
1090 | 1094 | * @param boolean $ignore_hidden (optional) |
1091 | 1095 | * ignore hidden directory (i.e.directories that begin with a period). this defaults |
@@ -1137,7 +1141,7 @@ discard block |
||
1137 | 1141 | * @param string $dir (optional) |
1138 | 1142 | * the path of the directory to construct the multi-dimensional array |
1139 | 1143 | * for. this defaults to '.'. |
1140 | - * @param array|string $filters (optional) |
|
1144 | + * @param string $filters (optional) |
|
1141 | 1145 | * either a regular expression to filter the files by or an array of |
1142 | 1146 | * files to include. |
1143 | 1147 | * @param boolean $recurse (optional) |
@@ -1330,6 +1334,7 @@ discard block |
||
1330 | 1334 | * the full path name of the source file to move. |
1331 | 1335 | * @param integer $perm (optional) |
1332 | 1336 | * the permissions to apply to the moved file. this defaults to 0777. |
1337 | + * @param string $dest_name |
|
1333 | 1338 | * @return boolean |
1334 | 1339 | * true if the file was moved and its permissions set as required. false otherwise. |
1335 | 1340 | */ |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * @param string $message |
133 | 133 | * @throws SMTPException |
134 | 134 | * @throws Exception |
135 | - * @return boolean |
|
135 | + * @return boolean|null |
|
136 | 136 | */ |
137 | 137 | public function sendMail($from, $to, $subject, $message) |
138 | 138 | { |
@@ -395,7 +395,7 @@ discard block |
||
395 | 395 | * |
396 | 396 | * @param string $request |
397 | 397 | * @throws SMTPException |
398 | - * @return boolean|integer number of characters written. |
|
398 | + * @return integer number of characters written. |
|
399 | 399 | */ |
400 | 400 | protected function _send($request) |
401 | 401 | { |