@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | * Generates a safe key for use with cache engine storage engines. |
239 | 239 | * |
240 | 240 | * @param string $key the key passed over |
241 | - * @return bool|string string key or false |
|
241 | + * @return false|string string key or false |
|
242 | 242 | */ |
243 | 243 | public function key($key) |
244 | 244 | { |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | * Generates a safe key, taking account of the configured key prefix |
260 | 260 | * |
261 | 261 | * @param string $key the key passed over |
262 | - * @return mixed string $key or false |
|
262 | + * @return string string $key or false |
|
263 | 263 | * @throws \InvalidArgumentException If key's value is empty |
264 | 264 | */ |
265 | 265 | protected function _key($key) |
@@ -119,7 +119,7 @@ |
||
119 | 119 | * @param array $conditions A key-value list of conditions to match where the |
120 | 120 | * key is the property path to get from the current item and the value is the |
121 | 121 | * value to be compared the item with. |
122 | - * @return callable |
|
122 | + * @return \Closure |
|
123 | 123 | */ |
124 | 124 | protected function _createMatcherFilter(array $conditions) |
125 | 125 | { |
@@ -316,7 +316,7 @@ |
||
316 | 316 | * Check if a shell class exists for the given name. |
317 | 317 | * |
318 | 318 | * @param string $shell The shell name to look for. |
319 | - * @return string|bool Either the classname or false. |
|
319 | + * @return string|false Either the classname or false. |
|
320 | 320 | */ |
321 | 321 | protected function _shellExists($shell) |
322 | 322 | { |
@@ -174,7 +174,7 @@ |
||
174 | 174 | * with the placeholder $generator |
175 | 175 | * |
176 | 176 | * @param \Cake\Database\ValueBinder $generator The value binder to use. |
177 | - * @return array First position containing the template and the second a placeholder |
|
177 | + * @return string[] First position containing the template and the second a placeholder |
|
178 | 178 | */ |
179 | 179 | protected function _stringExpression($generator) |
180 | 180 | { |
@@ -87,7 +87,7 @@ |
||
87 | 87 | * |
88 | 88 | * @param \Cake\Database\Query $query The query that is being compiled |
89 | 89 | * @param \Cake\Database\ValueBinder $generator the placeholder generator to be used in expressions |
90 | - * @return \Closure |
|
90 | + * @return string |
|
91 | 91 | */ |
92 | 92 | public function compile(Query $query, ValueBinder $generator) |
93 | 93 | { |
@@ -81,7 +81,7 @@ |
||
81 | 81 | * |
82 | 82 | * @param string $type the type of query to be transformed |
83 | 83 | * (select, insert, update, delete) |
84 | - * @return callable |
|
84 | + * @return \Closure |
|
85 | 85 | */ |
86 | 86 | public function queryTranslator($type) |
87 | 87 | { |
@@ -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) |
@@ -84,7 +84,7 @@ |
||
84 | 84 | * can optionally be used by log engines to interpolate variables |
85 | 85 | * or add additional info to the logged message. |
86 | 86 | * |
87 | - * @param mixed $data The data to be converted to string and logged. |
|
87 | + * @param string $data The data to be converted to string and logged. |
|
88 | 88 | * @param array $context Additional logging information for the message. |
89 | 89 | * @return string |
90 | 90 | */ |
@@ -744,7 +744,7 @@ discard block |
||
744 | 744 | * - `bcc` |
745 | 745 | * - `subject` |
746 | 746 | * |
747 | - * @param array $include List of headers. |
|
747 | + * @param string[] $include List of headers. |
|
748 | 748 | * @return array |
749 | 749 | */ |
750 | 750 | public function getHeaders(array $include = []) |
@@ -1504,7 +1504,7 @@ discard block |
||
1504 | 1504 | * |
1505 | 1505 | * @param string $message Message to wrap |
1506 | 1506 | * @param int $wrapLength The line length |
1507 | - * @return array Wrapped message |
|
1507 | + * @return string[] Wrapped message |
|
1508 | 1508 | */ |
1509 | 1509 | protected function _wrap($message, $wrapLength = Email::LINE_LENGTH_MUST) |
1510 | 1510 | { |
@@ -1703,7 +1703,7 @@ discard block |
||
1703 | 1703 | /** |
1704 | 1704 | * Render the body of the email. |
1705 | 1705 | * |
1706 | - * @param array $content Content to render |
|
1706 | + * @param string[] $content Content to render |
|
1707 | 1707 | * @return array Email body ready to be sent |
1708 | 1708 | */ |
1709 | 1709 | protected function _render($content) |
@@ -1792,7 +1792,7 @@ discard block |
||
1792 | 1792 | /** |
1793 | 1793 | * Gets the text body types that are in this email message |
1794 | 1794 | * |
1795 | - * @return array Array of types. Valid types are 'text' and 'html' |
|
1795 | + * @return string[] Array of types. Valid types are 'text' and 'html' |
|
1796 | 1796 | */ |
1797 | 1797 | protected function _getTypes() |
1798 | 1798 | { |