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