Code Duplication    Length = 3-7 lines in 2 locations

src/StructureSorter.php 2 locations

@@ 217-223 (lines=7) @@
214
            // Check if character group matches passed character group type
215
            if ($initial[$i][0] === $type) {
216
                // Compare character group length
217
                if ($initial[$i][1] > $compared[$i][1]) {
218
                    /**
219
                     * Shortest fixed CGS should have higher priority
220
                     * Longest variable CGS should have higher priority
221
                     */
222
                    return ($type === self::G_FIXED ? 1 : -1);
223
                }
224
225
                if ($initial[$i][1] < $compared[$i][1]) {
226
                    return ($type === self::G_FIXED ? -1 : 1);
@@ 225-227 (lines=3) @@
222
                    return ($type === self::G_FIXED ? 1 : -1);
223
                }
224
225
                if ($initial[$i][1] < $compared[$i][1]) {
226
                    return ($type === self::G_FIXED ? -1 : 1);
227
                }
228
229
                // Continue to next character group structure
230
            }