Code Duplication    Length = 8-8 lines in 2 locations

htdocs/class/smarty/Smarty_Compiler.class.php 2 locations

@@ 1475-1482 (lines=8) @@
1472
            $expr_type = $first_token;
1473
1474
        switch ($expr_type) {
1475
            case 'even':
1476
                if (isset($tokens[$expr_end]) && $tokens[$expr_end] == 'by') {
1477
                    $expr_end++;
1478
                    $expr_arg = $tokens[$expr_end++];
1479
                    $expr = "!(1 & ($is_arg / " . $this->_parse_var_props($expr_arg) . "))";
1480
                } else
1481
                    $expr = "!(1 & $is_arg)";
1482
                break;
1483
1484
            case 'odd':
1485
                if (isset($tokens[$expr_end]) && $tokens[$expr_end] == 'by') {
@@ 1484-1491 (lines=8) @@
1481
                    $expr = "!(1 & $is_arg)";
1482
                break;
1483
1484
            case 'odd':
1485
                if (isset($tokens[$expr_end]) && $tokens[$expr_end] == 'by') {
1486
                    $expr_end++;
1487
                    $expr_arg = $tokens[$expr_end++];
1488
                    $expr = "(1 & ($is_arg / " . $this->_parse_var_props($expr_arg) . "))";
1489
                } else
1490
                    $expr = "(1 & $is_arg)";
1491
                break;
1492
1493
            case 'div':
1494
                if (@$tokens[$expr_end] == 'by') {