@@ -116,7 +116,7 @@ |
||
116 | 116 | /** |
117 | 117 | * Returns a FunctionExpression representing a call to SQL COUNT function. |
118 | 118 | * |
119 | - * @param mixed $expression the function argument |
|
119 | + * @param string $expression the function argument |
|
120 | 120 | * @param array $types list of types to bind to the arguments |
121 | 121 | * @return \Cake\Database\Expression\FunctionExpression |
122 | 122 | */ |
@@ -551,7 +551,7 @@ |
||
551 | 551 | /** |
552 | 552 | * Provides magic __get() support. |
553 | 553 | * |
554 | - * @return array |
|
554 | + * @return string |
|
555 | 555 | */ |
556 | 556 | protected function _getBody() |
557 | 557 | { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * @param array $fields The list of fields to check for uniqueness. |
43 | 43 | * @param string|array|null $message The error message to show in case the rule does not pass. Can |
44 | 44 | * also be an array of options. When an array, the 'message' key can be used to provide a message. |
45 | - * @return callable |
|
45 | + * @return \Cake\Datasource\RuleInvoker |
|
46 | 46 | */ |
47 | 47 | public function isUnique(array $fields, $message = null) |
48 | 48 | { |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | * @param object|string $table The table name where the fields existence will be checked. |
89 | 89 | * @param string|array|null $message The error message to show in case the rule does not pass. Can |
90 | 90 | * also be an array of options. When an array, the 'message' key can be used to provide a message. |
91 | - * @return callable |
|
91 | + * @return \Cake\Datasource\RuleInvoker |
|
92 | 92 | */ |
93 | 93 | public function existsIn($field, $table, $message = null) |
94 | 94 | { |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * @param int $count The expected count. |
120 | 120 | * @param string $operator The operator for the count comparison. |
121 | 121 | * @param string|null $message The error message to show in case the rule does not pass. |
122 | - * @return callable |
|
122 | + * @return \Cake\Datasource\RuleInvoker |
|
123 | 123 | */ |
124 | 124 | public function validCount($field, $count = 0, $operator = '>', $message = null) |
125 | 125 | { |
@@ -303,7 +303,7 @@ |
||
303 | 303 | * ``` |
304 | 304 | * |
305 | 305 | * @param string $field The name of the field from which the rule will be added |
306 | - * @param array|string $name The alias for a single rule or multiple rules array |
|
306 | + * @param string $name The alias for a single rule or multiple rules array |
|
307 | 307 | * @param array|\Cake\Validation\ValidationRule $rule the rule to add |
308 | 308 | * @return $this |
309 | 309 | */ |
@@ -231,7 +231,7 @@ |
||
231 | 231 | * |
232 | 232 | * @param string $action The action invoked. |
233 | 233 | * @param string|null $template The name of the template to be rendered. |
234 | - * @return array The cache configuration. |
|
234 | + * @return callable The cache configuration. |
|
235 | 235 | */ |
236 | 236 | protected function _cacheConfig($action, $template = null) |
237 | 237 | { |
@@ -204,7 +204,7 @@ |
||
204 | 204 | * systems like basic and digest auth. |
205 | 205 | * |
206 | 206 | * @param \Cake\Http\ServerRequest $request Request object. |
207 | - * @return mixed Either false or an array of user information |
|
207 | + * @return boolean Either false or an array of user information |
|
208 | 208 | */ |
209 | 209 | public function getUser(ServerRequest $request) |
210 | 210 | { |
@@ -184,7 +184,7 @@ |
||
184 | 184 | /** |
185 | 185 | * Get the default value for this option |
186 | 186 | * |
187 | - * @return mixed |
|
187 | + * @return string |
|
188 | 188 | */ |
189 | 189 | public function defaultValue() |
190 | 190 | { |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | * Generate the SQL to drop a table. |
113 | 113 | * |
114 | 114 | * @param \Cake\Database\Schema\TableSchema $schema Schema 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(TableSchema $schema) |
118 | 118 | { |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * |
166 | 166 | * @param string $tableName Table name. |
167 | 167 | * @param array $config The connection configuration. |
168 | - * @return array SQL statements to get options for a table. |
|
168 | + * @return string[] SQL statements to get options for a table. |
|
169 | 169 | */ |
170 | 170 | public function describeOptionsSql($tableName, $config) |
171 | 171 | { |
@@ -238,7 +238,7 @@ |
||
238 | 238 | /** |
239 | 239 | * Returns a function that can be used as a loader for the registerLoaderMethod |
240 | 240 | * |
241 | - * @return callable |
|
241 | + * @return \Closure |
|
242 | 242 | */ |
243 | 243 | protected function _partialLoader() |
244 | 244 | { |