@@ -120,7 +120,7 @@ |
||
120 | 120 | * Initialises a new Session instance using this cookie's params |
121 | 121 | * |
122 | 122 | * @throws Exception |
123 | - * @return Session |
|
123 | + * @return false|string |
|
124 | 124 | */ |
125 | 125 | private function __init() |
126 | 126 | { |
@@ -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 | */ |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * Whether this cookie should only be sent on secure servers. By default this is |
47 | 47 | * false, which means the cookie can be sent over HTTP and HTTPS |
48 | 48 | * @throws Exception |
49 | - * @return string|boolean |
|
49 | + * @return false|string |
|
50 | 50 | * Returns the Session ID on success, or false on error. |
51 | 51 | */ |
52 | 52 | public static function start($lifetime = 0, $path = '/', $domain = null, $httpOnly = true, $secure = false) |
@@ -633,7 +633,7 @@ discard block |
||
633 | 633 | * This methods sets the `GenericExceptionHandler::$enabled` value to `true`. |
634 | 634 | * |
635 | 635 | * @see core.SymphonyErrorPage |
636 | - * @param string|XMLElement $message |
|
636 | + * @param string $message |
|
637 | 637 | * A description for this error, which can be provided as a string |
638 | 638 | * or as an XMLElement. |
639 | 639 | * @param string $heading |
@@ -672,7 +672,7 @@ discard block |
||
672 | 672 | * Accessor for `self::$exception`. |
673 | 673 | * |
674 | 674 | * @since Symphony 2.3.2 |
675 | - * @return Exception|null |
|
675 | + * @return Exception |
|
676 | 676 | */ |
677 | 677 | public static function getException() |
678 | 678 | { |
@@ -891,7 +891,7 @@ discard block |
||
891 | 891 | * is not found, `false` is returned |
892 | 892 | * |
893 | 893 | * @since Symphony 2.3 |
894 | - * @return mixed |
|
894 | + * @return string|false |
|
895 | 895 | * String, which is the path to the template if the template is found, |
896 | 896 | * false otherwise |
897 | 897 | */ |
@@ -580,7 +580,7 @@ discard block |
||
580 | 580 | * |
581 | 581 | * @param integer $entry_id |
582 | 582 | * The ID of the Entry to return it's section |
583 | - * @return integer |
|
583 | + * @return string|null |
|
584 | 584 | * The Section ID for this Entry's section |
585 | 585 | */ |
586 | 586 | public static function fetchEntrySectionID($entry_id) |
@@ -661,7 +661,7 @@ discard block |
||
661 | 661 | * by providing an array of field names. Defaults to null, which will load data |
662 | 662 | * from all fields in a section. |
663 | 663 | * @throws Exception |
664 | - * @return array |
|
664 | + * @return integer|null |
|
665 | 665 | * Either an array of Entry objects, or an associative array containing |
666 | 666 | * the total entries, the start position, the entries per page and the |
667 | 667 | * Entry objects |
@@ -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. |