src/Translate.php
protected function parseMetadata(array $metadata): void
    {
        if (isset($metadata['arrayGroups'])) {
            foreach ($metadata['arrayGroups'] as $name => $values) {
                if (!isset($this->arrayGroups[$name])) {
                    $this->arrayGroups[$name] = array();
                }
                
                foreach ($values as $locale => $keyName) {
                    $this->arrayGroups[$name][$locale] = $keyName;
                }
            }
        }
    }
protected function parseMetadata(array $metadata): void
    {
        if (isset($metadata['arrayGroups'])) {
            foreach ($metadata['arrayGroups'] as $name => $values) {
                if (!isset($this->arrayGroups[$name])) {
                    $this->arrayGroups[$name] = array();
                }
                
                foreach ($values as $locale => $keyName) {
                    $this->arrayGroups[$name][$locale] = $keyName;
                }
            }
        }
    }
protected function parseMetadata ( array $ metadata ) : void { if ( isset ( $ metadata [ 'arrayGroups' ] ) ) { foreach ( $ metadata [ 'arrayGroups' ] as $ name => $ values ) { if ( ! isset ( $ this -> arrayGroups [ $ name ] ) ) { $ this -> arrayGroups [ $ name ] = array ( ) ; } foreach ( $ values as $ locale => $ keyName ) { $ this -> arrayGroups [ $ name ] [ $ locale ] = $ keyName ; } } } }
Parses resource file metadata
@param array $metadata The metadata
Parses resource file metadata