| Conditions | 3 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 8 | public function __construct(Dotenv $settings) |
|
| 22 | { |
||
| 23 | try { |
||
| 24 | 8 | $settings->load(); |
|
| 25 | 2 | } catch (\Dotenv\Exception\InvalidPathException $e) { |
|
| 26 | 1 | throw new SettingsNotFoundException('Invalid path to settings config file'); |
|
| 27 | 1 | } catch (\Throwable $t) { |
|
| 28 | 1 | throw new SettingsException('Access to settings failed'); |
|
| 29 | } |
||
| 40 |