Code Duplication    Length = 12-12 lines in 2 locations

src/Api/Validation.php 2 locations

@@ 96-107 (lines=12) @@
93
     *
94
     * @return bool
95
     */
96
    protected function validLimit($input)
97
    {
98
        if (is_int($input) === false) {
99
            return false;
100
        }
101
102
        if ($input < 0 || $input > 100) {
103
            return false;
104
        }
105
106
        return $this->isEnabledFilter('limit', $this->enabledFilters);
107
    }
108
109
    /**
110
     * Validation for OFFSET parameter.
@@ 116-127 (lines=12) @@
113
     *
114
     * @return bool
115
     */
116
    protected function validOffset($input)
117
    {
118
        if (is_int($input) === false) {
119
            return false;
120
        }
121
122
        if ($input < 0) {
123
            return false;
124
        }
125
126
        return $this->isEnabledFilter('offset', $this->enabledFilters);
127
    }
128
129
    /**
130
     * Validation for FILTER parameter.