@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | * |
108 | 108 | * @since Symphony 2.2.4 |
109 | 109 | * @param string $name |
110 | - * @return array|string|null |
|
110 | + * @return string |
|
111 | 111 | * If `$name` is omitted this function returns array. |
112 | 112 | * If `$name` is not set, this fucntion returns `null` |
113 | 113 | * If `$name` is set, this function returns string |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | * result in the current time being used |
192 | 192 | * @param string $timezone (optional) |
193 | 193 | * The timezone associated with the timestamp |
194 | - * @return string|boolean |
|
194 | + * @return false|string |
|
195 | 195 | * The formatted date, of if the date could not be parsed, false. |
196 | 196 | */ |
197 | 197 | public static function get($format, $timestamp = 'now', $timezone = null) |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | * Localizes the output, if true, defaults to true |
214 | 214 | * @param string $timezone (optional) |
215 | 215 | * The timezone associated with the timestamp |
216 | - * @return string|boolean |
|
216 | + * @return false|string |
|
217 | 217 | * The formatted date, or if the date could not be parsed, false. |
218 | 218 | */ |
219 | 219 | public static function format($string = 'now', $format = DateTime::ISO8601, $localize = true, $timezone = null) |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | * @param boolean $append |
194 | 194 | * If set to true, the given `$message` will be append to the previous log |
195 | 195 | * message found in the `$_log` array |
196 | - * @return mixed |
|
196 | + * @return boolean|null |
|
197 | 197 | * If `$writeToLog` is passed, this function will return boolean, otherwise |
198 | 198 | * void |
199 | 199 | */ |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | * @param boolean $append |
252 | 252 | * If set to true, the given `$message` will be append to the previous log |
253 | 253 | * message found in the `$_log` array |
254 | - * @return mixed |
|
254 | + * @return boolean|null |
|
255 | 255 | * If `$writeToLog` is passed, this function will return boolean, otherwise |
256 | 256 | * void |
257 | 257 | */ |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * edit an event but it's `allowEditorToParse()` returns `false`. If this is not implemented by |
88 | 88 | * the event, a default Symphony message will appear. |
89 | 89 | * |
90 | - * @return string|XMLElement |
|
90 | + * @return string |
|
91 | 91 | */ |
92 | 92 | public static function documentation() |
93 | 93 | { |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * |
103 | 103 | * @param string $language |
104 | 104 | * Language used in system |
105 | - * @return mixed |
|
105 | + * @return string|false |
|
106 | 106 | * String, which is the path to the template if the template is found, |
107 | 107 | * false otherwise |
108 | 108 | */ |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | * The name of the Extension Class minus the extension prefix. |
325 | 325 | * @param string $file_version |
326 | 326 | * The version of the extension from the **file**, not the Database. |
327 | - * @return string|boolean |
|
327 | + * @return false|string |
|
328 | 328 | * If the given extension (by $name) requires updating, the installed |
329 | 329 | * version is returned, otherwise, if the extension doesn't require |
330 | 330 | * updating, false. |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | * An extension object |
573 | 573 | * @throws SymphonyErrorPage |
574 | 574 | * @throws Exception |
575 | - * @return boolean |
|
575 | + * @return boolean|null |
|
576 | 576 | */ |
577 | 577 | private static function __canUninstallOrDisable(Extension $obj) |
578 | 578 | { |
@@ -1220,7 +1220,7 @@ discard block |
||
1220 | 1220 | * If the date type is set, only the calendar will be shown in the suggestion dropdown. |
1221 | 1221 | * |
1222 | 1222 | * @since Symphony 2.6.0 |
1223 | - * @return array |
|
1223 | + * @return string[] |
|
1224 | 1224 | */ |
1225 | 1225 | public function fetchSuggestionTypes() |
1226 | 1226 | { |
@@ -1313,7 +1313,7 @@ discard block |
||
1313 | 1313 | * |
1314 | 1314 | * @param string $string |
1315 | 1315 | * The string to test. |
1316 | - * @return boolean |
|
1316 | + * @return boolean|null |
|
1317 | 1317 | * True if the string is prefixed with `regexp:` or `not-regexp:`, false otherwise. |
1318 | 1318 | */ |
1319 | 1319 | protected static function isFilterRegex($string) |
@@ -1333,7 +1333,7 @@ discard block |
||
1333 | 1333 | * @link http://dev.mysql.com/doc/refman/5.5/en/regexp.html |
1334 | 1334 | * @param string $filter |
1335 | 1335 | * The full filter, eg. `regexp: ^[a-d]` |
1336 | - * @param array $columns |
|
1336 | + * @param string[] $columns |
|
1337 | 1337 | * The array of columns that need the given `$filter` applied to. The conditions |
1338 | 1338 | * will be added using `OR`. |
1339 | 1339 | * @param string $joins |
@@ -1504,7 +1504,7 @@ discard block |
||
1504 | 1504 | * The data for this field from it's `tbl_entry_data_{id}` table |
1505 | 1505 | * @param integer $entry_id |
1506 | 1506 | * The optional id of this field entry instance |
1507 | - * @return string|array |
|
1507 | + * @return string |
|
1508 | 1508 | * The formatted value to be used as the parameter. Note that this can be |
1509 | 1509 | * an array or a string. When returning multiple values use array, otherwise |
1510 | 1510 | * use string. |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * @param boolean $isFile (optional) |
105 | 105 | * if this is true, the method will attempt to read from a file, `$data` |
106 | 106 | * instead. |
107 | - * @param mixed $xsltProcessor (optional) |
|
107 | + * @param XsltProcess $xsltProcessor (optional) |
|
108 | 108 | * if set, the validation will be done using this XSLT processor rather |
109 | 109 | * than the built in XML parser. the default is null. |
110 | 110 | * @param string $encoding (optional) |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | * the string to operate on |
437 | 437 | * @param integer $val |
438 | 438 | * the number to compare lengths with |
439 | - * @return string|boolean |
|
439 | + * @return string |
|
440 | 440 | * the resulting string or false on failure. |
441 | 441 | */ |
442 | 442 | public static function substrmin($str, $val) |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | * the string to operate on |
454 | 454 | * @param integer $val |
455 | 455 | * the number to compare lengths with |
456 | - * @return string|boolean |
|
456 | + * @return string |
|
457 | 457 | * the resulting string or false on failure. |
458 | 458 | */ |
459 | 459 | public static function substrmax($str, $val) |
@@ -468,7 +468,7 @@ discard block |
||
468 | 468 | * the string to extract the characters from. |
469 | 469 | * @param integer $num |
470 | 470 | * the number of characters to extract. |
471 | - * @return string|boolean |
|
471 | + * @return string |
|
472 | 472 | * a string containing the last `$num` characters of the |
473 | 473 | * input string, or false on failure. |
474 | 474 | */ |
@@ -485,7 +485,7 @@ discard block |
||
485 | 485 | * the string to extract the characters from. |
486 | 486 | * @param integer $num |
487 | 487 | * the number of characters to extract. |
488 | - * @return string|boolean |
|
488 | + * @return string |
|
489 | 489 | * a string containing the last `$num` characters of the |
490 | 490 | * input string, or false on failure. |
491 | 491 | */ |
@@ -682,6 +682,10 @@ discard block |
||
682 | 682 | public static function getPostData() |
683 | 683 | { |
684 | 684 | if (!function_exists('merge_file_post_data')) { |
685 | + |
|
686 | + /** |
|
687 | + * @param string $type |
|
688 | + */ |
|
685 | 689 | function merge_file_post_data($type, array $file, &$post) |
686 | 690 | { |
687 | 691 | foreach ($file as $key => $value) { |
@@ -900,7 +904,7 @@ discard block |
||
900 | 904 | * the path of the file to write. |
901 | 905 | * @param mixed $data |
902 | 906 | * the data to write to the file. |
903 | - * @param integer|null $perm (optional) |
|
907 | + * @param integer $perm (optional) |
|
904 | 908 | * the permissions as an octal number to set set on the resulting file. |
905 | 909 | * this defaults to 0644 (if omitted or set to null) |
906 | 910 | * @param string $mode (optional) |
@@ -1100,7 +1104,7 @@ discard block |
||
1100 | 1104 | * @param mixed $strip_root (optional) |
1101 | 1105 | * If null, the full path to the file will be returned, otherwise the value |
1102 | 1106 | * of `strip_root` will be removed from the file path. |
1103 | - * @param array $exclude (optional) |
|
1107 | + * @param string[] $exclude (optional) |
|
1104 | 1108 | * ignore directories listed in this array. this defaults to an empty array. |
1105 | 1109 | * @param boolean $ignore_hidden (optional) |
1106 | 1110 | * ignore hidden directory (i.e.directories that begin with a period). this defaults |
@@ -1152,7 +1156,7 @@ discard block |
||
1152 | 1156 | * @param string $dir (optional) |
1153 | 1157 | * the path of the directory to construct the multi-dimensional array |
1154 | 1158 | * for. this defaults to '.'. |
1155 | - * @param array|string $filters (optional) |
|
1159 | + * @param string $filters (optional) |
|
1156 | 1160 | * either a regular expression to filter the files by or an array of |
1157 | 1161 | * files to include. |
1158 | 1162 | * @param boolean $recurse (optional) |
@@ -1345,6 +1349,7 @@ discard block |
||
1345 | 1349 | * the full path name of the source file to move. |
1346 | 1350 | * @param integer $perm (optional) |
1347 | 1351 | * the permissions to apply to the moved file. this defaults to 0777. |
1352 | + * @param string $dest_name |
|
1348 | 1353 | * @return boolean |
1349 | 1354 | * true if the file was moved and its permissions set as required. false otherwise. |
1350 | 1355 | */ |
@@ -287,7 +287,7 @@ |
||
287 | 287 | * it is also possible to override the default filters on the resulting string. |
288 | 288 | * |
289 | 289 | * @link http://php.net/manual/en/filter.filters.php |
290 | - * @param array $exclude |
|
290 | + * @param string[] $exclude |
|
291 | 291 | * A simple array with the keys that should be omitted in the resulting |
292 | 292 | * query string. |
293 | 293 | * @param integer $filters |
@@ -537,7 +537,7 @@ |
||
537 | 537 | * @since Symphony 2.3 |
538 | 538 | * @param string $string |
539 | 539 | * The string that should be cleaned-up |
540 | - * @return mixed |
|
540 | + * @return string |
|
541 | 541 | * Returns the transliterated string |
542 | 542 | */ |
543 | 543 | private static function applyTransliterations($string) |
@@ -418,7 +418,7 @@ |
||
418 | 418 | * |
419 | 419 | * @param string $name |
420 | 420 | * Name of the template |
421 | - * @return mixed |
|
421 | + * @return string|false |
|
422 | 422 | * String, which is the path to the template if the template is found, |
423 | 423 | * false otherwise |
424 | 424 | */ |