source/Internal/Module/MetaData/Service/MetaDataSchemataProvider.php
private function arrayFlipRecursive(array $metaDataVersion): array
    {
        $transposedArray = [];

        foreach ($metaDataVersion as $key => $item) {
            if (is_numeric($key) && \is_string($item)) {
                $transposedArray[$this->convertKeyToLowerCase($item)] = $key;
            } elseif (\is_string($key) && \is_array($item)) {
                $transposedArray[$this->convertKeyToLowerCase($key)] = $this->arrayFlipRecursive($item);
            }
        }

        return $transposedArray;
    }
private function arrayFlipRecursive(array $metaDataVersion): array
    {
        $transposedArray = [];

        foreach ($metaDataVersion as $key => $item) {
            if (is_numeric($key) && \is_string($item)) {
                $transposedArray[$this->convertKeyToLowerCase($item)] = $key;
            } elseif (\is_string($key) && \is_array($item)) {
                $transposedArray[$this->convertKeyToLowerCase($key)] = $this->arrayFlipRecursive($item);
            }
        }

        return $transposedArray;
    }
private function arrayFlipRecursive ( array $ metaDataVersion ) : array { $ transposedArray = [ ] ; foreach ( $ metaDataVersion as $ key => $ item ) { if ( is_numeric ( $ key ) && \ is_string ( $ item ) ) { $ transposedArray [ $ this -> convertKeyToLowerCase ( $ item ) ] = $ key ; } elseif ( \ is_string ( $ key ) && \ is_array ( $ item ) ) { $ transposedArray [ $ this -> convertKeyToLowerCase ( $ key ) ] = $ this -> arrayFlipRecursive ( $ item ) ; } } return $ transposedArray ; }
Recursively exchange keys and values for a given array

@param array $metaDataVersion

@return array
Recursively exchange keys and values for a given array