@@ -45,10 +45,10 @@ discard block |
||
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 |
||
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 | ); |
@@ -15,7 +15,7 @@ discard block |
||
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 |
||
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 | } |