Code Duplication    Length = 3-3 lines in 2 locations

app/Repo/PaymentRepository.php 2 locations

@@ 37-39 (lines=3) @@
34
    {
35
        $model = $this->model;
36
37
        if ($this->hasDateFilter()) {
38
            $model = $model->where('created_at', '>=', $this->startDate)->where('created_at', '<=', $this->endDate);
39
        }
40
41
        if ($this->hasMemberFilter()) {
42
            $model = $model->where('user_id', $this->memberId);
@@ 64-66 (lines=3) @@
61
    {
62
        $model = $this->model;
63
64
        if ($this->hasDateFilter()) {
65
            $model = $model->where('created_at', '>=', $this->startDate)->where('created_at', '<=', $this->endDate);
66
        }
67
68
        if ($this->hasMemberFilter()) {
69
            $model = $model->where('user_id', $this->memberId);