Code Duplication    Length = 12-12 lines in 2 locations

typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php 2 locations

@@ 1109-1120 (lines=12) @@
1106
                                    // Switch bank:
1107
                                    if ($inRange != $currentState && $uNumber !== 9 && $uNumber !== 10 && $uNumber !== 13 && $uNumber !== 32) {
1108
                                        // Set result:
1109
                                        if ($bankAccum !== '') {
1110
                                            $newResult[] = [
1111
                                                'str' => $bankAccum,
1112
                                                'fontSize' => $currentState && $cfg['fontSize'] ? $cfg['fontSize'] : $part['fontSize'],
1113
                                                'fontFile' => $currentState && $cfg['fontFile'] ? $cfg['fontFile'] : $part['fontFile'],
1114
                                                'color' => $currentState ? $cfg['color'] : '',
1115
                                                'xSpaceBefore' => $currentState ? $cfg['xSpaceBefore'] : '',
1116
                                                'xSpaceAfter' => $currentState ? $cfg['xSpaceAfter'] : '',
1117
                                                'ySpaceBefore' => $currentState ? $cfg['ySpaceBefore'] : '',
1118
                                                'ySpaceAfter' => $currentState ? $cfg['ySpaceAfter'] : ''
1119
                                            ];
1120
                                        }
1121
                                        // Initialize new settings:
1122
                                        $currentState = $inRange;
1123
                                        $bankAccum = '';
@@ 1129-1140 (lines=12) @@
1126
                                    $bankAccum .= $utfChar;
1127
                                }
1128
                                // Set result for FINAL part:
1129
                                if ($bankAccum !== '') {
1130
                                    $newResult[] = [
1131
                                        'str' => $bankAccum,
1132
                                        'fontSize' => $currentState && $cfg['fontSize'] ? $cfg['fontSize'] : $part['fontSize'],
1133
                                        'fontFile' => $currentState && $cfg['fontFile'] ? $cfg['fontFile'] : $part['fontFile'],
1134
                                        'color' => $currentState ? $cfg['color'] : '',
1135
                                        'xSpaceBefore' => $currentState ? $cfg['xSpaceBefore'] : '',
1136
                                        'xSpaceAfter' => $currentState ? $cfg['xSpaceAfter'] : '',
1137
                                        'ySpaceBefore' => $currentState ? $cfg['ySpaceBefore'] : '',
1138
                                        'ySpaceAfter' => $currentState ? $cfg['ySpaceAfter'] : ''
1139
                                    ];
1140
                                }
1141
                            }
1142
                            // Set the new result as result array:
1143
                            if (!empty($newResult)) {