Completed
Push — master ( 3c1539...f32e13 )
by Travis
02:16
created
src/NukaCode/Core/BaseServiceProvider.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -8,6 +8,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/NukaCode/Core/Database/Collection.php 1 patch
Doc Comments   +26 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/NukaCode/Core/Models/BaseModel.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
tests/spec/NukaCode/Core/Database/CollectionSpec.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
src/NukaCode/Core/View/Path.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -33,6 +33,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.