| Conditions | 5 |
| Paths | 4 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 75 | protected function validateParams() |
||
| 76 | { |
||
| 77 | if (empty($this->driver)) { |
||
| 78 | throw new \Exception("Driver not selected or default driver does not exist."); |
||
| 79 | } |
||
| 80 | if (empty($this->config['drivers'][$this->driver]) or empty($this->config['map'][$this->driver])) { |
||
| 81 | throw new \Exception("Driver not found in config file. Try updating the package."); |
||
| 82 | } |
||
| 83 | |||
| 84 | if (!class_exists($this->config['map'][$this->driver])) { |
||
| 85 | throw new \Exception("Driver source not found. Please update the package."); |
||
| 86 | } |
||
| 87 | } |
||
| 88 | } |
||
| 89 |