private function _countLinesOfCode() {
		// We get the previous token (T_WHITESPACE, T_COMMENT, ... ignored);
		$currentToken = $this->tokenizer->getCurrentToken();
		$previousToken = $this->tokenizer->peekPrvsValidToken();

		// If the previous token is not the new line (empty line), we suppose we have some code
		if ($previousToken !== null) {
			if (!$this->tokenizer->checkToken($previousToken, T_NEW_LINE) && ($previousToken->line === $currentToken->line)) {
				$this->_ncssTotalLinesOfCode ++;
				$this->_ncssFileLinesOfCode ++;
			}
		}
	}
private function _countLinesOfCode() {
		// We get the previous token (T_WHITESPACE, T_COMMENT, ... ignored);
		$currentToken = $this->tokenizer->getCurrentToken();
		$previousToken = $this->tokenizer->peekPrvsValidToken();

		// If the previous token is not the new line (empty line), we suppose we have some code
		if ($previousToken !== null) {
			if (!$this->tokenizer->checkToken($previousToken, T_NEW_LINE) && ($previousToken->line === $currentToken->line)) {
				$this->_ncssTotalLinesOfCode ++;
				$this->_ncssFileLinesOfCode ++;
			}
		}
	}
private function _countLinesOfCode ( ) { // We get the previous token (T_WHITESPACE, T_COMMENT, ... ignored); $ currentToken = $ this -> tokenizer -> getCurrentToken ( ) ; $ previousToken = $ this -> tokenizer -> peekPrvsValidToken ( ) ; // If the previous token is not the new line (empty line), we suppose we have some code if ( $ previousToken !== null ) { if ( ! $ this -> tokenizer -> checkToken ( $ previousToken , T_NEW_LINE ) && ( $ previousToken -> line === $ currentToken -> line ) ) { $ this -> _ncssTotalLinesOfCode ++ ; $ this -> _ncssFileLinesOfCode ++ ; } } }
Check if the current line if a line of code and if it's the case increment the count.

This function is called when we meet a T_NEW_LINE token.
Check if the current line if a line of code and if it s the case increment the count .