| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function temporaryUrl(string $path, DateTimeInterface $expiresAt, Config $config): string |
||
| 34 | { |
||
| 35 | // TODO: Use absolute path and don't encrypt |
||
| 36 | $params = [ |
||
| 37 | 'path' => $path, |
||
| 38 | 'expires' => (int) $expiresAt->getTimestamp(), |
||
| 39 | ]; |
||
| 40 | |||
| 41 | return Url::toRoute([$this->component->action, 'data' => $this->component->encrypt(Json::encode($params))], true); |
||
| 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.