| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function register() |
||
| 27 | { |
||
| 28 | $this->app->singleton(CoverCache::class, function () { |
||
| 29 | $fs = \Storage::disk('s3')->getAdapter(); |
||
|
|
|||
| 30 | $im = $this->app->make(ImageManager::class); |
||
| 31 | $conf = new FlysystemConfig([ |
||
| 32 | // Default: 30 days |
||
| 33 | 'CacheControl' => 'max-age=' . env('IMAGE_CACHE_TIME', 3153600) . ', public', |
||
| 34 | ]); |
||
| 35 | $http = $this->app->make(HttpClient::class); |
||
| 36 | $messageFactory = $this->app->make(MessageFactory::class); |
||
| 37 | return new CoverCache($fs, $im, $conf, $http, $messageFactory); |
||
| 38 | }); |
||
| 39 | } |
||
| 40 | |||
| 51 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.