Completed
Push — master ( cc509a...8bfdba )
by James Ekow Abaka
13s queued 11s
created
src/FilterCompiler.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -204,6 +204,10 @@
 block discarded – undo
204 204
         return $return;
205 205
     }
206 206
 
207
+    /**
208
+     * @param integer $level
209
+     * @param string $opr
210
+     */
207 211
     private function parseRightExpression($level, $opr)
208 212
     {
209 213
         switch ($opr) {
Please login to merge, or discard this patch.
src/ModelDescription.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -103,6 +103,9 @@
 block discarded – undo
103 103
         return $relationshipDetails;
104 104
     }
105 105
 
106
+    /**
107
+     * @param string $type
108
+     */
106 109
     private function createRelationships($type, $relationships)
107 110
     {
108 111
         foreach ($relationships as $relationship) {
Please login to merge, or discard this patch.
src/interfaces/ValidatorFactoryInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,5 +17,8 @@
 block discarded – undo
17 17
  */
18 18
 interface ValidatorFactoryInterface
19 19
 {
20
+    /**
21
+     * @return \ntentan\nibii\DefaultValidator
22
+     */
20 23
     public function createModelValidator(RecordWrapper $model, $mode);
21 24
 }
Please login to merge, or discard this patch.
src/ORMContext.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -89,6 +89,9 @@
 block discarded – undo
89 89
         return $this->config;
90 90
     }
91 91
 
92
+    /**
93
+     * @param RecordWrapper $model
94
+     */
92 95
     public function getModelDescription($model) : ModelDescription
93 96
     {
94 97
         return new ModelDescription($model);
Please login to merge, or discard this patch.
src/RecordWrapper.php 2 patches
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
      * Callback for when a new record has been created.
466 466
      * This callback can be most useful for obtaining the primary key of a newly created record.
467 467
      *
468
-     * @param $id
468
+     * @param string $id
469 469
      */
470 470
     public function postCreateCallback($id)
471 471
     {
@@ -509,6 +509,10 @@  discard block
 block discarded – undo
509 509
         return $this->adapter;
510 510
     }
511 511
 
512
+    /**
513
+     * @param Relationship[] $relationships
514
+     * @param integer $depth
515
+     */
512 516
     private function expandArrayValue($array, $relationships, $depth, $expandableModels = [], $index = null)
513 517
     {
514 518
         if (empty($expandableModels)) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@
 block discarded – undo
199 199
         $this->initialize();
200 200
 
201 201
         return $this->context->getCache()->read(
202
-            "{$this->className}::desc", function () {
202
+            "{$this->className}::desc", function() {
203 203
                 return $this->context->getModelDescription($this);
204 204
             }
205 205
         );
Please login to merge, or discard this patch.
src/interfaces/ModelFactoryInterface.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -28,11 +28,22 @@
 block discarded – undo
28 28
 
29 29
 interface ModelFactoryInterface
30 30
 {
31
+    /**
32
+     * @param string $name
33
+     */
31 34
     public function createModel($name, $context);
32 35
 
36
+    /**
37
+     * @param \ntentan\nibii\RecordWrapper $instance
38
+     *
39
+     * @return string
40
+     */
33 41
     public function getModelTable($instance);
34 42
 
35 43
     public function getClassName($model);
36 44
 
45
+    /**
46
+     * @return string
47
+     */
37 48
     public function getJunctionClassName($classA, $classB);
38 49
 }
Please login to merge, or discard this patch.
src/Operations.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -47,6 +47,9 @@  discard block
 block discarded – undo
47 47
         'save', 'validate',
48 48
     ];
49 49
 
50
+    /**
51
+     * @param string $table
52
+     */
50 53
     public function __construct(RecordWrapper $wrapper, $table)
51 54
     {
52 55
         $this->wrapper = $wrapper;
@@ -56,6 +59,9 @@  discard block
 block discarded – undo
56 59
         $this->queryOperations = new QueryOperations($wrapper, $this->dataOperations, $driver);
57 60
     }
58 61
 
62
+    /**
63
+     * @param string $name
64
+     */
59 65
     public function perform($name, $arguments)
60 66
     {
61 67
         //@todo Think of using a hash here in future
Please login to merge, or discard this patch.
src/relationships/BelongsToRelationship.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
26 26
 
27 27
 namespace ntentan\nibii\relationships;
28 28
 
29
-use ntentan\nibii\exceptions\FieldNotFoundException;
30 29
 use ntentan\nibii\ORMContext;
31 30
 use ntentan\nibii\Relationship;
31
+use ntentan\nibii\exceptions\FieldNotFoundException;
32 32
 use ntentan\utils\Text;
33 33
 
34 34
 /**
Please login to merge, or discard this patch.
src/DriverAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
     public function describe($model, $relationships)
140 140
     {
141 141
         return new ModelDescription(
142
-            $this->driver->describeTable($table)[$table], $relationships, function ($type) {
142
+            $this->driver->describeTable($table)[$table], $relationships, function($type) {
143 143
                 return $this->mapDataTypes($type);
144 144
             }
145 145
         );
Please login to merge, or discard this patch.