public function skipWhitespaces($skipComment = false) { $skips = [T_WHITESPACE => true]; if (!$skipComment) { $skips += [T_COMMENT => true, T_DOC_COMMENT => true]; } $this->_current++; return $this->_skip($skips); }