Code Duplication    Length = 3-3 lines in 2 locations

app/Category.php 2 locations

@@ 76-78 (lines=3) @@
73
            if ($this->ageMin != 0 && $this->ageMax != 0) {
74
                return $this->hasAgeMinAndMax($ageCategoryText);
75
            }
76
            if ($this->ageMin == 0 && $this->ageMax != 0) {
77
                return $ageCategoryText .= ' < ' . $this->ageMax . ' ' . trans('categories.years');
78
            }
79
            if ($this->ageMin != 0 && $this->ageMax == 0) {
80
                return $ageCategoryText .= ' > ' . $this->ageMin . ' ' . trans('categories.years');
81
            }
@@ 79-81 (lines=3) @@
76
            if ($this->ageMin == 0 && $this->ageMax != 0) {
77
                return $ageCategoryText .= ' < ' . $this->ageMax . ' ' . trans('categories.years');
78
            }
79
            if ($this->ageMin != 0 && $this->ageMax == 0) {
80
                return $ageCategoryText .= ' > ' . $this->ageMin . ' ' . trans('categories.years');
81
            }
82
            return '';
83
        }
84
        return $ageCategories[$this->ageCategory];