| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function buildUrl(string $uri, array $options = []) |
||
| 36 | { |
||
| 37 | if (!$this->fsInfo->hasOption(LocalInfo::HOST_KEY)) { |
||
|
|
|||
| 38 | throw new ResolveException( |
||
| 39 | \sprintf('Url can\'t be built for filesystem `%s` - host was not defined', $this->fsInfo->getName()) |
||
| 40 | ); |
||
| 41 | } |
||
| 42 | |||
| 43 | return \sprintf( |
||
| 44 | '%s%s', |
||
| 45 | $this->fsInfo->getOption(LocalInfo::HOST_KEY), |
||
| 46 | $this->normalizeFilePath($uri) |
||
| 47 | ); |
||
| 50 |