@@ -77,7 +77,7 @@ |
||
| 77 | 77 | * of name => value |
| 78 | 78 | * |
| 79 | 79 | * @param string $url The URL to find cookies for. |
| 80 | - * @return array |
|
| 80 | + * @return string |
|
| 81 | 81 | */ |
| 82 | 82 | public function get($url) |
| 83 | 83 | { |
@@ -314,7 +314,7 @@ |
||
| 314 | 314 | * |
| 315 | 315 | * @param string|null $name The name of the header you want. Leave |
| 316 | 316 | * null to get all headers. |
| 317 | - * @return mixed Null when the header doesn't exist. An array |
|
| 317 | + * @return string Null when the header doesn't exist. An array |
|
| 318 | 318 | * will be returned when getting all headers or when getting |
| 319 | 319 | * a header that had multiple values set. Otherwise a string |
| 320 | 320 | * will be returned. |
@@ -564,7 +564,7 @@ discard block |
||
| 564 | 564 | * |
| 565 | 565 | * @param string $name The method called |
| 566 | 566 | * @param array $params Array of parameters for the method call |
| 567 | - * @return mixed |
|
| 567 | + * @return boolean |
|
| 568 | 568 | * @throws \BadMethodCallException when an invalid method is called. |
| 569 | 569 | */ |
| 570 | 570 | public function __call($name, $params) |
@@ -647,7 +647,7 @@ discard block |
||
| 647 | 647 | /** |
| 648 | 648 | * Worker for the public is() function |
| 649 | 649 | * |
| 650 | - * @param string|array $type The type of request you want to check. If an array |
|
| 650 | + * @param string $type The type of request you want to check. If an array |
|
| 651 | 651 | * this method will return true if the request matches any type. |
| 652 | 652 | * @return bool Whether or not the request is the type you are checking. |
| 653 | 653 | */ |
@@ -887,7 +887,7 @@ discard block |
||
| 887 | 887 | * Read an HTTP header from the Request information. |
| 888 | 888 | * |
| 889 | 889 | * @param string $name Name of the header you want. |
| 890 | - * @return mixed Either null on no header being set or the value of the header. |
|
| 890 | + * @return string Either null on no header being set or the value of the header. |
|
| 891 | 891 | */ |
| 892 | 892 | public function header($name) |
| 893 | 893 | { |
@@ -1138,7 +1138,7 @@ discard block |
||
| 1138 | 1138 | * will be created for you. |
| 1139 | 1139 | * |
| 1140 | 1140 | * @param string|null $name Dot separated name of the value to read/write |
| 1141 | - * @return mixed|$this Either the value being read, or this so you can chain consecutive writes. |
|
| 1141 | + * @return string Either the value being read, or this so you can chain consecutive writes. |
|
| 1142 | 1142 | */ |
| 1143 | 1143 | public function data($name = null) |
| 1144 | 1144 | { |
@@ -1259,7 +1259,7 @@ discard block |
||
| 1259 | 1259 | * If the request would be GET, response header "Allow: POST, DELETE" will be set |
| 1260 | 1260 | * and a 405 error will be returned. |
| 1261 | 1261 | * |
| 1262 | - * @param string|array $methods Allowed HTTP request methods. |
|
| 1262 | + * @param string $methods Allowed HTTP request methods. |
|
| 1263 | 1263 | * @return bool true |
| 1264 | 1264 | * @throws \Cake\Network\Exception\MethodNotAllowedException |
| 1265 | 1265 | */ |
@@ -991,7 +991,7 @@ discard block |
||
| 991 | 991 | * `$response->expires(new DateTime('+1 day'))` Will set the expiration in next 24 hours |
| 992 | 992 | * `$response->expires()` Will return the current expiration header value |
| 993 | 993 | * |
| 994 | - * @param string|\DateTime|null $time Valid time string or \DateTime instance. |
|
| 994 | + * @param integer $time Valid time string or \DateTime instance. |
|
| 995 | 995 | * @return string|null |
| 996 | 996 | */ |
| 997 | 997 | public function expires($time = null) |
@@ -1016,7 +1016,7 @@ discard block |
||
| 1016 | 1016 | * `$response->modified(new DateTime('+1 day'))` Will set the modification date in the past 24 hours |
| 1017 | 1017 | * `$response->modified()` Will return the current Last-Modified header value |
| 1018 | 1018 | * |
| 1019 | - * @param string|\DateTime|null $time Valid time string or \DateTime instance. |
|
| 1019 | + * @param string $time Valid time string or \DateTime instance. |
|
| 1020 | 1020 | * @return string|null |
| 1021 | 1021 | */ |
| 1022 | 1022 | public function modified($time = null) |
@@ -1603,7 +1603,7 @@ discard block |
||
| 1603 | 1603 | * Stop execution of the current script. Wraps exit() making |
| 1604 | 1604 | * testing easier. |
| 1605 | 1605 | * |
| 1606 | - * @param int|string $status See http://php.net/exit for values |
|
| 1606 | + * @param integer $status See http://php.net/exit for values |
|
| 1607 | 1607 | * @return void |
| 1608 | 1608 | */ |
| 1609 | 1609 | public function stop($status = 0) |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | * |
| 238 | 238 | * @param string|\SessionHandlerInterface|null $class The session handler to use |
| 239 | 239 | * @param array $options the options to pass to the SessionHandler constructor |
| 240 | - * @return \SessionHandlerInterface|null |
|
| 240 | + * @return SessionHandlerInterface |
|
| 241 | 241 | * @throws \InvalidArgumentException |
| 242 | 242 | */ |
| 243 | 243 | public function engine($class = null, array $options = []) |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | /** |
| 300 | 300 | * Starts the Session. |
| 301 | 301 | * |
| 302 | - * @return bool True if session was started |
|
| 302 | + * @return boolean|null True if session was started |
|
| 303 | 303 | * @throws \RuntimeException if the session was already started |
| 304 | 304 | */ |
| 305 | 305 | public function start() |
@@ -291,7 +291,7 @@ |
||
| 291 | 291 | * established. |
| 292 | 292 | * |
| 293 | 293 | * @param int $length Optional buffer length to read; defaults to 1024 |
| 294 | - * @return mixed Socket data |
|
| 294 | + * @return false|string Socket data |
|
| 295 | 295 | */ |
| 296 | 296 | public function read($length = 1024) |
| 297 | 297 | { |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | * arguments are passed, the current configured value is returned |
| 251 | 251 | * |
| 252 | 252 | * @param bool|null $cascadeCallbacks cascade callbacks switch value |
| 253 | - * @return bool |
|
| 253 | + * @return boolean|string |
|
| 254 | 254 | */ |
| 255 | 255 | public function cascadeCallbacks($cascadeCallbacks = null) |
| 256 | 256 | { |
@@ -622,7 +622,7 @@ discard block |
||
| 622 | 622 | * @param mixed $conditions Conditions to be used, accepts anything Query::where() |
| 623 | 623 | * can take. |
| 624 | 624 | * @see \Cake\ORM\Table::updateAll() |
| 625 | - * @return bool Success Returns true if one or more rows are affected. |
|
| 625 | + * @return integer Success Returns true if one or more rows are affected. |
|
| 626 | 626 | */ |
| 627 | 627 | public function updateAll($fields, $conditions) |
| 628 | 628 | { |
@@ -639,7 +639,7 @@ discard block |
||
| 639 | 639 | * |
| 640 | 640 | * @param mixed $conditions Conditions to be used, accepts anything Query::where() |
| 641 | 641 | * can take. |
| 642 | - * @return bool Success Returns true if one or more rows are affected. |
|
| 642 | + * @return integer Success Returns true if one or more rows are affected. |
|
| 643 | 643 | * @see \Cake\ORM\Table::deleteAll() |
| 644 | 644 | */ |
| 645 | 645 | public function deleteAll($conditions) |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | /** |
| 112 | 112 | * Get an array of associations matching a specific type. |
| 113 | 113 | * |
| 114 | - * @param string|array $class The type of associations you want. |
|
| 114 | + * @param string $class The type of associations you want. |
|
| 115 | 115 | * For example 'BelongsTo' or array like ['BelongsTo', 'HasOne'] |
| 116 | 116 | * @return array An array of Association objects. |
| 117 | 117 | */ |
@@ -373,7 +373,7 @@ |
||
| 373 | 373 | * separated strings representing associations that lead to this `$alias` in the |
| 374 | 374 | * chain of associations to be loaded. The second value is the path to follow in |
| 375 | 375 | * entities' properties to fetch a record of the corresponding association. |
| 376 | - * @return array normalized associations |
|
| 376 | + * @return EagerLoadable normalized associations |
|
| 377 | 377 | * @throws \InvalidArgumentException When containments refer to associations that do not exist. |
| 378 | 378 | */ |
| 379 | 379 | protected function _normalizeContain(Table $parent, $alias, $options, $paths) |