Code Duplication    Length = 6-6 lines in 2 locations

app/Models/TaskDuplicationModel.php 2 locations

@@ 79-84 (lines=6) @@
76
        }
77
78
        // Check if the category exists for the destination project
79
        if ($values['category_id'] > 0) {
80
            $values['category_id'] = $this->categoryModel->getIdByName(
81
                $values['project_id'],
82
                $this->categoryModel->getNameById($values['category_id'])
83
            );
84
        }
85
86
        // Check if the swimlane exists for the destination project
87
        if ($values['swimlane_id'] > 0) {
@@ 87-92 (lines=6) @@
84
        }
85
86
        // Check if the swimlane exists for the destination project
87
        if ($values['swimlane_id'] > 0) {
88
            $values['swimlane_id'] = $this->swimlaneModel->getIdByName(
89
                $values['project_id'],
90
                $this->swimlaneModel->getNameById($values['swimlane_id'])
91
            );
92
        }
93
94
        // Check if the column exists for the destination project
95
        if ($values['column_id'] > 0) {