Passed
Push — master ( 684a54...6860e5 )
by Iman
03:14
created
src/Services/TagService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -122,9 +122,9 @@  discard block
 block discarded – undo
122 122
 
123 123
     private function fireEvent($event, $tag)
124 124
     {
125
-        ! $event && $event = 'tmp_tagged';
125
+        !$event && $event = 'tmp_tagged';
126 126
 
127
-        $event .= ':'.$this->model->getTable().','.$tag->title;
127
+        $event .= ':' . $this->model->getTable() . ',' . $tag->title;
128 128
 
129 129
         event($event, [$this->model, $tag]);
130 130
     }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 
144 144
     private function deleteAll($tags)
145 145
     {
146
-        $tags->each(function ($tag) {
146
+        $tags->each(function($tag) {
147 147
             $tag->delete();
148 148
         });
149 149
     }
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 
156 156
     private function getCacheKey($title)
157 157
     {
158
-        return 'temp_tag:'.$this->model->getTable().$this->model->getKey().','.$title;
158
+        return 'temp_tag:' . $this->model->getTable() . $this->model->getKey() . ',' . $title;
159 159
     }
160 160
 
161 161
     private function putInCache($expDate, $tagObj)
Please login to merge, or discard this patch.
src/Models/TempTag.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,14 +52,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.