Completed
Push — master ( 1b9783...a1719c )
by James Ekow Abaka
01:39
created
src/interfaces/ModelFactoryInterface.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -11,6 +11,13 @@
 block discarded – undo
11 11
 
12 12
 interface ModelFactoryInterface
13 13
 {
14
+    /**
15
+     * @param string $name
16
+     */
14 17
     public function createModel($name, $context);
18
+
19
+    /**
20
+     * @param \ntentan\nibii\RecordWrapper $instance
21
+     */
15 22
     public function getModelTable($instance);
16 23
 }
17 24
\ No newline at end of file
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/Operations.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@
 block discarded – undo
23 23
         'save', 'validate'
24 24
     ];
25 25
 
26
+    /**
27
+     * @param string $table
28
+     */
26 29
     public function __construct(RecordWrapper $wrapper, $table)
27 30
     {
28 31
         $this->wrapper = $wrapper;
Please login to merge, or discard this patch.
src/ORMContext.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 use ntentan\atiaa\DbContext;
6 6
 use ntentan\kaikai\Cache;
7
-use ntentan\nibii\interfaces\ModelFactoryInterface;
8 7
 use ntentan\nibii\interfaces\DriverAdapterFactoryInterface;
8
+use ntentan\nibii\interfaces\ModelFactoryInterface;
9 9
 use ntentan\nibii\interfaces\ValidatorFactoryInterface;
10 10
 
11 11
 /**
Please login to merge, or discard this patch.
src/RecordWrapper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
             $this->table = $table['table'];
85 85
             $this->schema = $table['schema'];
86 86
         }
87
-        $this->quotedTable = ($this->schema ? "{$driver->quoteIdentifier($this->schema)}." : "") . $driver->quoteIdentifier($this->table);
88
-        $this->unquotedTable = ($this->schema ? "{$this->schema}." : "") . $this->table;
87
+        $this->quotedTable = ($this->schema ? "{$driver->quoteIdentifier($this->schema)}." : "").$driver->quoteIdentifier($this->table);
88
+        $this->unquotedTable = ($this->schema ? "{$this->schema}." : "").$this->table;
89 89
         $this->adapter->setModel($this, $this->quotedTable);
90 90
         foreach ($this->behaviours as $behaviour) {
91 91
             $behaviourInstance = $this->getComponentInstance($behaviour);
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     {
109 109
         $this->initialize();
110 110
         return $this->context->getCache()->read(
111
-                "{$this->className}::desc", function () {
111
+                "{$this->className}::desc", function() {
112 112
                 return $this->context->getModelDescription($this);
113 113
             }
114 114
         );
Please login to merge, or discard this patch.
src/factories/DriverAdapterFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
     public function createDriverAdapter()
25 25
     {
26
-        $class = 'ntentan\nibii\adapters\\' . Text::ucamelize($this->driverName) . 'Adapter';
26
+        $class = 'ntentan\nibii\adapters\\'.Text::ucamelize($this->driverName).'Adapter';
27 27
         return new $class();
28 28
     }
29 29
 }
Please login to merge, or discard this patch.