Code Duplication    Length = 10-10 lines in 2 locations

htdocs_symfony/src/Twig/AppExtension.php 2 locations

@@ 47-56 (lines=10) @@
44
     *
45
     * @return string
46
     */
47
    public function oc_Filter_D($number)
48
    : string {
49
        if ($number % 2 === 0) {
50
            $value = 'D' . number_format($number / 2, 0);
51
        } else {
52
            $value = 'D' . number_format($number / 2, 1);
53
        }
54
55
        return $value;
56
    }
57
58
    /**
59
     * calculate and format terrain value
@@ 65-74 (lines=10) @@
62
     *
63
     * @return string
64
     */
65
    public function oc_Filter_T($number)
66
    : string {
67
        if ($number % 2 === 0) {
68
            $value = 'T' . number_format($number / 2, 0);
69
        } else {
70
            $value = 'T' . number_format($number / 2, 1);
71
        }
72
73
        return $value;
74
    }
75
76
    /**
77
     * convert string via ROT13