| Total Complexity | 6 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class Translate |
||
| 10 | { |
||
| 11 | /** @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification */ |
||
| 12 | public static function cursorToAssociativeArray(Cursor $cursor): array |
||
| 13 | { |
||
| 14 | return self::arrayOfArrayObjectToAssociativeArray($cursor->toArray()); |
||
| 15 | } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param array<\ArrayObject> $arrayOfArrayObject |
||
| 19 | * |
||
| 20 | * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification |
||
| 21 | */ |
||
| 22 | public static function arrayOfArrayObjectToAssociativeArray(array $arrayOfArrayObject): array |
||
| 29 | } |
||
| 30 | |||
| 31 | /** @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification */ |
||
| 32 | public static function arrayObjectToAssociativeArray(\ArrayObject $arrayObject): array |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification |
||
| 39 | * @phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification |
||
| 40 | */ |
||
| 41 | public static function normalizeValues(array $values): array |
||
| 54 | } |
||
| 55 | } |
||
| 56 |