Passed
Push — master ( 423021...c8976e )
by guilherme
01:27
created
database/Read.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
     public function query(string $query, string $parse = null)
71 71
     {
72
-        if ($parse){
72
+        if ($parse) {
73 73
             parse_str($parse, $this->statement);
74 74
 
75 75
         }
@@ -115,8 +115,8 @@  discard block
 block discarded – undo
115 115
             $this->read = DB::connect()->prepare("SELECT * FROM {$this->table} {$this->terms}");
116 116
             $this->read->execute($this->statement);
117 117
             return $this->result = $this->read->fetchAll(\PDO::FETCH_OBJ);
118
-        } catch (\PDOException $e) {
119
-            echo $e->getMessage() . " in " . $e->getFile();
118
+        }catch (\PDOException $e) {
119
+            echo $e->getMessage()." in ".$e->getFile();
120 120
         }
121 121
     }
122 122
 
Please login to merge, or discard this patch.