Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 1393-1404 (lines=12) @@
1390
            );
1391
        }
1392
1393
        if (!is_null($minValue)) {
1394
            $this->addRule(
1395
                $name,
1396
                get_lang('UnderMin'),
1397
                'compare',
1398
                '>=',
1399
                'server',
1400
                false,
1401
                false,
1402
                $minValue
1403
            );
1404
        }
1405
1406
        if (!is_null($maxValue)) {
1407
            $this->addRule(
@@ 1406-1417 (lines=12) @@
1403
            );
1404
        }
1405
1406
        if (!is_null($maxValue)) {
1407
            $this->addRule(
1408
                $name,
1409
                get_lang('OverMax'),
1410
                'compare',
1411
                '<=',
1412
                'server',
1413
                false,
1414
                false,
1415
                $maxValue
1416
            );
1417
        }
1418
    }
1419
1420
    /**