}
/**
- * @param XPathExpr $xpath
- * @param FunctionNode $function
- *
* @return XPathExpr
*/
public function translateNthLastChild(XPathExpr $xpath, FunctionNode $function)
}
/**
- * @param XPathExpr $xpath
- * @param FunctionNode $function
- *
* @return XPathExpr
*/
public function translateNthOfType(XPathExpr $xpath, FunctionNode $function)
}
/**
- * @param XPathExpr $xpath
- * @param FunctionNode $function
- *
* @return XPathExpr
*
* @throws ExpressionErrorException
}
/**
- * @param XPathExpr $xpath
- * @param FunctionNode $function
- *
* @return XPathExpr
*
* @throws ExpressionErrorException
$arguments = $function->getArguments();
foreach ($arguments as $token) {
if (!($token->isString() || $token->isIdentifier())) {
- throw new ExpressionErrorException(
- 'Expected a single string or identifier for :contains(), got '
- .implode(', ', $arguments)
- );
+ throw new ExpressionErrorException('Expected a single string or identifier for :contains(), got '.implode(', ', $arguments));
}
}
}
/**
- * @param XPathExpr $xpath
- * @param FunctionNode $function
- *
* @return XPathExpr
*
* @throws ExpressionErrorException
$arguments = $function->getArguments();
foreach ($arguments as $token) {
if (!($token->isString() || $token->isIdentifier())) {
- throw new ExpressionErrorException(
- 'Expected a single string or identifier for :lang(), got '
- .implode(', ', $arguments)
- );
+ throw new ExpressionErrorException('Expected a single string or identifier for :lang(), got '.implode(', ', $arguments));
}
}