Code Duplication    Length = 12-12 lines in 2 locations

main/inc/lib/formvalidator/FormValidator.class.php 2 locations

@@ 1444-1455 (lines=12) @@
1441
            );
1442
        }
1443
1444
        if (!is_null($minValue)) {
1445
            $this->addRule(
1446
                $name,
1447
                get_lang('UnderMin'),
1448
                'compare',
1449
                '>=',
1450
                'server',
1451
                false,
1452
                false,
1453
                $minValue
1454
            );
1455
        }
1456
1457
        if (!is_null($maxValue)) {
1458
            $this->addRule(
@@ 1457-1468 (lines=12) @@
1454
            );
1455
        }
1456
1457
        if (!is_null($maxValue)) {
1458
            $this->addRule(
1459
                $name,
1460
                get_lang('OverMax'),
1461
                'compare',
1462
                '<=',
1463
                'server',
1464
                false,
1465
                false,
1466
                $maxValue
1467
            );
1468
        }
1469
    }
1470
1471
    /**