Passed
Push — master ( 1156a5...423021 )
by guilherme
01:25
created
database/Create.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,14 +49,14 @@
 block discarded – undo
49 49
         $places = ':'.implode(', :', array_keys($this->data));
50 50
         $this->create = "INSERT INTO {$this->table} ({$fields}) VALUES ({$places})";
51 51
 
52
-        try{
52
+        try {
53 53
 
54 54
             $this->statements = DB::connect()->prepare($this->create);
55 55
             $this->statements->execute($this->data);
56 56
             $this->result = DB::connect()->lastInsertId();
57 57
             $this->error = true;
58 58
 
59
-        }catch (\PDOException $e){
59
+        }catch (\PDOException $e) {
60 60
             echo $e->getMessage();
61 61
 
62 62
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             $this->result = DB::connect()->lastInsertId();
57 57
             $this->error = true;
58 58
 
59
-        }catch (\PDOException $e){
59
+        } catch (\PDOException $e){
60 60
             echo $e->getMessage();
61 61
 
62 62
         }
Please login to merge, or discard this patch.
database/Update.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         $this->data = $data;
76 76
         parse_str($parse, $this->statements);
77 77
 
78
-        foreach ($data as $key => $value){
78
+        foreach ($data as $key => $value) {
79 79
             $this->places[] = $key.' = :'.$key;
80 80
 
81 81
         }
@@ -84,13 +84,13 @@  discard block
 block discarded – undo
84 84
 
85 85
         $this->update = "UPDATE {$this->table} SET {$this->places} {$this->terms}";
86 86
 
87
-        try{
87
+        try {
88 88
             $this->result = DB::connect()->prepare($this->update);
89 89
             $this->result->execute(array_merge($this->data, $this->statements));
90 90
             $this->error = true;
91 91
 
92 92
 
93
-        }catch (\PDOException $e){
93
+        }catch (\PDOException $e) {
94 94
             echo $e->getMessage();
95 95
 
96 96
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
             $this->error = true;
91 91
 
92 92
 
93
-        }catch (\PDOException $e){
93
+        } catch (\PDOException $e){
94 94
             echo $e->getMessage();
95 95
 
96 96
         }
Please login to merge, or discard this patch.