Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function handle(string $xmlFile, array $addition) |
||
17 | { |
||
18 | if (!$this->filesystem->exists($xmlFile)) { |
||
19 | throw new \Exception('no such file'); |
||
20 | } |
||
21 | |||
22 | try { |
||
23 | $this->addPreference($xmlFile, $addition); |
||
24 | } catch (\Throwable $e) { |
||
25 | throw new \Exception($e->getMessage()); |
||
26 | } |
||
46 |