| Conditions | 4 | 
| Paths | 5 | 
| Total Lines | 14 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 46 | public function create($sql, $readme)  | 
            ||
| 47 |     { | 
            ||
| 48 |         if ($this->exists()) { | 
            ||
| 49 | return true;  | 
            ||
| 50 | }  | 
            ||
| 51 |         try { | 
            ||
| 52 | $this->pdo->query($sql);  | 
            ||
| 53 |         } catch (\PDOException $exception) { | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 54 | }  | 
            ||
| 55 |         if ($this->exists()) { | 
            ||
| 56 | return true;  | 
            ||
| 57 | }  | 
            ||
| 58 |         throw new SQLException('Automatic setup failed, please create table `' . $this->table . '` manually. Setup instructions: ' . $readme); | 
            ||
| 59 | }  | 
            ||
| 60 | |||
| 76 |