Passed
Push — master ( bc4882...468c6d )
by Richan
02:23
created
src/CacheableDecorator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,10 +45,10 @@  discard block
 block discarded – undo
45 45
     private function generateCustomTags($tags, Model $object)
46 46
     {
47 47
         $class = last(explode('\\', get_class($object)));
48
-        $customTags = [$class.':'.$object->getKey() => true];
48
+        $customTags = [$class . ':' . $object->getKey() => true];
49 49
 
50 50
         foreach ($tags as $tag) {
51
-            $key = $tag.':'.$class.':'.$object->getKey();
51
+            $key = $tag . ':' . $class . ':' . $object->getKey();
52 52
             $customTags[$key] = true;
53 53
         }
54 54
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             $this->generateTags($args),
118 118
             $repository->cacheKey($method, $args),
119 119
             $repository->cacheDuration(),
120
-            function () use ($repository, $method, $args) {
120
+            function() use ($repository, $method, $args) {
121 121
                 return call_user_func_array([$repository, $method], $args);
122 122
             }
123 123
         );
Please login to merge, or discard this patch.
src/ServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     public function boot()
16 16
     {
17 17
         $this->publishes([
18
-            realpath(__DIR__.'/../config/cacheable.php') => config_path('cacheable.php'),
18
+            realpath(__DIR__ . '/../config/cacheable.php') => config_path('cacheable.php'),
19 19
         ], 'config');
20 20
     }
21 21
 
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function register()
28 28
     {
29
-        $this->mergeConfigFrom(realpath(__DIR__.'/../config/cacheable.php'), 'cacheable');
29
+        $this->mergeConfigFrom(realpath(__DIR__ . '/../config/cacheable.php'), 'cacheable');
30 30
 
31
-        $this->app->singleton(CacheableService::class, function () {
31
+        $this->app->singleton(CacheableService::class, function() {
32 32
             return new CacheableService(app('cache'), new ArrayStore());
33 33
         });
34 34
     }
Please login to merge, or discard this patch.