| @@ 2567-2573 (lines=7) @@ | ||
| 2564 | } |
|
| 2565 | usort( |
|
| 2566 | $actual, |
|
| 2567 | function ($field1, $field2) { |
|
| 2568 | if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) { |
|
| 2569 | return strcasecmp($field1->languageCode, $field2->languageCode); |
|
| 2570 | } |
|
| 2571 | ||
| 2572 | return $return; |
|
| 2573 | } |
|
| 2574 | ); |
|
| 2575 | ||
| 2576 | $expected = [ |
|
| @@ 6001-6007 (lines=7) @@ | ||
| 5998 | } |
|
| 5999 | usort( |
|
| 6000 | $normalized, |
|
| 6001 | function ($field1, $field2) { |
|
| 6002 | if (0 === ($return = strcasecmp($field1->fieldDefIdentifier, $field2->fieldDefIdentifier))) { |
|
| 6003 | return strcasecmp($field1->languageCode, $field2->languageCode); |
|
| 6004 | } |
|
| 6005 | ||
| 6006 | return $return; |
|
| 6007 | } |
|
| 6008 | ); |
|
| 6009 | ||
| 6010 | return $normalized; |
|