@@ -8,6 +8,9 @@ discard block |
||
| 8 | 8 | abstract class BaseServiceProvider extends ServiceProvider |
| 9 | 9 | { |
| 10 | 10 | |
| 11 | + /** |
|
| 12 | + * @param string $path |
|
| 13 | + */ |
|
| 11 | 14 | protected function getDatabaseFiles($path) |
| 12 | 15 | { |
| 13 | 16 | $dir = base_path($path); |
@@ -109,6 +112,9 @@ discard block |
||
| 109 | 112 | } |
| 110 | 113 | } |
| 111 | 114 | |
| 115 | + /** |
|
| 116 | + * @param string $seed |
|
| 117 | + */ |
|
| 112 | 118 | private function checkSeederForSeed($seed, $databaseSeederLines) |
| 113 | 119 | { |
| 114 | 120 | foreach ($databaseSeederLines as $line) { |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | * |
| 22 | 22 | * @param string $key |
| 23 | 23 | * |
| 24 | - * @return mixed |
|
| 24 | + * @return Collection |
|
| 25 | 25 | */ |
| 26 | 26 | public function __get($key) |
| 27 | 27 | { |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | /** |
| 131 | 131 | * Turn the magic getWhere into a real where query. |
| 132 | 132 | * |
| 133 | - * @param $method |
|
| 133 | + * @param string $method |
|
| 134 | 134 | * @param $args |
| 135 | 135 | * |
| 136 | 136 | * @return Collection |
@@ -270,12 +270,12 @@ discard block |
||
| 270 | 270 | |
| 271 | 271 | /** |
| 272 | 272 | * @param $item |
| 273 | - * @param $column |
|
| 273 | + * @param string $column |
|
| 274 | 274 | * @param $value |
| 275 | - * @param $operator |
|
| 276 | - * @param $inverse |
|
| 275 | + * @param string $operator |
|
| 276 | + * @param boolean $inverse |
|
| 277 | 277 | * |
| 278 | - * @return bool |
|
| 278 | + * @return boolean|null |
|
| 279 | 279 | */ |
| 280 | 280 | private function handleMultiTap($item, $column, $value, $operator, $inverse) |
| 281 | 281 | { |
@@ -347,6 +347,10 @@ discard block |
||
| 347 | 347 | } |
| 348 | 348 | } |
| 349 | 349 | |
| 350 | + /** |
|
| 351 | + * @param string $column |
|
| 352 | + * @param boolean $inverse |
|
| 353 | + */ |
|
| 350 | 354 | private function getWhereIn($object, $column, $value, $inverse) |
| 351 | 355 | { |
| 352 | 356 | if (! in_array($object->$column, $value) && $inverse == false) { |
@@ -359,6 +363,10 @@ discard block |
||
| 359 | 363 | return false; |
| 360 | 364 | } |
| 361 | 365 | |
| 366 | + /** |
|
| 367 | + * @param string $column |
|
| 368 | + * @param boolean $inverse |
|
| 369 | + */ |
|
| 362 | 370 | private function getWhereBetween($object, $column, $value, $inverse) |
| 363 | 371 | { |
| 364 | 372 | if ($inverse == false) { |
@@ -374,6 +382,10 @@ discard block |
||
| 374 | 382 | return false; |
| 375 | 383 | } |
| 376 | 384 | |
| 385 | + /** |
|
| 386 | + * @param string $column |
|
| 387 | + * @param boolean $inverse |
|
| 388 | + */ |
|
| 377 | 389 | private function getWhereLike($object, $column, $value, $inverse) |
| 378 | 390 | { |
| 379 | 391 | if (! strstr($object->$column, $value) && $inverse == false) { |
@@ -386,6 +398,10 @@ discard block |
||
| 386 | 398 | return false; |
| 387 | 399 | } |
| 388 | 400 | |
| 401 | + /** |
|
| 402 | + * @param string $column |
|
| 403 | + * @param boolean $inverse |
|
| 404 | + */ |
|
| 389 | 405 | private function getWhereNull($object, $column, $inverse) |
| 390 | 406 | { |
| 391 | 407 | if ((! is_null($object->$column) || $object->$column != null) && $inverse == false) { |
@@ -398,6 +414,10 @@ discard block |
||
| 398 | 414 | return false; |
| 399 | 415 | } |
| 400 | 416 | |
| 417 | + /** |
|
| 418 | + * @param string $column |
|
| 419 | + * @param boolean $inverse |
|
| 420 | + */ |
|
| 401 | 421 | private function getWhereDefault($object, $column, $value, $inverse) |
| 402 | 422 | { |
| 403 | 423 | if ($object->$column != $value && $inverse == false) { |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | * |
| 65 | 65 | * @param array $models An array of models to turn into a collection. |
| 66 | 66 | * |
| 67 | - * @return Utility_Collection[] |
|
| 67 | + * @return Collection |
|
| 68 | 68 | */ |
| 69 | 69 | public function newCollection(array $models = []) |
| 70 | 70 | { |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | use NukaCode\Core\Database\Collection; |
| 4 | 4 | use PhpSpec\ObjectBehavior; |
| 5 | -use Prophecy\Argument; |
|
| 6 | 5 | use stdClass; |
| 7 | 6 | |
| 8 | 7 | class CollectionSpec extends ObjectBehavior { |
@@ -33,6 +33,9 @@ discard block |
||
| 33 | 33 | return $this->layout; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @param boolean $domainDesign |
|
| 38 | + */ |
|
| 36 | 39 | protected function setPath($view, $domainDesign) |
| 37 | 40 | { |
| 38 | 41 | if ($view == null) { |
@@ -53,6 +56,9 @@ discard block |
||
| 53 | 56 | } |
| 54 | 57 | } |
| 55 | 58 | |
| 59 | + /** |
|
| 60 | + * @param View $layout |
|
| 61 | + */ |
|
| 56 | 62 | public function missingMethod($layout, $parameters) |
| 57 | 63 | { |
| 58 | 64 | $view = $this->findView(); |