| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | trait UrlGeneratorAdapterTrait |
||
| 21 | { |
||
| 22 | public function publicUrl(string $path, Config $config): string |
||
|
|
|||
| 23 | { |
||
| 24 | // TODO: Use absolute path and don't encrypt |
||
| 25 | $params = [ |
||
| 26 | 'path' => $path, |
||
| 27 | 'expires' => 0, |
||
| 28 | ]; |
||
| 29 | |||
| 30 | return Url::toRoute([$this->component->action, 'data' => $this->component->encrypt(Json::encode($params))], true); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function temporaryUrl(string $path, DateTimeInterface $expiresAt, Config $config): string |
||
| 42 | } |
||
| 43 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.