| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function register() |
||
| 37 | { |
||
| 38 | $this->mergeConfigFrom(__DIR__.'/../config/url-signer.php', 'url-signer'); |
||
| 39 | |||
| 40 | $config = config('url-signer'); |
||
| 41 | |||
| 42 | $this->app->singleton(UrlSignerContract::class, function () use ($config) { |
||
| 43 | return new UrlSigner( |
||
| 44 | $config['signatureKey'], |
||
| 45 | $config['parameters']['expires'], |
||
| 46 | $config['parameters']['signature'] |
||
| 47 | ); |
||
| 48 | }); |
||
| 49 | |||
| 50 | $this->app->alias(UrlSignerContract::class, 'url-signer'); |
||
| 51 | |||
| 52 | $this->app[Router::class]->aliasMiddleware('signedurl', ValidateSignature::class); |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.