Code Duplication    Length = 3-7 lines in 2 locations

src/StructureSorter.php 2 locations

@@ 208-214 (lines=7) @@
205
            // Check if character group matches passed character group type
206
            if ($initial[$i][0] === $type) {
207
                // Compare character group length
208
                if ($initial[$i][1] > $compared[$i][1]) {
209
                    /**
210
                     * Shortest fixed CGS should have higher priority
211
                     * Longest variable CGS should have higher priority
212
                     */
213
                    return ($type === self::G_FIXED ? 1 : -1);
214
                }
215
216
                if ($initial[$i][1] < $compared[$i][1]) {
217
                    return ($type === self::G_FIXED ? -1 : 1);
@@ 216-218 (lines=3) @@
213
                    return ($type === self::G_FIXED ? 1 : -1);
214
                }
215
216
                if ($initial[$i][1] < $compared[$i][1]) {
217
                    return ($type === self::G_FIXED ? -1 : 1);
218
                }
219
220
                // Continue to next character group structure
221
            }