@@ -113,8 +113,7 @@ |
||
113 | 113 | $cache = $this->taggedCache($this->cache, $tags); |
114 | 114 | |
115 | 115 | $data = ($duration > 0) ? |
116 | - $cache->remember($key, $duration, $callable) : |
|
117 | - $cache->rememberForever($key, $callable); |
|
116 | + $cache->remember($key, $duration, $callable) : $cache->rememberForever($key, $callable); |
|
118 | 117 | |
119 | 118 | $this->setRuntimeCache($tags, $key, $data); |
120 | 119 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | { |
30 | 30 | $this->mergeConfigFrom(realpath(__DIR__ . '/../config/cacheable.php'), 'cacheable'); |
31 | 31 | |
32 | - $this->app->singleton(CacheableService::class, function () { |
|
32 | + $this->app->singleton(CacheableService::class, function() { |
|
33 | 33 | return new CacheableService(cache(), new ArrayStore); |
34 | 34 | }); |
35 | 35 | } |
@@ -113,7 +113,7 @@ |
||
113 | 113 | $this->generateTags($args), |
114 | 114 | $repository->cacheKey($method, $args), |
115 | 115 | $repository->cacheDuration(), |
116 | - function () use ($repository, $method, $args) { |
|
116 | + function() use ($repository, $method, $args) { |
|
117 | 117 | return call_user_func_array([$repository, $method], $args); |
118 | 118 | } |
119 | 119 | ); |