Passed
Branch develop (080a54)
by Elisha-Wigwe Chijioke
06:14
created
tests/PotatoConnectorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
                     'adaptar = sqlite',
102 102
             ];
103 103
         foreach ($configData as $cfg) {
104
-            fwrite($file, $cfg."\n");
104
+            fwrite($file, $cfg . "\n");
105 105
         }
106 106
         fclose($file);
107 107
         $result = $this->connector->getConfigurations($this->configFile);
Please login to merge, or discard this patch.
src/PotatoQuery.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $columnsString = $this->getColumns($data);
59 59
         $count = (int) count($data);
60
-        $sql = "INSERT INTO $table $columnsString VALUES (".$this->putQuesMarks($count).')';
60
+        $sql = "INSERT INTO $table $columnsString VALUES (" . $this->putQuesMarks($count) . ')';
61 61
         $statement = $this->connection->prepare($sql);
62 62
         if ($statement == false) {
63 63
             $this->throwFaultyOrNoTableException($table);
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
     public function getColumns(array $data)
90 90
     {
91
-        return '('.implode(', ', array_keys($data)).')';
91
+        return '(' . implode(', ', array_keys($data)) . ')';
92 92
     }
93 93
 
94 94
     public function setBindForInsert($statement, $values)
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         $id = (int) $data['id']; // store the id in a variable.
118 118
         unset($data['id']);
119 119
         $upd = (string) $this->makeModify(array_keys($data)); // genertate the columns for the update statement.
120
-        $sql = "UPDATE {$table} SET ".$upd.' WHERE id = :id_val';
120
+        $sql = "UPDATE {$table} SET " . $upd . ' WHERE id = :id_val';
121 121
         $statement = $this->connection->prepare($sql);
122 122
         if ($statement == false) {
123 123
             $this->throwFaultyOrNoTableException($table);
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     {
134 134
         $count = count($data);
135 135
         foreach ($data as $key => $value) {
136
-            $statement->bindValue(":$key".'_val', $value);
136
+            $statement->bindValue(":$key" . '_val', $value);
137 137
         }
138 138
     }
139 139
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         $count = count($columns);
144 144
         $upd = '';
145 145
         foreach ($columns as $key) {
146
-            $upd .= $key.' = '.':'.$key.'_val, ';
146
+            $upd .= $key . ' = ' . ':' . $key . '_val, ';
147 147
         }
148 148
 
149 149
         return $upd = trim($upd, ', ');
Please login to merge, or discard this patch.
src/PotatoConnector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 
61 61
     public function getConfigFilePath()
62 62
     {
63
-        return __DIR__.'/../config.ini';
63
+        return __DIR__ . '/../config.ini';
64 64
     }
65 65
 
66 66
     public function getAdaptar()
Please login to merge, or discard this patch.