@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * Create a new Eloquent model instance. |
131 | 131 | * |
132 | 132 | * @param array $attributes |
133 | - * @return void |
|
133 | + * @return string |
|
134 | 134 | */ |
135 | 135 | public function __construct(array $attributes = []) |
136 | 136 | { |
@@ -573,7 +573,7 @@ discard block |
||
573 | 573 | /** |
574 | 574 | * Perform a model update operation. |
575 | 575 | * |
576 | - * @param \Illuminate\Database\Eloquent\Builder $query |
|
576 | + * @param Builder $query |
|
577 | 577 | * @return bool |
578 | 578 | */ |
579 | 579 | protected function performUpdate(Builder $query) |
@@ -611,8 +611,8 @@ discard block |
||
611 | 611 | /** |
612 | 612 | * Set the keys for a save update query. |
613 | 613 | * |
614 | - * @param \Illuminate\Database\Eloquent\Builder $query |
|
615 | - * @return \Illuminate\Database\Eloquent\Builder |
|
614 | + * @param Builder $query |
|
615 | + * @return Builder |
|
616 | 616 | */ |
617 | 617 | protected function setKeysForSaveQuery(Builder $query) |
618 | 618 | { |
@@ -635,7 +635,7 @@ discard block |
||
635 | 635 | /** |
636 | 636 | * Perform a model insert operation. |
637 | 637 | * |
638 | - * @param \Illuminate\Database\Eloquent\Builder $query |
|
638 | + * @param Builder $query |
|
639 | 639 | * @return bool |
640 | 640 | */ |
641 | 641 | protected function performInsert(Builder $query) |
@@ -686,7 +686,7 @@ discard block |
||
686 | 686 | /** |
687 | 687 | * Insert the given attributes and set the ID on the model. |
688 | 688 | * |
689 | - * @param \Illuminate\Database\Eloquent\Builder $query |
|
689 | + * @param Builder $query |
|
690 | 690 | * @param array $attributes |
691 | 691 | * @return void |
692 | 692 | */ |
@@ -816,7 +816,7 @@ discard block |
||
816 | 816 | /** |
817 | 817 | * Get a new query builder that doesn't have any global scopes. |
818 | 818 | * |
819 | - * @return \Illuminate\Database\Eloquent\Builder|static |
|
819 | + * @return Builder |
|
820 | 820 | */ |
821 | 821 | public function newQueryWithoutScopes() |
822 | 822 | { |
@@ -847,7 +847,7 @@ discard block |
||
847 | 847 | * Create a new Eloquent query builder for the model. |
848 | 848 | * |
849 | 849 | * @param \Illuminate\Database\Query\Builder $query |
850 | - * @return \Illuminate\Database\Eloquent\Builder|static |
|
850 | + * @return Builder |
|
851 | 851 | */ |
852 | 852 | public function newEloquentBuilder($query) |
853 | 853 | { |
@@ -1075,7 +1075,7 @@ discard block |
||
1075 | 1075 | /** |
1076 | 1076 | * Set the connection resolver instance. |
1077 | 1077 | * |
1078 | - * @param \Illuminate\Database\ConnectionResolverInterface $resolver |
|
1078 | + * @param DatabaseManager $resolver |
|
1079 | 1079 | * @return void |
1080 | 1080 | */ |
1081 | 1081 | public static function setConnectionResolver(DatabaseManager $resolver) |
@@ -1222,7 +1222,7 @@ discard block |
||
1222 | 1222 | /** |
1223 | 1223 | * Get the queueable connection for the entity. |
1224 | 1224 | * |
1225 | - * @return mixed |
|
1225 | + * @return string |
|
1226 | 1226 | */ |
1227 | 1227 | public function getQueueableConnection() |
1228 | 1228 | { |
@@ -1319,7 +1319,7 @@ discard block |
||
1319 | 1319 | /** |
1320 | 1320 | * Determine if the given attribute exists. |
1321 | 1321 | * |
1322 | - * @param mixed $offset |
|
1322 | + * @param string $offset |
|
1323 | 1323 | * @return bool |
1324 | 1324 | */ |
1325 | 1325 | public function offsetExists($offset) |
@@ -1353,7 +1353,7 @@ discard block |
||
1353 | 1353 | /** |
1354 | 1354 | * Unset the value for a given offset. |
1355 | 1355 | * |
1356 | - * @param mixed $offset |
|
1356 | + * @param string $offset |
|
1357 | 1357 | * @return void |
1358 | 1358 | */ |
1359 | 1359 | public function offsetUnset($offset) |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | /** |
131 | 131 | * Get a registered connection instance. |
132 | 132 | * |
133 | - * @param null $name |
|
133 | + * @param string|null $name |
|
134 | 134 | * @return \Childish\connection\Connection |
135 | 135 | */ |
136 | 136 | public function getConnection($name = null) |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | /** |
171 | 171 | * Get the database manager instance. |
172 | 172 | * |
173 | - * @return mixed |
|
173 | + * @return DatabaseManager |
|
174 | 174 | */ |
175 | 175 | public function getDatabaseManager() |
176 | 176 | { |
@@ -658,7 +658,7 @@ discard block |
||
658 | 658 | * Handle a query exception that occurred during query execution. |
659 | 659 | * |
660 | 660 | * @param \Childish\ChildishException $e |
661 | - * @param $query |
|
661 | + * @param string $query |
|
662 | 662 | * @param $bindings |
663 | 663 | * @param \Closure $callback |
664 | 664 | * @return mixed |
@@ -776,7 +776,7 @@ discard block |
||
776 | 776 | /** |
777 | 777 | * Set the PDO connection. |
778 | 778 | * |
779 | - * @param \PDO|\Closure|null $pdo |
|
779 | + * @param null|PDO $pdo |
|
780 | 780 | * @return $this |
781 | 781 | */ |
782 | 782 | public function setPdo($pdo) |
@@ -78,7 +78,7 @@ |
||
78 | 78 | * |
79 | 79 | * @param \PDO $connection |
80 | 80 | * @param array $config |
81 | - * @return void |
|
81 | + * @return PDO|null |
|
82 | 82 | */ |
83 | 83 | protected function configureEncoding($connection, array $config) |
84 | 84 | { |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | /** |
42 | 42 | * DatabaseManager constructor. |
43 | 43 | * |
44 | - * @param $app |
|
44 | + * @param \Childish\support\Container $app |
|
45 | 45 | * @param ConnectionFactory $factory |
46 | 46 | */ |
47 | 47 | public function __construct($app, ConnectionFactory $factory) |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | /** |
266 | 266 | * Get all of the support drivers. |
267 | 267 | * |
268 | - * @return array |
|
268 | + * @return string[] |
|
269 | 269 | */ |
270 | 270 | public function supportedDrivers() |
271 | 271 | { |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | /** |
276 | 276 | * Get all of the drivers that are actually available. |
277 | 277 | * |
278 | - * @return array |
|
278 | + * @return string[] |
|
279 | 279 | */ |
280 | 280 | public function availableDrivers() |
281 | 281 | { |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | * @param string $value |
387 | 387 | * @param string $operator |
388 | 388 | * @param bool $useDefault |
389 | - * @return array |
|
389 | + * @return string[] |
|
390 | 390 | * @throws \InvalidArgumentException |
391 | 391 | */ |
392 | 392 | protected function prepareValueAndOperator($value, $operator, $useDefault = false) |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | * Prevents using Null values with invalid operators. |
406 | 406 | * |
407 | 407 | * @param string $operator |
408 | - * @param mixed $value |
|
408 | + * @param string $value |
|
409 | 409 | * @return bool |
410 | 410 | */ |
411 | 411 | protected function invalidOperatorAndValue($operator, $value) |
@@ -729,7 +729,7 @@ discard block |
||
729 | 729 | * |
730 | 730 | * @param string $column |
731 | 731 | * @param string $operator |
732 | - * @param mixed $value |
|
732 | + * @param string $value |
|
733 | 733 | * @param string $boolean |
734 | 734 | * @return \Childish\query\Builder|static |
735 | 735 | */ |
@@ -1267,7 +1267,7 @@ discard block |
||
1267 | 1267 | * |
1268 | 1268 | * @param int $id |
1269 | 1269 | * @param array $columns |
1270 | - * @return mixed|static |
|
1270 | + * @return Collection |
|
1271 | 1271 | */ |
1272 | 1272 | public function find($id, $columns = ['*']) |
1273 | 1273 | { |
@@ -1564,7 +1564,7 @@ discard block |
||
1564 | 1564 | /** |
1565 | 1565 | * Clone the query without the given properties. |
1566 | 1566 | * |
1567 | - * @param array $properties |
|
1567 | + * @param string[] $properties |
|
1568 | 1568 | * @return static |
1569 | 1569 | */ |
1570 | 1570 | public function cloneWithout(array $properties) |
@@ -1579,7 +1579,7 @@ discard block |
||
1579 | 1579 | /** |
1580 | 1580 | * Clone the query without the given bindings. |
1581 | 1581 | * |
1582 | - * @param array $except |
|
1582 | + * @param string[] $except |
|
1583 | 1583 | * @return static |
1584 | 1584 | */ |
1585 | 1585 | public function cloneWithoutBindings(array $except) |
@@ -1594,7 +1594,7 @@ discard block |
||
1594 | 1594 | /** |
1595 | 1595 | * Call the given Closure with the given value then return the value. |
1596 | 1596 | * |
1597 | - * @param mixed $value |
|
1597 | + * @param Builder $value |
|
1598 | 1598 | * @param callable|null $callback |
1599 | 1599 | * @return mixed |
1600 | 1600 | */ |
@@ -2045,7 +2045,7 @@ discard block |
||
2045 | 2045 | /** |
2046 | 2046 | * Apply the callback's query changes if the given "value" is true. |
2047 | 2047 | * |
2048 | - * @param mixed $value |
|
2048 | + * @param boolean $value |
|
2049 | 2049 | * @param callable $callback |
2050 | 2050 | * @param callable $default |
2051 | 2051 | * @return mixed |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | * |
204 | 204 | * @param \Childish\query\Builder $query |
205 | 205 | * @param string $table |
206 | - * @param array $where |
|
206 | + * @param string $where |
|
207 | 207 | * @return string |
208 | 208 | */ |
209 | 209 | protected function compileDeleteWithoutJoins($query, $table, $where) |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | * |
230 | 230 | * @param \Childish\query\Builder $query |
231 | 231 | * @param string $table |
232 | - * @param array $where |
|
232 | + * @param string $where |
|
233 | 233 | * @return string |
234 | 234 | */ |
235 | 235 | protected function compileDeleteWithJoins($query, $table, $where) |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | /** |
213 | 213 | * Determine if an item exists in the collection. |
214 | 214 | * |
215 | - * @param mixed $key |
|
215 | + * @param \Closure $key |
|
216 | 216 | * @param mixed $operator |
217 | 217 | * @param mixed $value |
218 | 218 | * @return bool |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | * Filter items by the given key value pair. |
434 | 434 | * |
435 | 435 | * @param string $key |
436 | - * @param mixed $operator |
|
436 | + * @param string $operator |
|
437 | 437 | * @param mixed $value |
438 | 438 | * @return static |
439 | 439 | */ |
@@ -563,7 +563,7 @@ discard block |
||
563 | 563 | * Get the first item from the collection. |
564 | 564 | * |
565 | 565 | * @param callable|null $callback |
566 | - * @param mixed $default |
|
566 | + * @param stdClass $default |
|
567 | 567 | * @return mixed |
568 | 568 | */ |
569 | 569 | public function first(callable $callback = null, $default = null) |
@@ -610,7 +610,7 @@ discard block |
||
610 | 610 | /** |
611 | 611 | * Get an item from the collection by key. |
612 | 612 | * |
613 | - * @param mixed $key |
|
613 | + * @param integer $key |
|
614 | 614 | * @param mixed $default |
615 | 615 | * @return mixed |
616 | 616 | */ |
@@ -1183,7 +1183,7 @@ discard block |
||
1183 | 1183 | /** |
1184 | 1184 | * Create a collection of all elements that do not pass a given truth test. |
1185 | 1185 | * |
1186 | - * @param callable|mixed $callback |
|
1186 | + * @param \Closure $callback |
|
1187 | 1187 | * @return static |
1188 | 1188 | */ |
1189 | 1189 | public function reject($callback) |
@@ -1625,7 +1625,7 @@ discard block |
||
1625 | 1625 | /** |
1626 | 1626 | * Get a base Support collection instance from this collection. |
1627 | 1627 | * |
1628 | - * @return \Illuminate\Support\Collection |
|
1628 | + * @return Collection |
|
1629 | 1629 | */ |
1630 | 1630 | public function toBase() |
1631 | 1631 | { |
@@ -356,7 +356,7 @@ |
||
356 | 356 | * Register an existing instance as shared in the container. |
357 | 357 | * |
358 | 358 | * @param string $abstract |
359 | - * @param mixed $instance |
|
359 | + * @param Fluent $instance |
|
360 | 360 | * @return mixed |
361 | 361 | */ |
362 | 362 | public function instance($abstract, $instance) |