public static function parse($raw)
    {
        self::$parsed = [];
        list($headings, $data) = self::parseRawData($raw);

        if (!is_array($headings)) {
            // @codeCoverageIgnoreStart
            return self::$parsed;
            // @codeCoverageIgnoreEnd
        }

        foreach ($headings as $heading) {
            for ($i = 0, $j = count($heading); $i < $j; $i++) {
                self::populateEntries($heading, $data, $i);
            }
        };

        unset($headings, $data);

        return array_reverse(self::$parsed);
    }
public static function parse($raw)
    {
        self::$parsed = [];
        list($headings, $data) = self::parseRawData($raw);

        if (!is_array($headings)) {
            // @codeCoverageIgnoreStart
            return self::$parsed;
            // @codeCoverageIgnoreEnd
        }

        foreach ($headings as $heading) {
            for ($i = 0, $j = count($heading); $i < $j; $i++) {
                self::populateEntries($heading, $data, $i);
            }
        };

        unset($headings, $data);

        return array_reverse(self::$parsed);
    }
public static function parse ( $ raw ) { self :: $ parsed = [ ] ; list ( $ headings , $ data ) = self :: parseRawData ( $ raw ) ; if ( ! is_array ( $ headings ) ) { // @codeCoverageIgnoreStart return self :: $ parsed ; // @codeCoverageIgnoreEnd } foreach ( $ headings as $ heading ) { for ( $ i = 0 , $ j = count ( $ heading ) ; $ i < $ j ; $ i ++ ) { self :: populateEntries ( $ heading , $ data , $ i ) ; } } ; unset ( $ headings , $ data ) ; return array_reverse ( self :: $ parsed ) ; }
Parse file content.

@param  string  $raw

@return array
Parse file content .