| Conditions | 3 |
| Paths | 8 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | 66 | public function getQuery($tableName, $query) |
|
| 27 | { |
||
| 28 | try { |
||
| 29 | 66 | $information = $this->pdo->prepare($query); |
|
| 30 | |||
| 31 | 66 | $information->execute(); |
|
| 32 | 66 | $information->setFetchMode(\PDO::FETCH_OBJ); |
|
| 33 | 66 | } catch (\PDOException $e) { |
|
| 34 | // Table not found |
||
| 35 | } |
||
| 36 | |||
| 37 | 66 | while ($row = $information->fetch()) { |
|
| 38 | 60 | $this->setColumn($tableName, $row); |
|
| 39 | 60 | } |
|
| 40 | 66 | } |
|
| 41 | } |
||
| 42 |