Code Duplication    Length = 13-13 lines in 2 locations

Sniff.php 2 locations

@@ 149-161 (lines=13) @@
146
     *              is equal to or higher than the highest supported PHP version
147
     *              in testVersion. False otherwise.
148
     */
149
    public function supportsAbove($phpVersion)
150
    {
151
        $testVersion = $this->getTestVersion();
152
        $testVersion = $testVersion[1];
153
154
        if (is_null($testVersion)
155
            || version_compare($testVersion, $phpVersion) >= 0
156
        ) {
157
            return true;
158
        } else {
159
            return false;
160
        }
161
    }//end supportsAbove()
162
163
164
    /**
@@ 176-188 (lines=13) @@
173
     *              supported PHP version in testVersion.
174
     *              False otherwise or if no testVersion is provided.
175
     */
176
    public function supportsBelow($phpVersion)
177
    {
178
        $testVersion = $this->getTestVersion();
179
        $testVersion = $testVersion[0];
180
181
        if (!is_null($testVersion)
182
            && version_compare($testVersion, $phpVersion) <= 0
183
        ) {
184
            return true;
185
        } else {
186
            return false;
187
        }
188
    }//end supportsBelow()
189
190
191
    /**