Code Duplication    Length = 3-3 lines in 3 locations

app/Models/TransitionModel.php 1 location

@@ 109-111 (lines=3) @@
106
            $from = $this->dateParser->removeTimeFromTimestamp($this->dateParser->getTimestamp($from));
107
        }
108
109
        if (!is_numeric($to)) {
110
            $to = $this->dateParser->removeTimeFromTimestamp(strtotime('+1 day', $this->dateParser->getTimestamp($to)));
111
        }
112
113
        return $this->db->table(self::TABLE)
114
                        ->columns(

app/Services/Export/SubtaskExport.php 1 location

@@ 109-111 (lines=3) @@
106
            $from = $this->dateParser->removeTimeFromTimestamp($this->dateParser->getTimestamp($from));
107
        }
108
109
        if (!is_numeric($to)) {
110
            $to = $this->dateParser->removeTimeFromTimestamp(strtotime('+1 day', $this->dateParser->getTimestamp($to)));
111
        }
112
113
        return $this->db->table(SubtaskModel::TABLE)
114
                        ->eq('project_id', $project_id)

app/Services/Export/TaskExport.php 1 location

@@ 66-68 (lines=3) @@
63
            $from = $this->dateParser->removeTimeFromTimestamp($this->dateParser->getTimestamp($from));
64
        }
65
66
        if (!is_numeric($to)) {
67
            $to = $this->dateParser->removeTimeFromTimestamp(strtotime('+1 day', $this->dateParser->getTimestamp($to)));
68
        }
69
70
        return $this->db->table(TaskModel::TABLE)
71
            ->columns(