Code Duplication    Length = 3-3 lines in 2 locations

src/StructureSorter.php 2 locations

@@ 212-214 (lines=3) @@
209
    private function compareCSGData(array $initialGroup, array $comparedGroup, int $type, int $dataIndex = 1)
210
    {
211
        // Compare character group length
212
        if ($initialGroup[$dataIndex] > $comparedGroup[$dataIndex]) {
213
            return ($type === self::G_FIXED ? 1 : -1);
214
        }
215
216
        if ($initialGroup[$dataIndex] < $comparedGroup[$dataIndex]) {
217
            return ($type === self::G_FIXED ? -1 : 1);
@@ 216-218 (lines=3) @@
213
            return ($type === self::G_FIXED ? 1 : -1);
214
        }
215
216
        if ($initialGroup[$dataIndex] < $comparedGroup[$dataIndex]) {
217
            return ($type === self::G_FIXED ? -1 : 1);
218
        }
219
220
        // Cannot define
221
        return 0;