Code Duplication    Length = 18-20 lines in 2 locations

tests/phpunit/tests/formatting/WPTexturize.php 2 locations

@@ 1628-1647 (lines=20) @@
1625
        return $this->assertEquals($output, $result);
1626
    }
1627
1628
    function filter_translate( $translations, $text, $context, $domain ) 
1629
    {
1630
        switch ($text) {
1631
        case '–' : 
1632
            return '!endash!';
1633
        case '—' : 
1634
            return '!emdash!';
1635
        case '‘' : 
1636
            return '!openq1!';
1637
        case '’' :
1638
            if ('apostrophe' == $context ) {
1639
                return '!apos!';
1640
            } else {
1641
                return '!closeq1!';
1642
            }
1643
        case '“' : 
1644
            return '!openq2!';
1645
        case '”' : 
1646
            return '!closeq2!';
1647
        case '′' : 
1648
            return '!prime1!';
1649
        case '″' : 
1650
            return '!prime2!';
@@ 2063-2080 (lines=18) @@
2060
        return $this->assertEquals($output, $result);
2061
    }
2062
2063
    function filter_translate2( $translations, $text, $context, $domain ) 
2064
    {
2065
        switch ($text) {
2066
        case '–' : 
2067
            return '!endash!';
2068
        case '—' : 
2069
            return '!emdash!';
2070
        case '‘' : 
2071
            return '!q1!';
2072
        case '’' :
2073
            if ('apostrophe' == $context ) {
2074
                return '!apos!';
2075
            } else {
2076
                return '!q1!';
2077
            }
2078
        case '“' : 
2079
            return '!q2!';
2080
        case '”' : 
2081
            return '!q2!';
2082
        case '′' : 
2083
            return '!prime1!';