| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | 5 | public function resolve(string $ident, iterable $options = null): Svg |
|
| 30 | { |
||
| 31 | 5 | $errors = []; |
|
| 32 | 5 | foreach ($this->loaders as $loader) { |
|
| 33 | /* @var LoaderInterface $loader */ |
||
| 34 | try { |
||
| 35 | 5 | return $loader->resolve($ident, $options); |
|
| 36 | 4 | } catch (LoaderException $err) { |
|
| 37 | 3 | $errors[] = $err; |
|
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | 1 | throw new LoaderException($ident, new \ReflectionClass(__CLASS__), null, 0, $errors); |
|
| 42 | } |
||
| 44 |