@@ -835,7 +835,7 @@ discard block |
||
835 | 835 | * authenticated, this function will return the instance of the authentication |
836 | 836 | * object that was used for logging the user in. |
837 | 837 | * |
838 | - * @return \Cake\Auth\BaseAuthenticate|null |
|
838 | + * @return \Cake\Auth\BaseAuthenticate |
|
839 | 839 | */ |
840 | 840 | public function authenticationProvider() |
841 | 841 | { |
@@ -847,7 +847,7 @@ discard block |
||
847 | 847 | * will return the instance of the Authorization object that granted access to the |
848 | 848 | * user to the current address. |
849 | 849 | * |
850 | - * @return \Cake\Auth\BaseAuthorize|null |
|
850 | + * @return \Cake\Auth\BaseAuthorize |
|
851 | 851 | */ |
852 | 852 | public function authorizationProvider() |
853 | 853 | { |
@@ -162,7 +162,7 @@ |
||
162 | 162 | * ``` |
163 | 163 | * |
164 | 164 | * @param string $keyname The top level keyname to configure. |
165 | - * @param null|string|array $option Either the option name to set, or an array of options to set, |
|
165 | + * @param string $option Either the option name to set, or an array of options to set, |
|
166 | 166 | * or null to read config options for a given key. |
167 | 167 | * @param string|null $value Either the value to set, or empty when $option is an array. |
168 | 168 | * @return array|null |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | * "304 Not Modified" header. |
306 | 306 | * |
307 | 307 | * @param Event $event The Controller.beforeRender event. |
308 | - * @return bool false if the render process should be aborted |
|
308 | + * @return false|null false if the render process should be aborted |
|
309 | 309 | */ |
310 | 310 | public function beforeRender(Event $event) |
311 | 311 | { |
@@ -468,7 +468,7 @@ discard block |
||
468 | 468 | * |
469 | 469 | * @param string|array $type An optional array of 'friendly' content-type names, i.e. |
470 | 470 | * 'html', 'xml', 'js', etc. |
471 | - * @return mixed If $type is null or not provided, the first content-type in the |
|
471 | + * @return string|null If $type is null or not provided, the first content-type in the |
|
472 | 472 | * list, based on preference, is returned. If a single type is provided |
473 | 473 | * a boolean will be returned if that type is preferred. |
474 | 474 | * If an array of types are provided then the first preferred type is returned. |
@@ -585,7 +585,7 @@ discard block |
||
585 | 585 | * Sets the response header based on type map index name. This wraps several methods |
586 | 586 | * available on Cake\Network\Response. It also allows you to use Content-Type aliases. |
587 | 587 | * |
588 | - * @param string|array $type Friendly type name, i.e. 'html' or 'xml', or a full content-type, |
|
588 | + * @param string $type Friendly type name, i.e. 'html' or 'xml', or a full content-type, |
|
589 | 589 | * like 'application/x-shockwave'. |
590 | 590 | * @param array $options If $type is a friendly type name that is associated with |
591 | 591 | * more than one type of content, $index is used to select which content-type to use. |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | * Check if access requires secure connection |
206 | 206 | * |
207 | 207 | * @param Controller $controller Instantiating controller |
208 | - * @return bool true if secure connection required |
|
208 | + * @return null|boolean true if secure connection required |
|
209 | 209 | */ |
210 | 210 | protected function _secureRequired(Controller $controller) |
211 | 211 | { |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | * |
392 | 392 | * @param Controller $controller Controller to run callback on |
393 | 393 | * @param string $method Method to execute |
394 | - * @param array $params Parameters to send to method |
|
394 | + * @param string[] $params Parameters to send to method |
|
395 | 395 | * @return mixed Controller callback method's response |
396 | 396 | * @throws \Cake\Network\Exception\BadRequestException When a the blackholeCallback is not callable. |
397 | 397 | */ |
@@ -159,7 +159,7 @@ |
||
159 | 159 | * with the placeholder $generator |
160 | 160 | * |
161 | 161 | * @param \Cake\Database\ValueBinder $generator The value binder to use. |
162 | - * @return array First position containing the template and the second a placeholder |
|
162 | + * @return string[] First position containing the template and the second a placeholder |
|
163 | 163 | */ |
164 | 164 | protected function _stringExpression($generator) |
165 | 165 | { |
@@ -107,7 +107,7 @@ |
||
107 | 107 | * Sets the logger object instance. When called with no arguments |
108 | 108 | * it returns the currently setup logger instance |
109 | 109 | * |
110 | - * @param object|null $instance Logger object instance. |
|
110 | + * @param QueryLogger|null $instance Logger object instance. |
|
111 | 111 | * @return object Logger instance |
112 | 112 | */ |
113 | 113 | public function logger($instance = null) |
@@ -90,7 +90,7 @@ |
||
90 | 90 | * |
91 | 91 | * @param \Cake\Database\Query $query The query that is being compiled |
92 | 92 | * @param \Cake\Database\ValueBinder $generator the placeholder generator to be used in expressions |
93 | - * @return \Closure |
|
93 | + * @return string |
|
94 | 94 | */ |
95 | 95 | public function compile(Query $query, ValueBinder $generator) |
96 | 96 | { |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | * Generate the SQL to drop a table. |
113 | 113 | * |
114 | 114 | * @param \Cake\Database\Schema\Table $table Table instance |
115 | - * @return array SQL statements to drop a table. |
|
115 | + * @return string[] SQL statements to drop a table. |
|
116 | 116 | */ |
117 | 117 | public function dropTableSql(Table $table) |
118 | 118 | { |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | * |
165 | 165 | * @param string $tableName Table name. |
166 | 166 | * @param array $config The connection configuration. |
167 | - * @return array SQL statements to get options for a table. |
|
167 | + * @return string[] SQL statements to get options for a table. |
|
168 | 168 | */ |
169 | 169 | public function describeOptionsSql($tableName, $config) |
170 | 170 | { |
@@ -290,7 +290,7 @@ |
||
290 | 290 | * Returns the value of an original property by name |
291 | 291 | * |
292 | 292 | * @param string $property the name of the property for which original value is retrieved. |
293 | - * @return mixed |
|
293 | + * @return string |
|
294 | 294 | * @throws \InvalidArgumentException if an empty property name is passed. |
295 | 295 | */ |
296 | 296 | public function getOriginal($property) |