| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function register() |
||
| 25 | { |
||
| 26 | $this->app->singleton(CoverCache::class, function ($app) { |
||
|
|
|||
| 27 | $fs = \Storage::disk('s3')->getAdapter(); |
||
| 28 | $im = $this->app->make(ImageManager::class); |
||
| 29 | $conf = new FlysystemConfig([ |
||
| 30 | // Default: 30 days |
||
| 31 | 'CacheControl' => 'max-age=' . env('IMAGE_CACHE_TIME', 3153600) . ', public', |
||
| 32 | ]); |
||
| 33 | return new CoverCache($fs, $im, $conf); |
||
| 34 | }); |
||
| 35 | } |
||
| 36 | |||
| 47 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.