Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function validateInputParameters(Array $parameters) |
||
20 | { |
||
21 | foreach (['firstDocument', 'secondDocument'] as $key) { |
||
22 | $filePath = $parameters[$key]; |
||
23 | if (!file_exists($filePath)) { |
||
24 | throw new \InvalidArgumentException('Input File '.$filePath.' not found'); |
||
25 | } |
||
26 | } |
||
27 | |||
28 | return true; |
||
29 | } |
||
30 | } |
||
31 |