@@ 240-242 (lines=3) @@ | ||
237 | private function compareCSGData(array $initialGroup, array $comparedGroup, int $type, int $dataIndex = 1): int |
|
238 | { |
|
239 | // Compare character group length |
|
240 | if ($initialGroup[$dataIndex] > $comparedGroup[$dataIndex]) { |
|
241 | return ($type === self::G_FIXED ? 1 : -1); |
|
242 | } |
|
243 | ||
244 | if ($initialGroup[$dataIndex] < $comparedGroup[$dataIndex]) { |
|
245 | return ($type === self::G_FIXED ? -1 : 1); |
|
@@ 244-246 (lines=3) @@ | ||
241 | return ($type === self::G_FIXED ? 1 : -1); |
|
242 | } |
|
243 | ||
244 | if ($initialGroup[$dataIndex] < $comparedGroup[$dataIndex]) { |
|
245 | return ($type === self::G_FIXED ? -1 : 1); |
|
246 | } |
|
247 | ||
248 | // Cannot define |
|
249 | return 0; |