Code Duplication    Length = 12-13 lines in 2 locations

app/Repository/Project/Issue/Updater.php 1 location

@@ 384-395 (lines=12) @@
381
            $data['added_tags'][] = $newTag->toShortArray();
382
        }
383
384
        if (!empty($data)) {
385
            // Add this change to messages queue
386
//            $this->queueChangeTags($this, $data['added_tags'], $data['removed_tags'], $this->user);// TODO
387
388
            // Add to activity log for tags if changed
389
            $this->saveToActivities([
390
                'type_id'   => Activity::TYPE_ISSUE_TAG,
391
                'parent_id' => $this->model->project->id,
392
                'user_id'   => $this->model->user->id,
393
                'data'      => $data,
394
            ]);
395
        }
396
397
        return $this;
398
    }

app/Repository/Traits/Project/Issue/CrudTagTrait.php 1 location

@@ 166-178 (lines=13) @@
163
            $data['added_tags'][] = $newTag->toShortArray();
164
        }
165
166
        if (!empty($data)) {
167
            // Add this change to messages queue
168
            // TODO
169
//            $this->queueChangeTags($this, $data['added_tags'], $data['removed_tags'], $this->user);
170
171
            // Add to activity log for tags if changed
172
            $this->activities()->save(new User\Activity([
173
                'type_id'   => Activity::TYPE_ISSUE_TAG,
174
                'parent_id' => $this->project->id,
175
                'user_id'   => $this->user->id,
176
                'data'      => $data,
177
            ]));
178
        }
179
180
        return $this;
181
    }