| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function transform($location, array $options = []) |
||
| 35 | { |
||
| 36 | $this->options = array_merge($this->options, $options); |
||
| 37 | if (!$this->request) { |
||
| 38 | return null; |
||
| 39 | } |
||
| 40 | |||
| 41 | $path = str_replace('//', '/', $this->getBasePath()."/$location"); |
||
| 42 | $uri = (new Uri())->withPath($path); |
||
| 43 | $uri = $this->updateOptions($uri); |
||
| 44 | return $uri; |
||
| 45 | } |
||
| 46 | |||
| 58 | } |