Passed
Push — master ( 29c3a9...ff8fcb )
by Iman
03:08
created
src/Services/TagService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -117,9 +117,9 @@  discard block
 block discarded – undo
117 117
 
118 118
     private function fireEvent($event, $tag)
119 119
     {
120
-        ! $event && $event = 'tmp_tagged';
120
+        !$event && $event = 'tmp_tagged';
121 121
 
122
-        $event .= ':'.$this->model->getTable().','.$tag->title;
122
+        $event .= ':' . $this->model->getTable() . ',' . $tag->title;
123 123
 
124 124
         event($event, [$this->model, $tag]);
125 125
     }
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 
139 139
     private function deleteAll($tags)
140 140
     {
141
-        $tags->each(function ($tag) {
141
+        $tags->each(function($tag) {
142 142
             $tag->delete();
143 143
         });
144 144
     }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 
151 151
     private function getCacheKey($title)
152 152
     {
153
-        return 'temp_tag:'.$this->model->getTable().$this->model->getKey().','.$title;
153
+        return 'temp_tag:' . $this->model->getTable() . $this->model->getKey() . ',' . $title;
154 154
     }
155 155
 
156 156
     private function putInCache($tg, $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()->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.