Code Duplication    Length = 3-3 lines in 2 locations

app/Category.php 2 locations

@@ 114-116 (lines=3) @@
111
            if ($this->gradeMin != 0 && $this->gradeMax != 0) {
112
                return $this->hasGradeMinAndMax($grades, $gradeText);
113
            }
114
            if ($this->gradeMin == 0 && $this->gradeMax != 0) {
115
                return $gradeText . ' < ' . $grades[$this->gradeMax - 1]->name;
116
            }
117
            if ($this->gradeMin != 0 && $this->gradeMax == 0) {
118
                return $gradeText . ' > ' . $grades[$this->gradeMin - 1]->name;
119
            }
@@ 117-119 (lines=3) @@
114
            if ($this->gradeMin == 0 && $this->gradeMax != 0) {
115
                return $gradeText . ' < ' . $grades[$this->gradeMax - 1]->name;
116
            }
117
            if ($this->gradeMin != 0 && $this->gradeMax == 0) {
118
                return $gradeText . ' > ' . $grades[$this->gradeMin - 1]->name;
119
            }
120
        }
121
        return '';
122
    }