classes/PhpSourceStream.php
public function getTextToSemicolon()
    {
        $buffer = null;

        while (($nextToken = $this->getNext()) !== null) {
            if ($nextToken == ';') {
                return $buffer;
            }

            $buffer .= $this->getCurrentText();
        }

        // The semicolon wasn't found.
        return null;
    }
public function getTextToSemicolon()
    {
        $buffer = null;

        while (($nextToken = $this->getNext()) !== null) {
            if ($nextToken == ';') {
                return $buffer;
            }

            $buffer .= $this->getCurrentText();
        }

        // The semicolon wasn't found.
        return null;
    }
public function getTextToSemicolon ( ) { $ buffer = null ; while ( ( $ nextToken = $ this -> getNext ( ) ) !== null ) { if ( $ nextToken == ';' ) { return $ buffer ; } $ buffer .= $ this -> getCurrentText ( ) ; } // The semicolon wasn't found. return null ; }
Returns the stream text from the head position to the next semicolon and updates the head.
If the method succeeds, the head is positioned on the semicolon.
Returns the stream text from the head position to the next semicolon and updates the head . If the method succeeds the head is positioned on the semicolon .