/** * Whether eof has been reached with stream. * @return boolean */ public function eof() { return $this->inStream->eof(); }
/** * @return bool */ protected function isComment() { return $this->input->peek() == '-' && !$this->input->eof(1) && $this->input->peek(1) == '-'; }