private function _processComment($token) {
		// Count the lines of comment
		if ($token->id === T_COMMENT) {
			$this->_ncssTotalSingleComment ++;
			$this->_ncssFileSingleComment ++;
		} else if ($token->id === T_ML_COMMENT) {
			$this->_ncssTotalMultiComment ++;
			$this->_ncssFileMultiComment ++;
		} else if ($token->id === T_DOC_COMMENT) {
			$this->_ncssTotalPhpdoc ++;
			$this->_ncssFilePhpdoc ++;
			$this->_ncssTotalLinesPhpdoc ++;
			$this->_ncssFileLinesPhpdoc ++;
			if ($this->_isFileDocComment()) {
				$this->_processAnnotation(T_FILE, $token->text);
			}
		}

		// Count the @params, @returns and @throw
		if (stripos($token->text, '/**') !== false) {
			// Reset the count of elements if it's a new docblock
			$this->statementStack->getCurrentStackItem()->docblocNbParams = 0;
			$this->statementStack->getCurrentStackItem()->docblocNbReturns = 0;
			$this->statementStack->getCurrentStackItem()->docblocNbThrows = 0;
		}
		if (stripos($token->text, '@param') !== false) {
			$this->statementStack->getCurrentStackItem()->docblocNbParams ++;
		}
		if (stripos($token->text, '@return') !== false) {
			$this->statementStack->getCurrentStackItem()->docblocNbReturns ++;
		}
		if (stripos($token->text, '@throw') !== false) {
			$this->statementStack->getCurrentStackItem()->docblocNbThrows ++;
		}
		if (stripos($token->text, '@inheritdoc') !== false) {
			$this->statementStack->getCurrentStackItem()->docblocInheritDoc = true;
		}

		// Check if the comment starts with '#'
		if ($this->_isActive('noShellComments')) {
			$todoStr = strpos($token->text, '#');
			if ($todoStr === 0) {
				$this->_writeError('noShellComments', $this->_getMessage('NO_SHELL_COMMENTS'));
			}
		}

		// Check if the comment contains a TO DO
		$this->_processTODO($token);
	}
private function _processComment($token) {
		// Count the lines of comment
		if ($token->id === T_COMMENT) {
			$this->_ncssTotalSingleComment ++;
			$this->_ncssFileSingleComment ++;
		} else if ($token->id === T_ML_COMMENT) {
			$this->_ncssTotalMultiComment ++;
			$this->_ncssFileMultiComment ++;
		} else if ($token->id === T_DOC_COMMENT) {
			$this->_ncssTotalPhpdoc ++;
			$this->_ncssFilePhpdoc ++;
			$this->_ncssTotalLinesPhpdoc ++;
			$this->_ncssFileLinesPhpdoc ++;
			if ($this->_isFileDocComment()) {
				$this->_processAnnotation(T_FILE, $token->text);
			}
		}

		// Count the @params, @returns and @throw
		if (stripos($token->text, '/**') !== false) {
			// Reset the count of elements if it's a new docblock
			$this->statementStack->getCurrentStackItem()->docblocNbParams = 0;
			$this->statementStack->getCurrentStackItem()->docblocNbReturns = 0;
			$this->statementStack->getCurrentStackItem()->docblocNbThrows = 0;
		}
		if (stripos($token->text, '@param') !== false) {
			$this->statementStack->getCurrentStackItem()->docblocNbParams ++;
		}
		if (stripos($token->text, '@return') !== false) {
			$this->statementStack->getCurrentStackItem()->docblocNbReturns ++;
		}
		if (stripos($token->text, '@throw') !== false) {
			$this->statementStack->getCurrentStackItem()->docblocNbThrows ++;
		}
		if (stripos($token->text, '@inheritdoc') !== false) {
			$this->statementStack->getCurrentStackItem()->docblocInheritDoc = true;
		}

		// Check if the comment starts with '#'
		if ($this->_isActive('noShellComments')) {
			$todoStr = strpos($token->text, '#');
			if ($todoStr === 0) {
				$this->_writeError('noShellComments', $this->_getMessage('NO_SHELL_COMMENTS'));
			}
		}

		// Check if the comment contains a TO DO
		$this->_processTODO($token);
	}
private function _processComment ( $ token ) { // Count the lines of comment if ( $ token -> id === T_COMMENT ) { $ this -> _ncssTotalSingleComment ++ ; $ this -> _ncssFileSingleComment ++ ; } else if ( $ token -> id === T_ML_COMMENT ) { $ this -> _ncssTotalMultiComment ++ ; $ this -> _ncssFileMultiComment ++ ; } else if ( $ token -> id === T_DOC_COMMENT ) { $ this -> _ncssTotalPhpdoc ++ ; $ this -> _ncssFilePhpdoc ++ ; $ this -> _ncssTotalLinesPhpdoc ++ ; $ this -> _ncssFileLinesPhpdoc ++ ; if ( $ this -> _isFileDocComment ( ) ) { $ this -> _processAnnotation ( T_FILE , $ token -> text ) ; } } // Count the @params, @returns and @throw if ( stripos ( $ token -> text , '/**' ) !== false ) { // Reset the count of elements if it's a new docblock $ this -> statementStack -> getCurrentStackItem ( ) -> docblocNbParams = 0 ; $ this -> statementStack -> getCurrentStackItem ( ) -> docblocNbReturns = 0 ; $ this -> statementStack -> getCurrentStackItem ( ) -> docblocNbThrows = 0 ; } if ( stripos ( $ token -> text , '@param' ) !== false ) { $ this -> statementStack -> getCurrentStackItem ( ) -> docblocNbParams ++ ; } if ( stripos ( $ token -> text , '@return' ) !== false ) { $ this -> statementStack -> getCurrentStackItem ( ) -> docblocNbReturns ++ ; } if ( stripos ( $ token -> text , '@throw' ) !== false ) { $ this -> statementStack -> getCurrentStackItem ( ) -> docblocNbThrows ++ ; } if ( stripos ( $ token -> text , '@inheritdoc' ) !== false ) { $ this -> statementStack -> getCurrentStackItem ( ) -> docblocInheritDoc = true ; } // Check if the comment starts with '#' if ( $ this -> _isActive ( 'noShellComments' ) ) { $ todoStr = strpos ( $ token -> text , '#' ) ; if ( $ todoStr === 0 ) { $ this -> _writeError ( 'noShellComments' , $ this -> _getMessage ( 'NO_SHELL_COMMENTS' ) ) ; } } // Check if the comment contains a TO DO $ this -> _processTODO ( $ token ) ; }
Process a comment.

@param TokenInfo $token
the token
Process a comment .