@@ -69,7 +69,7 @@ discard block |
||
| 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 |
||
| 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 | |