Passed
Branch master (ea425b)
by Richan
04:54
created
Category
src/CacheableService.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,8 +113,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/CacheableDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.