Permalink
Browse files

various cleanups

  • Loading branch information...
1 parent 10da58c commit cb651e8ebbafeb9550b4ecb67f6d69c1d8a6a687 @cordoval cordoval committed with Nov 12, 2013
@@ -22,7 +22,7 @@
*
* @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);
}
@@ -34,7 +34,7 @@ public function getTokenParsers()
/**
* 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()
{
@@ -117,7 +117,7 @@ public function getNumberFormat()
/**
* 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()
{
@@ -562,7 +562,7 @@ function twig_number_format_filter(Twig_Environment $env, $number, $decimal = nu
* 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
*/
@@ -30,7 +30,7 @@ public function getTokenParsers()
/**
* 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()
{
@@ -33,7 +33,7 @@ public function getTokenParsers()
/**
* 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()
{
@@ -35,7 +35,7 @@ public function getTokenParsers();
/**
* 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();
View
@@ -321,7 +321,6 @@ protected function lexString()
$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);
@@ -12,7 +12,7 @@
/**
* 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>
*/
@@ -24,8 +24,8 @@ class Twig_NodeTraverser
/**
* 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())
{
View
@@ -380,7 +380,7 @@ protected function filterBodyNodes(Twig_NodeInterface $node)
}
foreach ($node as $k => $n) {
- if (null !== $n && null === $n = $this->filterBodyNodes($n)) {
+ if (null !== $n && null === $this->filterBodyNodes($n)) {
$node->removeNode($k);
}
}
@@ -105,7 +105,7 @@ public function look($number = 1)
/**
* Tests the current token
*
- * @return bool
+ * @return Boolean
*/
public function test($primary, $secondary = null)
{
@@ -115,7 +115,7 @@ public function test($primary, $secondary = null)
/**
* Checks if end of stream was reached
*
- * @return bool
+ * @return Boolean
*/
public function isEOF()
{

0 comments on commit cb651e8

Please sign in to comment.