@@ -52,14 +52,14 @@ discard block |
||
52 | 52 | { |
53 | 53 | parent::boot(); |
54 | 54 | |
55 | - self::deleted(function ($model) { |
|
55 | + self::deleted(function($model) { |
|
56 | 56 | cache()->store('temp_tag')->delete($model->getCacheKey()); |
57 | 57 | }); |
58 | 58 | } |
59 | 59 | |
60 | 60 | public function getCacheKey() |
61 | 61 | { |
62 | - return 'temp_tag:'.$this->taggable_type.$this->taggable_id.','.$this->title; |
|
62 | + return 'temp_tag:' . $this->taggable_type . $this->taggable_id . ',' . $this->title; |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | public function isActive() |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | public function isTemporary(): bool |
96 | 96 | { |
97 | - return ! $this->isPermanent(); |
|
97 | + return !$this->isPermanent(); |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | public function scopeWhereTaggable(Builder $query, $taggable): Builder |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | public function incrementPayload($key, $amount = 1) |
129 | 129 | { |
130 | 130 | try { |
131 | - $this->increment('payload->'.$key, $amount); |
|
131 | + $this->increment('payload->' . $key, $amount); |
|
132 | 132 | } catch (\Throwable $e) { |
133 | 133 | // laravel does not fully support incrementing json values. |
134 | 134 | } |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | |
137 | 137 | public function getAttribute($key) |
138 | 138 | { |
139 | - if (! is_null($this->getPayload($key))) { |
|
139 | + if (!is_null($this->getPayload($key))) { |
|
140 | 140 | return $this->getPayload($key); |
141 | 141 | } |
142 | 142 |