Code Duplication    Length = 10-10 lines in 2 locations

app/Repository/Message/Queue/UpdaterRepository.php 1 location

@@ 68-77 (lines=10) @@
65
     *
66
     * @return void
67
     */
68
    public function queueDelete($name, Model $model, $changeBy)
69
    {
70
        // Fill and save to message queue
71
        $fill = $this->getFillAttributes($name, $model, $changeBy, [
72
            'dirty'  => [],
73
            'origin' => $model->toArray(),
74
        ]);
75
76
        return $this->model->fill($fill)->save();
77
    }
78
79
    /**
80
     * Insert records about tag changes into the message queue.

app/Repository/Traits/Message/Queue/CrudTrait.php 1 location

@@ 72-81 (lines=10) @@
69
     *
70
     * @return void
71
     */
72
    public function queueDelete($name, Model $model, $changeBy)
73
    {
74
        // Fill and save to message queue
75
        $fill = $this->getFillAttributes($name, $model, $changeBy, [
76
            'dirty'  => [],
77
            'origin' => $model->toArray(),
78
        ]);
79
80
        return $this->fill($fill)->save();
81
    }
82
83
    /**
84
     * Insert records about tag changes into the message queue.