Completed
Push — master ( 882132...509951 )
by James Ekow Abaka
02:54
created
src/adapters/MysqlAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 {
6 6
     public function mapDataTypes($nativeType)
7 7
     {
8
-        switch($nativeType)
8
+        switch ($nativeType)
9 9
         {
10 10
             case 'int':
11 11
                 return 'integer';
Please login to merge, or discard this patch.
src/adapters/PostgresqlAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function mapDataTypes($nativeType) 
14 14
     {
15
-        switch($nativeType)
15
+        switch ($nativeType)
16 16
         {
17 17
             case 'character varying':
18 18
                 return 'string';
Please login to merge, or discard this patch.
src/relationships/ManyHaveManyRelationship.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,11 +70,11 @@
 block discarded – undo
70 70
         }
71 71
 
72 72
         if (!isset($this->options['junction_local_key'])) {
73
-            $this->options['junction_local_key'] = Text::singularize($this->setupTable) . '_id';
73
+            $this->options['junction_local_key'] = Text::singularize($this->setupTable).'_id';
74 74
         }
75 75
 
76 76
         if (!isset($this->options['junction_foreign_key'])) {
77
-            $this->options['junction_foreign_key'] = Text::singularize($foreignModel->getDBStoreInformation()['table']) . '_id';
77
+            $this->options['junction_foreign_key'] = Text::singularize($foreignModel->getDBStoreInformation()['table']).'_id';
78 78
         }
79 79
     }
80 80
 
Please login to merge, or discard this patch.
src/relationships/HasManyRelationship.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
     public function runSetup() {
55 55
         if ($this->options['foreign_key'] == null) {
56
-            $this->options['foreign_key'] = Text::singularize($this->setupTable) . '_id';
56
+            $this->options['foreign_key'] = Text::singularize($this->setupTable).'_id';
57 57
         }
58 58
         if ($this->options['local_key'] == null) {
59 59
             $this->options['local_key'] = $this->setupPrimaryKey[0];
Please login to merge, or discard this patch.
src/UniqueValidation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         }
69 69
 
70 70
         return $this->evaluateResult(
71
-            $field, $testItem->count() === 0, "The value of " . implode(', ', $field['name']) . " must be unique"
71
+            $field, $testItem->count() === 0, "The value of ".implode(', ', $field['name'])." must be unique"
72 72
         );
73 73
     }
74 74
 
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.
src/factories/DefaultModelFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         }
34 34
         $classes = [$classA['class'], $classB['class']];
35 35
         sort($classes);
36
-        return "{$classA['namespace']}\\" . implode('', $classes);
36
+        return "{$classA['namespace']}\\".implode('', $classes);
37 37
     }
38 38
     
39 39
     private function getClassFileDetails($className) {
Please login to merge, or discard this patch.
src/QueryEngine.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
             $valueFields[] = ":{$field}";
33 33
         }
34 34
 
35
-        return "INSERT INTO " . $table .
36
-            " (" . implode(", ", $quotedFields) . ") VALUES (" . implode(', ', $valueFields) . ")";
35
+        return "INSERT INTO ".$table.
36
+            " (".implode(", ", $quotedFields).") VALUES (".implode(', ', $valueFields).")";
37 37
     }
38 38
 
39 39
     public function getBulkUpdateQuery($data, $parameters)
@@ -76,10 +76,10 @@  discard block
 block discarded – undo
76 76
             }
77 77
         }
78 78
 
79
-        return "UPDATE " .
80
-            $model->getDBStoreInformation()['quoted_table'] .
81
-            " SET " . implode(', ', $valueFields) .
82
-            " WHERE " . implode(' AND ', $conditions);
79
+        return "UPDATE ".
80
+            $model->getDBStoreInformation()['quoted_table'].
81
+            " SET ".implode(', ', $valueFields).
82
+            " WHERE ".implode(' AND ', $conditions);
83 83
     }
84 84
 
85 85
     public function getSelectQuery($parameters)
Please login to merge, or discard this patch.
src/QueryParameters.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
 
128 128
     public function getSorts()
129 129
     {
130
-        return count($this->sorts) ? " ORDER BY " . implode(", ", $this->sorts) : null;
130
+        return count($this->sorts) ? " ORDER BY ".implode(", ", $this->sorts) : null;
131 131
     }
132 132
 
133 133
     public function addFilter($field, $values = null)
Please login to merge, or discard this patch.