if (!
$this->
getNextToken()) { return false;
} foreach ($expected as $val) { if (!
is_array($val) ||
$val[0
] !==
$token->value
) { continue;
} //If the second value in the array is true check that the current
//token is not followed by line terminators, otherwise compare its
//value to the next token
if (($val[1
] === true &&
$this->
noLineTerminators(true
)) || ($val[1
] !== true &&
$val[1
] ===
$this->nextToken->value
)) { return true;
} } return false;
} /**
* Returns the next token
*
* @return Token|null
*/