src/Behat/Gherkin/Parser.php
private function parseTableRows()
    {
        $table = array();
        while (in_array($predicted = $this->predictTokenType(), array('TableRow', 'Newline', 'Comment'))) {
            if ('Comment' === $predicted || 'Newline' === $predicted) {
                $this->acceptTokenType($predicted);
                continue;
            }

            $token = $this->expectTokenType('TableRow');

            $table[$token['line']] = $token['columns'];
        }

        return $table;
    }
private function parseTableRows()
    {
        $table = array();
        while (in_array($predicted = $this->predictTokenType(), array('TableRow', 'Newline', 'Comment'))) {
            if ('Comment' === $predicted || 'Newline' === $predicted) {
                $this->acceptTokenType($predicted);
                continue;
            }

            $token = $this->expectTokenType('TableRow');

            $table[$token['line']] = $token['columns'];
        }

        return $table;
    }
private function parseTableRows ( ) { $ table = array ( ) ; while ( in_array ( $ predicted = $ this -> predictTokenType ( ) , array ( 'TableRow' , 'Newline' , 'Comment' ) ) ) { if ( 'Comment' === $ predicted || 'Newline' === $ predicted ) { $ this -> acceptTokenType ( $ predicted ) ; continue ; } $ token = $ this -> expectTokenType ( 'TableRow' ) ; $ table [ $ token [ 'line' ] ] = $ token [ 'columns' ] ; } return $ table ; }
Parses the rows of a table

@return string[][]
Parses the rows of a table