Code Duplication    Length = 13-13 lines in 2 locations

Sniff.php 2 locations

@@ 166-178 (lines=13) @@
163
     *              is equal to or higher than the highest supported PHP version
164
     *              in testVersion. False otherwise.
165
     */
166
    public function supportsAbove($phpVersion)
167
    {
168
        $testVersion = $this->getTestVersion();
169
        $testVersion = $testVersion[1];
170
171
        if (is_null($testVersion)
172
            || version_compare($testVersion, $phpVersion) >= 0
173
        ) {
174
            return true;
175
        } else {
176
            return false;
177
        }
178
    }//end supportsAbove()
179
180
181
    /**
@@ 193-205 (lines=13) @@
190
     *              supported PHP version in testVersion.
191
     *              False otherwise or if no testVersion is provided.
192
     */
193
    public function supportsBelow($phpVersion)
194
    {
195
        $testVersion = $this->getTestVersion();
196
        $testVersion = $testVersion[0];
197
198
        if (!is_null($testVersion)
199
            && version_compare($testVersion, $phpVersion) <= 0
200
        ) {
201
            return true;
202
        } else {
203
            return false;
204
        }
205
    }//end supportsBelow()
206
207
208
    /**