Completed
Push — master ( be821e...418a4d )
by James Ekow Abaka
03:23
created
src/interfaces/TableNameResolverInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -9,5 +9,8 @@
 block discarded – undo
9 9
  */
10 10
 interface TableNameResolverInterface
11 11
 {
12
+    /**
13
+     * @return string
14
+     */
12 15
     public function getTableName($instance);
13 16
 }
Please login to merge, or discard this patch.
src/interfaces/ModelJoinerInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -9,5 +9,8 @@
 block discarded – undo
9 9
  */
10 10
 interface ModelJoinerInterface
11 11
 {
12
+    /**
13
+     * @return string
14
+     */
12 15
     public function getJunctionClassName($classA, $classB);
13 16
 }
Please login to merge, or discard this patch.
src/Resolver.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@
 block discarded – undo
8 8
 
9 9
 namespace ntentan\nibii;
10 10
 
11
+use ntentan\config\Config;
11 12
 use ntentan\nibii\interfaces\ModelClassResolverInterface;
12 13
 use ntentan\nibii\interfaces\ModelJoinerInterface;
13 14
 use ntentan\nibii\interfaces\TableNameResolverInterface;
14
-use ntentan\config\Config;
15 15
 use ntentan\utils\Text;
16 16
 
17 17
 /**
Please login to merge, or discard this patch.
src/DataOperations.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -227,6 +227,9 @@
 block discarded – undo
227 227
         }
228 228
     }
229 229
 
230
+    /**
231
+     * @param string $event
232
+     */
230 233
     private function runBehaviours($event, $args) {
231 234
         foreach ($this->wrapper->getBehaviours() as $behaviour) {
232 235
             $args[0] = call_user_func_array([$behaviour, $event], $args);
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,6 @@
 block discarded – undo
26 26
 
27 27
 namespace ntentan\nibii;
28 28
 
29
-use ntentan\atiaa\Db;
30
-
31 29
 /**
32 30
  * Description of DataOperations
33 31
  *
Please login to merge, or discard this patch.
src/FilterCompiler.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -190,6 +190,10 @@
 block discarded – undo
190 190
         return $return;
191 191
     }
192 192
 
193
+    /**
194
+     * @param integer $level
195
+     * @param string $opr
196
+     */
193 197
     private function parseRightExpression($level, $opr) {
194 198
         switch ($opr) {
195 199
             case 'between': return $this->parseBetween();
Please login to merge, or discard this patch.
src/ModelDescription.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -90,6 +90,9 @@
 block discarded – undo
90 90
         return $relationshipDetails;
91 91
     }
92 92
 
93
+    /**
94
+     * @param string $type
95
+     */
93 96
     private function createRelationships($type, $relationships) {
94 97
         foreach ($relationships as $relationship) {
95 98
             $relationship = $this->getRelationshipDetails($relationship);
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace ntentan\nibii;
4 4
 
5
-use ntentan\atiaa\Db;
6
-
7 5
 class ModelDescription {
8 6
 
9 7
     private $fields = [];
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
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
     /**
124 124
      * @method
125
-     * @param type $name
125
+     * @param string $name
126 126
      * @param type $arguments
127 127
      * @return type
128 128
      */
@@ -148,6 +148,10 @@  discard block
 block discarded – undo
148 148
         return $this->retrieveItem($name);
149 149
     }
150 150
 
151
+    /**
152
+     * @param Relationship[] $relationships
153
+     * @param integer $depth
154
+     */
151 155
     private function expandArrayValue($array, $relationships, $depth, $index = null) {
152 156
         foreach ($relationships as $name => $relationship) {
153 157
             $array[$name] = $this->fetchRelatedFields($relationship, $index)->toArray($depth);
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -26,9 +26,7 @@
 block discarded – undo
26 26
 
27 27
 namespace ntentan\nibii;
28 28
 
29
-use ntentan\kaikai\Cache;
30 29
 use ntentan\utils\Text;
31
-use ntentan\atiaa\Db;
32 30
 
33 31
 /**
34 32
  * 
Please login to merge, or discard this patch.
src/QueryEngine.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -10,6 +10,9 @@
 block discarded – undo
10 10
         $this->db = $driver;
11 11
     }
12 12
  
13
+    /**
14
+     * @param string $query
15
+     */
13 16
     private function filter($query) {
14 17
         return $query;
15 18
     }
Please login to merge, or discard this patch.
src/Context.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -56,6 +56,9 @@  discard block
 block discarded – undo
56 56
             ->getJunctionClassName($classA, $classB);
57 57
     }
58 58
 
59
+    /**
60
+     * @param RecordWrapper $instance
61
+     */
59 62
     public function getModelTable($instance) {
60 63
         return$this->container->singleton(interfaces\TableNameResolverInterface::class)
61 64
             ->getTableName($instance);
@@ -66,6 +69,9 @@  discard block
 block discarded – undo
66 69
             ->getModelClassName($model, $context);
67 70
     }
68 71
 
72
+    /**
73
+     * @param string $class
74
+     */
69 75
     public function getModelName($class) {
70 76
         return $class;
71 77
     }
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace ntentan\nibii;
4 4
 
5
-use ntentan\panie\Container;
6
-use ntentan\kaikai\Cache;
7 5
 use ntentan\atiaa\DbContext;
6
+use ntentan\kaikai\Cache;
7
+use ntentan\panie\Container;
8 8
 
9 9
 /**
10 10
  * A collection of utility methods used as helpers for loading
Please login to merge, or discard this patch.