/**
  * Check for the absence of a white space before the text.
  *
  * @param String $text
  *        	The text of the token to test
  */
 private function _checkNoWhiteSpaceBefore($text)
 {
     if ($this->_isActive('noSpaceBeforeToken')) {
         $exceptions = $this->_config->getTestExceptions('noSpaceBeforeToken');
         if (empty($exceptions) || !in_array($text, $exceptions)) {
             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);
                 }
             }
         }
     }
 }