Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 88-92 (lines=5) @@
85
        }
86
87
        // Only save quote if not locked or locked & user allowed to modify it
88
        if (array_key_exists('time_quote', $input) &&
89
            (!$this->model->isQuoteLocked() || $this->model->user->permission(Model\Permission::PERM_ISSUE_LOCK_QUOTE))
90
        ) {
91
            $fill['time_quote'] = $input['time_quote'];
92
        }
93
94
        /* Add to activity log for assignment if changed */
95
        $assignToId = (int) array_get($input, 'assigned_to');

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

@@ 93-97 (lines=5) @@
90
        }
91
92
        // Only save quote if not locked or locked & user allowed to modify it
93
        if (array_key_exists('time_quote', $input) &&
94
            (!$this->isQuoteLocked() || $this->user->permission(Model\Permission::PERM_ISSUE_LOCK_QUOTE))
95
        ) {
96
            $fill['time_quote'] = $input['time_quote'];
97
        }
98
99
        /* Add to activity log for assignment if changed */
100
        $assignToId = (int) array_get($input, 'assigned_to');