From aa3c0d84577f2259e76129bdda3cf236a4c75c57 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 11 Jan 2012 13:27:00 +0100 Subject: [PATCH] fixed some phpdoc --- lib/Twig/Compiler.php | 10 +++++----- lib/Twig/Environment.php | 8 ++++---- lib/Twig/NodeVisitor/Escaper.php | 4 ++-- lib/Twig/NodeVisitor/Sandbox.php | 4 ++-- lib/Twig/ParserInterface.php | 2 +- lib/Twig/Token.php | 5 +++-- 6 files changed, 17 insertions(+), 16 deletions(-) diff --git a/lib/Twig/Compiler.php b/lib/Twig/Compiler.php index db2e8de..b1330b0 100644 --- a/lib/Twig/Compiler.php +++ b/lib/Twig/Compiler.php @@ -56,8 +56,8 @@ class Twig_Compiler implements Twig_CompilerInterface /** * Compiles a node. * - * @param Twig_NodeInterface $node The node to compile - * @param integer $indent The current indentation + * @param Twig_NodeInterface $node The node to compile + * @param integer $indentation The current indentation * * @return Twig_Compiler The current compiler instance */ @@ -123,7 +123,7 @@ class Twig_Compiler implements Twig_CompilerInterface /** * Adds a quoted string to the compiled code. * - * @param string $string The string + * @param string $value The string * * @return Twig_Compiler The current compiler instance */ @@ -188,7 +188,7 @@ class Twig_Compiler implements Twig_CompilerInterface /** * Indents the generated code. * - * @param integer $indent The number of indentation to add + * @param integer $step The number of indentation to add * * @return Twig_Compiler The current compiler instance */ @@ -202,7 +202,7 @@ class Twig_Compiler implements Twig_CompilerInterface /** * Outdents the generated code. * - * @param integer $indent The number of indentation to remove + * @param integer $step The number of indentation to remove * * @return Twig_Compiler The current compiler instance */ diff --git a/lib/Twig/Environment.php b/lib/Twig/Environment.php index 4ea903a..f6eac6c 100644 --- a/lib/Twig/Environment.php +++ b/lib/Twig/Environment.php @@ -743,8 +743,8 @@ class Twig_Environment /** * Registers a Filter. * - * @param string $name The filter name - * @param Twig_FilterInterface $visitor A Twig_FilterInterface instance + * @param string $name The filter name + * @param Twig_FilterInterface $filter A Twig_FilterInterface instance */ public function addFilter($name, Twig_FilterInterface $filter) { @@ -822,8 +822,8 @@ class Twig_Environment /** * Registers a Test. * - * @param string $name The test name - * @param Twig_TestInterface $visitor A Twig_TestInterface instance + * @param string $name The test name + * @param Twig_TestInterface $test A Twig_TestInterface instance */ public function addTest($name, Twig_TestInterface $test) { diff --git a/lib/Twig/NodeVisitor/Escaper.php b/lib/Twig/NodeVisitor/Escaper.php index d848f80..7a80caa 100644 --- a/lib/Twig/NodeVisitor/Escaper.php +++ b/lib/Twig/NodeVisitor/Escaper.php @@ -34,7 +34,7 @@ class Twig_NodeVisitor_Escaper implements Twig_NodeVisitorInterface * @param Twig_NodeInterface $node The node to visit * @param Twig_Environment $env The Twig environment instance * - * @param Twig_NodeInterface The modified node + * @return Twig_NodeInterface The modified node */ public function enterNode(Twig_NodeInterface $node, Twig_Environment $env) { @@ -53,7 +53,7 @@ class Twig_NodeVisitor_Escaper implements Twig_NodeVisitorInterface * @param Twig_NodeInterface $node The node to visit * @param Twig_Environment $env The Twig environment instance * - * @param Twig_NodeInterface The modified node + * @return Twig_NodeInterface The modified node */ public function leaveNode(Twig_NodeInterface $node, Twig_Environment $env) { diff --git a/lib/Twig/NodeVisitor/Sandbox.php b/lib/Twig/NodeVisitor/Sandbox.php index 356b661..1957f8a 100644 --- a/lib/Twig/NodeVisitor/Sandbox.php +++ b/lib/Twig/NodeVisitor/Sandbox.php @@ -28,7 +28,7 @@ class Twig_NodeVisitor_Sandbox implements Twig_NodeVisitorInterface * @param Twig_NodeInterface $node The node to visit * @param Twig_Environment $env The Twig environment instance * - * @param Twig_NodeInterface The modified node + * @return Twig_NodeInterface The modified node */ public function enterNode(Twig_NodeInterface $node, Twig_Environment $env) { @@ -70,7 +70,7 @@ class Twig_NodeVisitor_Sandbox implements Twig_NodeVisitorInterface * @param Twig_NodeInterface $node The node to visit * @param Twig_Environment $env The Twig environment instance * - * @param Twig_NodeInterface The modified node + * @return Twig_NodeInterface The modified node */ public function leaveNode(Twig_NodeInterface $node, Twig_Environment $env) { diff --git a/lib/Twig/ParserInterface.php b/lib/Twig/ParserInterface.php index c7a3441..4cb6d28 100644 --- a/lib/Twig/ParserInterface.php +++ b/lib/Twig/ParserInterface.php @@ -24,5 +24,5 @@ interface Twig_ParserInterface * * @return Twig_Node_Module A node tree */ - function parse(Twig_TokenStream $code); + function parse(Twig_TokenStream $stream); } diff --git a/lib/Twig/Token.php b/lib/Twig/Token.php index 9bc7119..918bb91 100644 --- a/lib/Twig/Token.php +++ b/lib/Twig/Token.php @@ -122,6 +122,7 @@ class Twig_Token * * @param integer $type The type as an integer * @param Boolean $short Whether to return a short representation or not + * @param integer $line The code line * * @return string The string representation */ @@ -177,8 +178,8 @@ class Twig_Token /** * Returns the english representation of a given type. * - * @param integer $type The type as an integer - * @param Boolean $short Whether to return a short representation or not + * @param integer $type The type as an integer + * @param integer $line The code line * * @return string The string representation */ -- 1.7.2.5