Code Duplication    Length = 10-11 lines in 2 locations

PHPCompatibility/Sniff.php 2 locations

@@ 1766-1775 (lines=10) @@
1763
     *              False if not or if it could not be reliably determined
1764
     *              (variable or calculations and such).
1765
     */
1766
    public function isPositiveNumber(\PHP_CodeSniffer_File $phpcsFile, $start, $end, $allowFloats = false)
1767
    {
1768
        $number = $this->isNumber($phpcsFile, $start, $end, $allowFloats);
1769
1770
        if ($number === false) {
1771
            return false;
1772
        }
1773
1774
        return ($number > 0);
1775
    }
1776
1777
1778
    /**
@@ 1798-1808 (lines=11) @@
1795
     *              False if not or if it could not be reliably determined
1796
     *              (variable or calculations and such).
1797
     */
1798
    public function isNegativeNumber(\PHP_CodeSniffer_File $phpcsFile, $start, $end, $allowFloats = false)
1799
    {
1800
        $number = $this->isNumber($phpcsFile, $start, $end, $allowFloats);
1801
1802
        if ($number === false) {
1803
            return false;
1804
        }
1805
1806
        return ($number < 0);
1807
1808
    }
1809
1810
    /**
1811
     * Determine whether the tokens between $start and $end together form a number