src/Horse/Parsers/MetadataParser.php
public function parseMany($line)
    {
        $results = [];
        $buffer  = '';

        foreach (\str_split($line) as $character)
        {
            if ('{' == $character)
            {
                $buffer = $character;
            }
            elseif ('}' == $character)
            {
                $results[] = $this->parse($buffer.$character);
            }
            else
            {
                $buffer .= $character;
            }
        }

        return $results;
    }
public function parseMany($line)
    {
        $results = [];
        $buffer  = '';

        foreach (\str_split($line) as $character)
        {
            if ('{' == $character)
            {
                $buffer = $character;
            }
            elseif ('}' == $character)
            {
                $results[] = $this->parse($buffer.$character);
            }
            else
            {
                $buffer .= $character;
            }
        }

        return $results;
    }
public function parseMany ( $ line ) { $ results = [ ] ; $ buffer = '' ; foreach ( \ str_split ( $ line ) as $ character ) { if ( '{' == $ character ) { $ buffer = $ character ; } elseif ( '}' == $ character ) { $ results [ ] = $ this -> parse ( $ buffer . $ character ) ; } else { $ buffer .= $ character ; } } return $ results ; }
Parse multiple elements.

@param string $line
@return array
Parse multiple elements .