| @@ 2585-2591 (lines=7) @@ | ||
| 2582 | } |
|
| 2583 | usort( |
|
| 2584 | $actual, |
|
| 2585 | function ($field1, $field2) { |
|
| 2586 | if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) { |
|
| 2587 | return strcasecmp($field1->languageCode, $field2->languageCode); |
|
| 2588 | } |
|
| 2589 | ||
| 2590 | return $return; |
|
| 2591 | } |
|
| 2592 | ); |
|
| 2593 | ||
| 2594 | $expected = [ |
|
| @@ 5785-5791 (lines=7) @@ | ||
| 5782 | } |
|
| 5783 | usort( |
|
| 5784 | $normalized, |
|
| 5785 | function ($field1, $field2) { |
|
| 5786 | if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) { |
|
| 5787 | return strcasecmp($field1->languageCode, $field2->languageCode); |
|
| 5788 | } |
|
| 5789 | ||
| 5790 | return $return; |
|
| 5791 | } |
|
| 5792 | ); |
|
| 5793 | ||
| 5794 | return $normalized; |
|