Conditions | 3 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
39 | private function setSourceAllowedValues(OptionsResolver $optionsResolver) |
||
40 | { |
||
41 | 1 | $optionsResolver->setAllowedValues(self::NAME, function (array $source) { |
|
42 | 1 | foreach ($source as $singleSource) { |
|
43 | 1 | if (!file_exists($singleSource)) { |
|
44 | throw new SourceNotFoundException(sprintf( |
||
45 | 1 | 'Source "%s" does not exist.', |
|
46 | $singleSource |
||
47 | )); |
||
48 | } |
||
49 | } |
||
50 | |||
51 | 1 | return true; |
|
52 | 1 | }); |
|
53 | 1 | } |
|
54 | } |
||
55 |