| @@ 2668-2674 (lines=7) @@ | ||
| 2665 | } |
|
| 2666 | usort( |
|
| 2667 | $actual, |
|
| 2668 | function ($field1, $field2) { |
|
| 2669 | if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) { |
|
| 2670 | return strcasecmp($field1->languageCode, $field2->languageCode); |
|
| 2671 | } |
|
| 2672 | ||
| 2673 | return $return; |
|
| 2674 | } |
|
| 2675 | ); |
|
| 2676 | ||
| 2677 | $expected = [ |
|
| @@ 6112-6118 (lines=7) @@ | ||
| 6109 | } |
|
| 6110 | usort( |
|
| 6111 | $normalized, |
|
| 6112 | function ($field1, $field2) { |
|
| 6113 | if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) { |
|
| 6114 | return strcasecmp($field1->languageCode, $field2->languageCode); |
|
| 6115 | } |
|
| 6116 | ||
| 6117 | return $return; |
|
| 6118 | } |
|
| 6119 | ); |
|
| 6120 | ||
| 6121 | return $normalized; |
|