*
* @param string $name The name of the template to check if we can load
*
- * @return boolean If the template source code is handled by this loader or not
+ * @return Boolean If the template source code is handled by this loader or not
*/
public function exists($name);
}
/**
* Returns the node visitor instances to add to the existing list.
*
- * @return array An array of Twig_NodeVisitorInterface instances
+ * @return Twig_NodeVisitorInterface[] An array of Twig_NodeVisitorInterface instances
*/
public function getNodeVisitors()
{
/**
* Returns the token parser instance to add to the existing list.
*
- * @return array An array of Twig_TokenParser instances
+ * @return Twig_TokenParser[] An array of Twig_TokenParser instances
*/
public function getTokenParsers()
{
* URL encodes a string as a path segment or an array as a query string.
*
* @param string|array $url A URL or an array of query parameters
- * @param bool $raw true to use rawurlencode() instead of urlencode
+ * @param Boolean $raw true to use rawurlencode() instead of urlencode
*
* @return string The URL encoded value
*/
/**
* Returns the node visitor instances to add to the existing list.
*
- * @return array An array of Twig_NodeVisitorInterface instances
+ * @return Twig_NodeVisitorInterface[] An array of Twig_NodeVisitorInterface instances
*/
public function getNodeVisitors()
{
/**
* Returns the node visitor instances to add to the existing list.
*
- * @return array An array of Twig_NodeVisitorInterface instances
+ * @return Twig_NodeVisitorInterface[] An array of Twig_NodeVisitorInterface instances
*/
public function getNodeVisitors()
{
/**
* Returns the node visitor instances to add to the existing list.
*
- * @return array An array of Twig_NodeVisitorInterface instances
+ * @return Twig_NodeVisitorInterface[] An array of Twig_NodeVisitorInterface instances
*/
public function getNodeVisitors();
$this->moveCursor($match[0]);
} elseif (preg_match(self::REGEX_DQ_STRING_DELIM, $this->code, $match, null, $this->cursor)) {
-
list($expect, $lineno) = array_pop($this->brackets);
if ($this->code[$this->cursor] != '"') {
throw new Twig_Error_Syntax(sprintf('Unclosed "%s"', $expect), $lineno, $this->filename);
/**
* Twig_NodeTraverser is a node traverser.
*
- * It visits all nodes and their children and call the given visitor for each.
+ * It visits all nodes and their children and calls the given visitor for each.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
/**
* Constructor.
*
- * @param Twig_Environment $env A Twig_Environment instance
- * @param array $visitors An array of Twig_NodeVisitorInterface instances
+ * @param Twig_Environment $env A Twig_Environment instance
+ * @param Twig_NodeVisitorInterface[] $visitors An array of Twig_NodeVisitorInterface instances
*/
public function __construct(Twig_Environment $env, array $visitors = array())
{
}
foreach ($node as $k => $n) {
- if (null !== $n && null === $n = $this->filterBodyNodes($n)) {
+ if (null !== $n && null === $this->filterBodyNodes($n)) {
$node->removeNode($k);
}
}
/**
* Tests the current token
*
- * @return bool
+ * @return Boolean
*/
public function test($primary, $secondary = null)
{
/**
* Checks if end of stream was reached
*
- * @return bool
+ * @return Boolean
*/
public function isEOF()
{