Code Duplication    Length = 10-11 lines in 2 locations

PHPCompatibility/Sniff.php 2 locations

@@ 1421-1430 (lines=10) @@
1418
     *              False if not or if it could not be reliably determined
1419
     *              (variable or calculations and such).
1420
     */
1421
    public function isPositiveNumber(\PHP_CodeSniffer_File $phpcsFile, $start, $end, $allowFloats = false)
1422
    {
1423
        $number = $this->isNumber($phpcsFile, $start, $end, $allowFloats);
1424
1425
        if ($number === false) {
1426
            return false;
1427
        }
1428
1429
        return ($number > 0);
1430
    }
1431
1432
1433
    /**
@@ 1453-1463 (lines=11) @@
1450
     *              False if not or if it could not be reliably determined
1451
     *              (variable or calculations and such).
1452
     */
1453
    public function isNegativeNumber(\PHP_CodeSniffer_File $phpcsFile, $start, $end, $allowFloats = false)
1454
    {
1455
        $number = $this->isNumber($phpcsFile, $start, $end, $allowFloats);
1456
1457
        if ($number === false) {
1458
            return false;
1459
        }
1460
1461
        return ($number < 0);
1462
1463
    }
1464
1465
    /**
1466
     * Determine whether the tokens between $start and $end together form a number