@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | * When called with a null argument, it will return the current connection instance. |
138 | 138 | * |
139 | 139 | * @param \Cake\Datasource\ConnectionInterface $connection instance |
140 | - * @return $this|\Cake\Datasource\ConnectionInterface |
|
140 | + * @return \Cake\Datasource\ConnectionInterface |
|
141 | 141 | */ |
142 | 142 | public function connection($connection = null) |
143 | 143 | { |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | * This method can be overridden in query subclasses to decorate behavior |
168 | 168 | * around query execution. |
169 | 169 | * |
170 | - * @return \Cake\Database\StatementInterface |
|
170 | + * @return string|null |
|
171 | 171 | */ |
172 | 172 | public function execute() |
173 | 173 | { |
@@ -1509,7 +1509,7 @@ discard block |
||
1509 | 1509 | * iterated without having to call execute() manually, thus making it look like |
1510 | 1510 | * a result set instead of the query itself. |
1511 | 1511 | * |
1512 | - * @return \Iterator |
|
1512 | + * @return StatementInterface |
|
1513 | 1513 | */ |
1514 | 1514 | public function getIterator() |
1515 | 1515 | { |
@@ -1606,7 +1606,7 @@ discard block |
||
1606 | 1606 | * |
1607 | 1607 | * @param callable $callback the function to be executed for each ExpressionInterface |
1608 | 1608 | * found inside this query. |
1609 | - * @return $this|null |
|
1609 | + * @return Query |
|
1610 | 1610 | */ |
1611 | 1611 | public function traverseExpressions(callable $callback) |
1612 | 1612 | { |
@@ -1660,7 +1660,7 @@ discard block |
||
1660 | 1660 | * |
1661 | 1661 | * @param \Cake\Database\ValueBinder $binder new instance to be set. If no value is passed the |
1662 | 1662 | * default one will be returned |
1663 | - * @return $this|\Cake\Database\ValueBinder |
|
1663 | + * @return ValueBinder|null |
|
1664 | 1664 | */ |
1665 | 1665 | public function valueBinder($binder = null) |
1666 | 1666 | { |
@@ -14,9 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | namespace Cake\Database\Schema; |
16 | 16 | |
17 | -use Cake\Core\Configure; |
|
18 | 17 | use Cake\Database\Exception; |
19 | -use RuntimeException; |
|
20 | 18 | |
21 | 19 | /** |
22 | 20 | * Schema management/reflection features for Sqlite |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * and this query object will be returned for chaining. |
90 | 90 | * |
91 | 91 | * @param \Cake\Datasource\RepositoryInterface|null $table The default table object to use |
92 | - * @return \Cake\Datasource\RepositoryInterface|$this |
|
92 | + * @return \Cake\ORM\Table |
|
93 | 93 | */ |
94 | 94 | public function repository(RepositoryInterface $table = null) |
95 | 95 | { |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | * |
164 | 164 | * @param false|string|\Closure $key Either the cache key or a function to generate the cache key. |
165 | 165 | * When using a function, this query instance will be supplied as an argument. |
166 | - * @param string|\Cake\Cache\CacheEngine $config Either the name of the cache config to use, or |
|
166 | + * @param string $config Either the name of the cache config to use, or |
|
167 | 167 | * a cache config instance. |
168 | 168 | * @return $this This instance |
169 | 169 | */ |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | * ``` |
355 | 355 | * |
356 | 356 | * @param callable|null $formatter The formatting callable. |
357 | - * @param bool|int $mode Whether or not to overwrite, append or prepend the formatter. |
|
357 | + * @param integer $mode Whether or not to overwrite, append or prepend the formatter. |
|
358 | 358 | * @return $this|array |
359 | 359 | */ |
360 | 360 | public function formatResults(callable $formatter = null, $mode = 0) |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | * |
427 | 427 | * @see \Cake\ORM\Query::applyOptions() to read about the options that will |
428 | 428 | * be processed by this class and not returned by this function |
429 | - * @return array |
|
429 | + * @return string |
|
430 | 430 | */ |
431 | 431 | public function getOptions() |
432 | 432 | { |
@@ -120,7 +120,7 @@ |
||
120 | 120 | * @param string|null $locale The locale for the translator. |
121 | 121 | * @param callable|null $loader A callback function or callable class responsible for |
122 | 122 | * constructing a translations package instance. |
123 | - * @return \Aura\Intl\Translator|null The configured translator. |
|
123 | + * @return null|\Aura\Intl\TranslatorInterface The configured translator. |
|
124 | 124 | */ |
125 | 125 | public static function translator($name = 'default', $locale = null, callable $loader = null) |
126 | 126 | { |
@@ -766,7 +766,7 @@ discard block |
||
766 | 766 | * - `bcc` |
767 | 767 | * - `subject` |
768 | 768 | * |
769 | - * @param array $include List of headers. |
|
769 | + * @param string[] $include List of headers. |
|
770 | 770 | * @return array |
771 | 771 | */ |
772 | 772 | public function getHeaders(array $include = []) |
@@ -1509,7 +1509,7 @@ discard block |
||
1509 | 1509 | * |
1510 | 1510 | * @param string $message Message to wrap |
1511 | 1511 | * @param int $wrapLength The line length |
1512 | - * @return array Wrapped message |
|
1512 | + * @return string[] Wrapped message |
|
1513 | 1513 | */ |
1514 | 1514 | protected function _wrap($message, $wrapLength = Email::LINE_LENGTH_MUST) |
1515 | 1515 | { |
@@ -1708,7 +1708,7 @@ discard block |
||
1708 | 1708 | /** |
1709 | 1709 | * Render the body of the email. |
1710 | 1710 | * |
1711 | - * @param array $content Content to render |
|
1711 | + * @param string[] $content Content to render |
|
1712 | 1712 | * @return array Email body ready to be sent |
1713 | 1713 | */ |
1714 | 1714 | protected function _render($content) |
@@ -1797,7 +1797,7 @@ discard block |
||
1797 | 1797 | /** |
1798 | 1798 | * Gets the text body types that are in this email message |
1799 | 1799 | * |
1800 | - * @return array Array of types. Valid types are 'text' and 'html' |
|
1800 | + * @return string[] Array of types. Valid types are 'text' and 'html' |
|
1801 | 1801 | */ |
1802 | 1802 | protected function _getTypes() |
1803 | 1803 | { |
@@ -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 | { |
@@ -563,7 +563,7 @@ discard block |
||
563 | 563 | * this method will return false |
564 | 564 | * |
565 | 565 | * @param \Cake\Datasource\EntityInterface $node The node to move |
566 | - * @param int|bool $number How many places to move the node, or true to move to first position |
|
566 | + * @param integer $number How many places to move the node, or true to move to first position |
|
567 | 567 | * @throws \Cake\Datasource\Exception\RecordNotFoundException When node was not found |
568 | 568 | * @return \Cake\ORM\Entity|bool $node The node after being moved or false on failure |
569 | 569 | */ |
@@ -583,9 +583,9 @@ discard block |
||
583 | 583 | * Helper function used with the actual code for moveUp |
584 | 584 | * |
585 | 585 | * @param \Cake\Datasource\EntityInterface $node The node to move |
586 | - * @param int|bool $number How many places to move the node, or true to move to first position |
|
586 | + * @param integer $number How many places to move the node, or true to move to first position |
|
587 | 587 | * @throws \Cake\Datasource\Exception\RecordNotFoundException When node was not found |
588 | - * @return \Cake\ORM\Entity|bool $node The node after being moved or false on failure |
|
588 | + * @return EntityInterface $node The node after being moved or false on failure |
|
589 | 589 | */ |
590 | 590 | protected function _moveUp($node, $number) |
591 | 591 | { |
@@ -644,7 +644,7 @@ discard block |
||
644 | 644 | * this method will return false |
645 | 645 | * |
646 | 646 | * @param \Cake\Datasource\EntityInterface $node The node to move |
647 | - * @param int|bool $number How many places to move the node or true to move to last position |
|
647 | + * @param integer $number How many places to move the node or true to move to last position |
|
648 | 648 | * @throws \Cake\Datasource\Exception\RecordNotFoundException When node was not found |
649 | 649 | * @return \Cake\ORM\Entity|bool the entity after being moved or false on failure |
650 | 650 | */ |
@@ -664,9 +664,9 @@ discard block |
||
664 | 664 | * Helper function used with the actual code for moveDown |
665 | 665 | * |
666 | 666 | * @param \Cake\Datasource\EntityInterface $node The node to move |
667 | - * @param int|bool $number How many places to move the node, or true to move to last position |
|
667 | + * @param integer $number How many places to move the node, or true to move to last position |
|
668 | 668 | * @throws \Cake\Datasource\Exception\RecordNotFoundException When node was not found |
669 | - * @return \Cake\ORM\Entity|bool $node The node after being moved or false on failure |
|
669 | + * @return EntityInterface $node The node after being moved or false on failure |
|
670 | 670 | */ |
671 | 671 | protected function _moveDown($node, $number) |
672 | 672 | { |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use App\Utility\Sanitize; |
7 | 7 | use Cake\Core\Configure; |
8 | 8 | use Cake\Log\Log; |
9 | -use Cake\ORM\Table; |
|
10 | 9 | use Cake\ORM\TableRegistry; |
11 | 10 | use Cake\Network\Exception\NotFoundException; |
12 | 11 | /** |
@@ -125,8 +125,8 @@ |
||
125 | 125 | * Injects the results of the eager loader query into the original list of |
126 | 126 | * entities. |
127 | 127 | * |
128 | - * @param array|\Traversable $objects The original list of entities |
|
129 | - * @param \Cake\Collection\CollectionInterface|\Cake\Database\Query $results The loaded results |
|
128 | + * @param Collection $objects The original list of entities |
|
129 | + * @param Query $results The loaded results |
|
130 | 130 | * @param array $associations The top level associations that were loaded |
131 | 131 | * @param \Cake\ORM\Table $source The table where the entities came from |
132 | 132 | * @return array |
@@ -161,7 +161,7 @@ |
||
161 | 161 | * Get or set default route class. |
162 | 162 | * |
163 | 163 | * @param string|null $routeClass Class name. |
164 | - * @return string|null |
|
164 | + * @return boolean|null |
|
165 | 165 | */ |
166 | 166 | public static function defaultRouteClass($routeClass = null) |
167 | 167 | { |