| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | protected function loadFile($file) |
||
| 33 | { |
||
| 34 | if (!stream_is_local($file)) { |
||
| 35 | throw new InvalidArgumentException(sprintf('This is not a local file "%s".', $file)); |
||
| 36 | } |
||
| 37 | |||
| 38 | if (!file_exists($file)) { |
||
| 39 | throw new InvalidArgumentException(sprintf('The service file "%s" is not valid.', $file)); |
||
| 40 | } |
||
| 41 | |||
| 42 | return Toml::Parse($file); |
||
| 43 | } |
||
| 44 | } |
||
| 45 |