Code Duplication    Length = 6-7 lines in 2 locations

typo3/sysext/lang/Classes/Service/TerService.php 1 location

@@ 95-100 (lines=6) @@
92
            switch ($val['type']) {
93
                        // If open tag it means there is an array stored in sub-elements.
94
                        // Therefore increase the stackpointer and reset the accumulation array
95
                    case 'open':
96
                            // Setting blank place holder
97
                        $current[$tagName] = [];
98
                        $stack[$stacktop++] = $current;
99
                        $current = [];
100
                        break;
101
                        // If the tag is "close" then it is an array which is closing and we decrease the stack pointer.
102
                    case 'close':
103
                        $oldCurrent = $current;

typo3/sysext/core/Classes/Utility/GeneralUtility.php 1 location

@@ 1649-1655 (lines=7) @@
1646
            }
1647
            // Setting tag-values, manage stack:
1648
            switch ($val['type']) {
1649
                case 'open':
1650
                    // If open tag it means there is an array stored in sub-elements. Therefore increase the stackpointer and reset the accumulation array:
1651
                    // Setting blank place holder
1652
                    $current[$tagName] = [];
1653
                    $stack[$stacktop++] = $current;
1654
                    $current = [];
1655
                    break;
1656
                case 'close':
1657
                    // If the tag is "close" then it is an array which is closing and we decrease the stack pointer.
1658
                    $oldCurrent = $current;