Code Duplication    Length = 5-5 lines in 2 locations

src/Client.php 2 locations

@@ 84-88 (lines=5) @@
81
                        $value = substr($value, 0, 35);
82
                    }
83
                }
84
                foreach (array('.Linje') as $variable) {
85
                    if (strpos($key, $variable) !== false) {
86
                        $value = substr($value, 0, 30);
87
                    }
88
                }
89
                foreach (array('.CprNr') as $variable) {
90
                    if (strpos($key, $variable) !== false) {
91
                        $value = substr($value, 0, 20);
@@ 89-93 (lines=5) @@
86
                        $value = substr($value, 0, 30);
87
                    }
88
                }
89
                foreach (array('.CprNr') as $variable) {
90
                    if (strpos($key, $variable) !== false) {
91
                        $value = substr($value, 0, 20);
92
                    }
93
                }
94
                foreach (array('.Postnr', '.Fastnet', '.Mobil', 'ArbejdeTlf') as $variable) {
95
                    if (strpos($key, $variable) !== false) {
96
                        $value = substr($value, 0, 15);