public function parseMetadata(string $source): array
    {
        $yaml = Yaml::parse($source);

        if (! is_array($yaml)) {
            throw new ParseException('The YAML value does not appear to be valid UTF-8.', -1, null, null);
        }

        return $yaml;
    }
public function parseMetadata(string $source): array
    {
        $yaml = Yaml::parse($source);

        if (! is_array($yaml)) {
            throw new ParseException('The YAML value does not appear to be valid UTF-8.', -1, null, null);
        }

        return $yaml;
    }
public function parseMetadata ( string $ source ) : array { $ yaml = Yaml :: parse ( $ source ) ; if ( ! is_array ( $ yaml ) ) { throw new ParseException ( 'The YAML value does not appear to be valid UTF-8.' , - 1 , null , null ) ; } return $ yaml ; }
Parse metadata into an array.

@param  string  $source

@return array
Parse metadata into an array .