private function _checkNoWhiteSpaceBefore($text) {
		if ($this->_isActive('noSpaceBeforeToken')) {

			if (!$this->_config->isException('noSpaceBeforeToken', $text)) {

				if ($this->tokenizer->checkPreviousToken(T_WHITESPACE)) {

					// To avoid false positives when using a space indentation system,
					// check that we are on the same line as the previous valid token
					$prevValid = $this->tokenizer->peekPrvsValidToken();
					$currentToken = $this->tokenizer->getCurrentToken();
					if ($prevValid->line === $currentToken->line) {
						$msg = $this->_getMessage('NO_SPACE_BEFORE_TOKEN', $text);
						$this->_writeError('noSpaceBeforeToken', $msg);
					}
				}
			}
		}
	}
private function _checkNoWhiteSpaceBefore($text) {
		if ($this->_isActive('noSpaceBeforeToken')) {

			if (!$this->_config->isException('noSpaceBeforeToken', $text)) {

				if ($this->tokenizer->checkPreviousToken(T_WHITESPACE)) {

					// To avoid false positives when using a space indentation system,
					// check that we are on the same line as the previous valid token
					$prevValid = $this->tokenizer->peekPrvsValidToken();
					$currentToken = $this->tokenizer->getCurrentToken();
					if ($prevValid->line === $currentToken->line) {
						$msg = $this->_getMessage('NO_SPACE_BEFORE_TOKEN', $text);
						$this->_writeError('noSpaceBeforeToken', $msg);
					}
				}
			}
		}
	}
private function _checkNoWhiteSpaceBefore ( $ text ) { if ( $ this -> _isActive ( 'noSpaceBeforeToken' ) ) { if ( ! $ this -> _config -> isException ( 'noSpaceBeforeToken' , $ text ) ) { if ( $ this -> tokenizer -> checkPreviousToken ( T_WHITESPACE ) ) { // To avoid false positives when using a space indentation system, // check that we are on the same line as the previous valid token $ prevValid = $ this -> tokenizer -> peekPrvsValidToken ( ) ; $ currentToken = $ this -> tokenizer -> getCurrentToken ( ) ; if ( $ prevValid -> line === $ currentToken -> line ) { $ msg = $ this -> _getMessage ( 'NO_SPACE_BEFORE_TOKEN' , $ text ) ; $ this -> _writeError ( 'noSpaceBeforeToken' , $ msg ) ; } } } } }
Check for the absence of a white space before the text.

@param String $text
The text of the token to test
Check for the absence of a white space before the text .