| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | 5 | public function findFor(string $filename, $host) : array |
|
| 31 | { |
||
| 32 | 5 | foreach ($this->normalizedDocProviderList as $provider) { |
|
| 33 | 4 | if (true === $provider->supports($filename, $host)) { |
|
| 34 | 4 | return $provider->getDoc($host); |
|
| 35 | } |
||
| 36 | } |
||
| 37 | |||
| 38 | 1 | throw new \Exception(sprintf('No documentation provider found for "%s"/"%s"', $filename, $host)); |
|
| 39 | } |
||
| 41 |