public function peekPrvsValidToken($startPos = null) {
		if ($startPos === null) {
			// default position for the search
			$pos = $this->getCurrentPosition() - 1;
		} else {
			// if defined, set the start position
			$pos = $startPos;
		}

		$token = null;
		while ($pos > 0) {

			$token = $this->tokens[$pos];
			$pos --;

			if (isset($this->ignoreTokens[$token->id])) {
				continue;
			} else if ($token->id === T_NEW_LINE) {
				continue;
			} else {
				break;
			}
		}

		return $token;
	}
public function peekPrvsValidToken($startPos = null) {
		if ($startPos === null) {
			// default position for the search
			$pos = $this->getCurrentPosition() - 1;
		} else {
			// if defined, set the start position
			$pos = $startPos;
		}

		$token = null;
		while ($pos > 0) {

			$token = $this->tokens[$pos];
			$pos --;

			if (isset($this->ignoreTokens[$token->id])) {
				continue;
			} else if ($token->id === T_NEW_LINE) {
				continue;
			} else {
				break;
			}
		}

		return $token;
	}
public function peekPrvsValidToken ( $ startPos = null ) { if ( $ startPos === null ) { // default position for the search $ pos = $ this -> getCurrentPosition ( ) - 1 ; } else { // if defined, set the start position $ pos = $ startPos ; } $ token = null ; while ( $ pos > 0 ) { $ token = $ this -> tokens [ $ pos ] ; $ pos -- ; if ( isset ( $ this -> ignoreTokens [ $ token -> id ] ) ) { continue ; } else if ( $ token -> id === T_NEW_LINE ) { continue ; } else { break ; } } return $ token ; }
Peeks at the previous valid token.
A valid token is one that is neither a whitespace or a comment

@param Integer $startPos
a token position (optional).
@return TokenInfo the info about the token found
Peeks at the previous valid token . A valid token is one that is neither a whitespace or a comment