| @@ 2551-2557 (lines=7) @@ | ||
| 2548 | } |
|
| 2549 | usort( |
|
| 2550 | $actual, |
|
| 2551 | function ($field1, $field2) { |
|
| 2552 | if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) { |
|
| 2553 | return strcasecmp($field1->languageCode, $field2->languageCode); |
|
| 2554 | } |
|
| 2555 | ||
| 2556 | return $return; |
|
| 2557 | } |
|
| 2558 | ); |
|
| 2559 | ||
| 2560 | $expected = [ |
|
| @@ 5751-5757 (lines=7) @@ | ||
| 5748 | } |
|
| 5749 | usort( |
|
| 5750 | $normalized, |
|
| 5751 | function ($field1, $field2) { |
|
| 5752 | if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) { |
|
| 5753 | return strcasecmp($field1->languageCode, $field2->languageCode); |
|
| 5754 | } |
|
| 5755 | ||
| 5756 | return $return; |
|
| 5757 | } |
|
| 5758 | ); |
|
| 5759 | ||
| 5760 | return $normalized; |
|