@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | { |
20 | 20 | return "genealabs:laravel-model-caching:" |
21 | 21 | . (config('laravel-model-caching.cache-prefix') |
22 | - ? config('laravel-model-caching.cache-prefix', '') . ":" |
|
22 | + ? config('laravel-model-caching.cache-prefix', '').":" |
|
23 | 23 | : ""); |
24 | 24 | } |
25 | 25 | |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | { |
28 | 28 | $tags = collect($this->eagerLoad) |
29 | 29 | ->keys() |
30 | - ->map(function ($relationName) { |
|
30 | + ->map(function($relationName) { |
|
31 | 31 | $relation = $this->getRelation($relationName); |
32 | 32 | |
33 | 33 | return $this->getCachePrefix() |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | protected function getRelation(string $relationName) : Relation |
53 | 53 | { |
54 | 54 | return collect(explode('.', $relationName)) |
55 | - ->reduce(function ($carry, $name) { |
|
55 | + ->reduce(function($carry, $name) { |
|
56 | 56 | $carry = $carry ?: $this->model; |
57 | 57 | $carry = $this->getRelatedModel($carry); |
58 | 58 | |
@@ -62,6 +62,6 @@ discard block |
||
62 | 62 | |
63 | 63 | protected function getTagName() : string |
64 | 64 | { |
65 | - return $this->getCachePrefix() . str_slug(get_class($this->model)); |
|
65 | + return $this->getCachePrefix().str_slug(get_class($this->model)); |
|
66 | 66 | } |
67 | 67 | } |