private function _checkNoWhiteSpaceAfter($token) {
		if ($this->_isActive('noSpaceAfterToken')) {

			$text = $token->text;

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

				// The next token is a whitespace
				if ($this->tokenizer->checkNextToken(T_WHITESPACE)) {

					// And the next valid token is on the same line
					$tokenAfter = $this->tokenizer->peekNextValidToken();
					if ($tokenAfter->line === $token->line) {
						$msg = $this->_getMessage('NO_SPACE_AFTER_TOKEN', $text);
						$this->_writeError('noSpaceAfterToken', $msg);
					}
				}
			}
		}
	}
private function _checkNoWhiteSpaceAfter($token) {
		if ($this->_isActive('noSpaceAfterToken')) {

			$text = $token->text;

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

				// The next token is a whitespace
				if ($this->tokenizer->checkNextToken(T_WHITESPACE)) {

					// And the next valid token is on the same line
					$tokenAfter = $this->tokenizer->peekNextValidToken();
					if ($tokenAfter->line === $token->line) {
						$msg = $this->_getMessage('NO_SPACE_AFTER_TOKEN', $text);
						$this->_writeError('noSpaceAfterToken', $msg);
					}
				}
			}
		}
	}
private function _checkNoWhiteSpaceAfter ( $ token ) { if ( $ this -> _isActive ( 'noSpaceAfterToken' ) ) { $ text = $ token -> text ; if ( ! $ this -> _config -> isException ( 'noSpaceAfterToken' , $ text ) ) { // The next token is a whitespace if ( $ this -> tokenizer -> checkNextToken ( T_WHITESPACE ) ) { // And the next valid token is on the same line $ tokenAfter = $ this -> tokenizer -> peekNextValidToken ( ) ; if ( $ tokenAfter -> line === $ token -> line ) { $ msg = $ this -> _getMessage ( 'NO_SPACE_AFTER_TOKEN' , $ text ) ; $ this -> _writeError ( 'noSpaceAfterToken' , $ msg ) ; } } } } }
Check for the absence of a white space after the text.

@param TokenInfo $token
the token
Check for the absence of a white space after the text .