@@ -102,7 +102,7 @@ |
||
| 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 | */ |
@@ -201,6 +201,9 @@ |
||
| 201 | 201 | return self::__OK__; |
| 202 | 202 | } |
| 203 | 203 | |
| 204 | + /** |
|
| 205 | + * @param integer $entry_id |
|
| 206 | + */ |
|
| 204 | 207 | public function processRawFieldData($data, &$status, &$message = null, $simulate = false, $entry_id = null) |
| 205 | 208 | { |
| 206 | 209 | $status = self::__OK__; |
@@ -435,6 +435,9 @@ |
||
| 435 | 435 | } |
| 436 | 436 | } |
| 437 | 437 | |
| 438 | + /** |
|
| 439 | + * @param string $message |
|
| 440 | + */ |
|
| 438 | 441 | private function __appendError(array $codes, XMLElement &$element, $message = null) |
| 439 | 442 | { |
| 440 | 443 | if (is_null($message)) { |
@@ -1526,6 +1526,9 @@ discard block |
||
| 1526 | 1526 | $shell = str_replace($placeholder, trim($string), $shell); |
| 1527 | 1527 | } |
| 1528 | 1528 | |
| 1529 | + /** |
|
| 1530 | + * @param string $shell |
|
| 1531 | + */ |
|
| 1529 | 1532 | public static function injectAboutInformation(&$shell, array $details) |
| 1530 | 1533 | { |
| 1531 | 1534 | if (!is_array($details) || empty($details)) { |
@@ -1576,6 +1579,10 @@ discard block |
||
| 1576 | 1579 | $shell = str_replace($placeholder, trim($var_list) . PHP_EOL . " " . $placeholder, $shell); |
| 1577 | 1580 | } |
| 1578 | 1581 | |
| 1582 | + /** |
|
| 1583 | + * @param string $h4_label |
|
| 1584 | + * @param string $name |
|
| 1585 | + */ |
|
| 1579 | 1586 | public function __appendAuthorFilter(&$wrapper, $h4_label, $name, $value = null, $templateOnly = true) |
| 1580 | 1587 | { |
| 1581 | 1588 | if (!$templateOnly) { |
@@ -1655,7 +1662,7 @@ discard block |
||
| 1655 | 1662 | * |
| 1656 | 1663 | * @since Symphony 2.3.3 |
| 1657 | 1664 | * @param XMLElement $element |
| 1658 | - * @param array $context |
|
| 1665 | + * @param string[] $context |
|
| 1659 | 1666 | */ |
| 1660 | 1667 | public function setContext(&$element, $context) |
| 1661 | 1668 | { |
@@ -673,6 +673,9 @@ |
||
| 673 | 673 | $shell = str_replace('<!-- FILTERS -->', "'" . implode("'," . PHP_EOL . " '", $elements) . "'", $shell); |
| 674 | 674 | } |
| 675 | 675 | |
| 676 | + /** |
|
| 677 | + * @param string $shell |
|
| 678 | + */ |
|
| 676 | 679 | public function __injectAboutInformation(&$shell, $details) |
| 677 | 680 | { |
| 678 | 681 | if (!is_array($details) || empty($details)) { |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | * Initialises a new Session instance using this cookie's params |
| 121 | 121 | * |
| 122 | 122 | * @throws Throwable |
| 123 | - * @return string|boolean |
|
| 123 | + * @return false|string |
|
| 124 | 124 | */ |
| 125 | 125 | private function __init() |
| 126 | 126 | { |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | * result in the current time being used |
| 204 | 204 | * @param string $timezone (optional) |
| 205 | 205 | * The timezone associated with the timestamp |
| 206 | - * @return string|boolean |
|
| 206 | + * @return false|string |
|
| 207 | 207 | * The formatted date, of if the date could not be parsed, false. |
| 208 | 208 | */ |
| 209 | 209 | public static function get($format, $timestamp = 'now', $timezone = null) |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | * Localizes the output, if true, defaults to true |
| 226 | 226 | * @param string $timezone (optional) |
| 227 | 227 | * The timezone associated with the timestamp |
| 228 | - * @return string|boolean |
|
| 228 | + * @return false|string |
|
| 229 | 229 | * The formatted date, or if the date could not be parsed, false. |
| 230 | 230 | */ |
| 231 | 231 | public static function format($string = 'now', $format = DateTime::ISO8601, $localize = true, $timezone = null) |
@@ -288,26 +288,6 @@ |
||
| 288 | 288 | * @param string $alternative |
| 289 | 289 | * The name of the new method to use |
| 290 | 290 | * @param array $opts (optional) |
| 291 | - * @param string $opts.message-format |
|
| 292 | - * The sprintf format to apply to $method |
|
| 293 | - * @param string $opts.alternative-format |
|
| 294 | - * The sprintf format to apply to $alternative |
|
| 295 | - * @param string $opts.removal-format |
|
| 296 | - * The sprintf format to apply to $opts.removal-version |
|
| 297 | - * @param string $opts.removal-version |
|
| 298 | - * The Symphony version at which the removal is planned |
|
| 299 | - * @param boolean $opts.write-to-log |
|
| 300 | - * If set to true, this message will be immediately written to the log. By default |
|
| 301 | - * this is set to false, which means that it will only be added to the array ready |
|
| 302 | - * for writing |
|
| 303 | - * @param boolean $opts.addbreak |
|
| 304 | - * To be used in conjunction with `$opts.write-to-log`, this will add a line break |
|
| 305 | - * before writing this message in the log file. Defaults to true. |
|
| 306 | - * @param boolean $opts.append |
|
| 307 | - * If set to true, the given `$message` will be append to the previous log |
|
| 308 | - * message found in the `$_log` array |
|
| 309 | - * @param boolean $opts.addtrace |
|
| 310 | - * If set to true, the caller of the function will be added. Defaults to true. |
|
| 311 | 291 | * @return boolean|null |
| 312 | 292 | * If `$writeToLog` is passed, this function will return boolean, otherwise |
| 313 | 293 | * void |
@@ -629,7 +629,7 @@ discard block |
||
| 629 | 629 | * This methods sets the `GenericExceptionHandler::$enabled` value to `true`. |
| 630 | 630 | * |
| 631 | 631 | * @see core.SymphonyErrorPage |
| 632 | - * @param string|XMLElement $message |
|
| 632 | + * @param string $message |
|
| 633 | 633 | * A description for this error, which can be provided as a string |
| 634 | 634 | * or as an XMLElement. |
| 635 | 635 | * @param string $heading |
@@ -673,7 +673,7 @@ discard block |
||
| 673 | 673 | * Accessor for `self::$exception`. |
| 674 | 674 | * |
| 675 | 675 | * @since Symphony 2.3.2 |
| 676 | - * @return Throwable|null |
|
| 676 | + * @return Exception |
|
| 677 | 677 | */ |
| 678 | 678 | public static function getException() |
| 679 | 679 | { |