| @@ 2451-2457 (lines=7) @@ | ||
| 2448 | } |
|
| 2449 | usort( |
|
| 2450 | $actual, |
|
| 2451 | function ($field1, $field2) { |
|
| 2452 | if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) { |
|
| 2453 | return strcasecmp($field1->languageCode, $field2->languageCode); |
|
| 2454 | } |
|
| 2455 | ||
| 2456 | return $return; |
|
| 2457 | } |
|
| 2458 | ); |
|
| 2459 | ||
| 2460 | $expected = [ |
|
| @@ 5651-5657 (lines=7) @@ | ||
| 5648 | } |
|
| 5649 | usort( |
|
| 5650 | $normalized, |
|
| 5651 | function ($field1, $field2) { |
|
| 5652 | if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) { |
|
| 5653 | return strcasecmp($field1->languageCode, $field2->languageCode); |
|
| 5654 | } |
|
| 5655 | ||
| 5656 | return $return; |
|
| 5657 | } |
|
| 5658 | ); |
|
| 5659 | ||
| 5660 | return $normalized; |
|