| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 | } |
||
| 43 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.