Completed
Push — master ( fa85af...17ec4b )
by Adeniyi
8s
created
src/Database/DatabaseQuery.php 1 patch
Braces   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -216,8 +216,9 @@  discard block
 block discarded – undo
216 216
         {
217 217
             $counter++;
218 218
             $insertQuery .= self::sanitize($key);
219
-            if($arraySize > $counter)
220
-                $insertQuery .= ", ";
219
+            if($arraySize > $counter) {
220
+                            $insertQuery .= ", ";
221
+            }
221 222
         }
222 223
 
223 224
         return $insertQuery;
@@ -241,8 +242,9 @@  discard block
 block discarded – undo
241 242
         {
242 243
             $counter++;
243 244
             $insertQuery .= "'".self::sanitize($value) ."'";
244
-            if($arraySize > $counter)
245
-                $insertQuery .= ", ";
245
+            if($arraySize > $counter) {
246
+                            $insertQuery .= ", ";
247
+            }
246 248
         }
247 249
         return $insertQuery;
248 250
     }
@@ -326,8 +328,7 @@  discard block
 block discarded – undo
326 328
             if($arraySize > 1 && $condition == NULL)
327 329
             {
328 330
                 $query = "Please Supply the condition";
329
-            }
330
-            else
331
+            } else
331 332
             {
332 333
                 $columnName = self::whereAndClause($tableName, $data, $condition);
333 334
                 $query =  "SELECT $fields FROM $tableName WHERE $columnName";
Please login to merge, or discard this patch.