@@ -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) |
@@ -380,7 +380,7 @@ discard block |
||
| 380 | 380 | * Determine if a given string ends with a given substring. |
| 381 | 381 | * |
| 382 | 382 | * @param string $haystack |
| 383 | - * @param string|array $needles |
|
| 383 | + * @param string[] $needles |
|
| 384 | 384 | * @return bool |
| 385 | 385 | */ |
| 386 | 386 | public static function endsWith($haystack, $needles) |
@@ -660,7 +660,7 @@ discard block |
||
| 660 | 660 | * Basename |
| 661 | 661 | * |
| 662 | 662 | * @static |
| 663 | - * @param $class |
|
| 663 | + * @param \Childish\ChildishModel $class |
|
| 664 | 664 | * @return string |
| 665 | 665 | */ |
| 666 | 666 | public static function Basename($class) |