mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-31 12:37:15 +00:00
fixed CS
This commit is contained in:
@@ -29,7 +29,7 @@ class Twig_Autoloader
|
||||
/**
|
||||
* Handles autoloading of classes.
|
||||
*
|
||||
* @param string $class A class name.
|
||||
* @param string $class A class name.
|
||||
*
|
||||
* @return boolean Returns true if the class has been loaded
|
||||
*/
|
||||
|
||||
@@ -92,7 +92,7 @@ class Twig_Compiler implements Twig_CompilerInterface
|
||||
/**
|
||||
* Adds a raw string to the compiled code.
|
||||
*
|
||||
* @param string $string The string
|
||||
* @param string $string The string
|
||||
*
|
||||
* @return Twig_Compiler The current compiler instance
|
||||
*/
|
||||
@@ -129,7 +129,7 @@ class Twig_Compiler implements Twig_CompilerInterface
|
||||
/**
|
||||
* Adds a quoted string to the compiled code.
|
||||
*
|
||||
* @param string $value The string
|
||||
* @param string $value The string
|
||||
*
|
||||
* @return Twig_Compiler The current compiler instance
|
||||
*/
|
||||
@@ -143,7 +143,7 @@ class Twig_Compiler implements Twig_CompilerInterface
|
||||
/**
|
||||
* Returns a PHP representation of a given value.
|
||||
*
|
||||
* @param mixed $value The value to convert
|
||||
* @param mixed $value The value to convert
|
||||
*
|
||||
* @return Twig_Compiler The current compiler instance
|
||||
*/
|
||||
|
||||
@@ -20,7 +20,7 @@ interface Twig_CompilerInterface
|
||||
/**
|
||||
* Compiles a node.
|
||||
*
|
||||
* @param Twig_NodeInterface $node The node to compile
|
||||
* @param Twig_NodeInterface $node The node to compile
|
||||
*
|
||||
* @return Twig_CompilerInterface The current compiler instance
|
||||
*/
|
||||
|
||||
@@ -79,8 +79,8 @@ class Twig_Environment
|
||||
* (default to -1 which means that all optimizations are enabled;
|
||||
* set it to 0 to disable).
|
||||
*
|
||||
* @param Twig_LoaderInterface $loader A Twig_LoaderInterface instance
|
||||
* @param array $options An array of options
|
||||
* @param Twig_LoaderInterface $loader A Twig_LoaderInterface instance
|
||||
* @param array $options An array of options
|
||||
*/
|
||||
public function __construct(Twig_LoaderInterface $loader = null, $options = array())
|
||||
{
|
||||
|
||||
+2
-2
@@ -108,8 +108,8 @@ class Twig_Error extends Exception
|
||||
/**
|
||||
* For PHP < 5.3.0, provides access to the getPrevious() method.
|
||||
*
|
||||
* @param string $method The method name
|
||||
* @param array $arguments The parameters to be passed to the method
|
||||
* @param string $method The method name
|
||||
* @param array $arguments The parameters to be passed to the method
|
||||
*
|
||||
* @return Exception The previous exception or null
|
||||
*/
|
||||
|
||||
@@ -48,7 +48,7 @@ class Twig_Extension_Core extends Twig_Extension
|
||||
/**
|
||||
* Sets the default timezone to be used by the date filter.
|
||||
*
|
||||
* @param DateTimeZone|string $timezone The default timezone string or a DateTimeZone object
|
||||
* @param DateTimeZone|string $timezone The default timezone string or a DateTimeZone object
|
||||
*/
|
||||
public function setTimezone($timezone)
|
||||
{
|
||||
@@ -68,9 +68,9 @@ class Twig_Extension_Core extends Twig_Extension
|
||||
/**
|
||||
* Sets the default format to be used by the number_format filter.
|
||||
*
|
||||
* @param integer $decimal The number of decimal places to use.
|
||||
* @param string $decimalPoint The character(s) to use for the decimal point.
|
||||
* @param string $thousandSep The character(s) to use for the thousands separator.
|
||||
* @param integer $decimal The number of decimal places to use.
|
||||
* @param string $decimalPoint The character(s) to use for the decimal point.
|
||||
* @param string $thousandSep The character(s) to use for the thousands separator.
|
||||
*/
|
||||
public function setNumberFormat($decimal, $decimalPoint, $thousandSep)
|
||||
{
|
||||
|
||||
+2
-2
@@ -75,8 +75,8 @@ class Twig_Lexer implements Twig_LexerInterface
|
||||
/**
|
||||
* Tokenizes a source code.
|
||||
*
|
||||
* @param string $code The source code
|
||||
* @param string $filename A unique identifier for the source code
|
||||
* @param string $code The source code
|
||||
* @param string $filename A unique identifier for the source code
|
||||
*
|
||||
* @return Twig_TokenStream A token stream instance
|
||||
*/
|
||||
|
||||
@@ -20,8 +20,8 @@ interface Twig_LexerInterface
|
||||
/**
|
||||
* Tokenizes a source code.
|
||||
*
|
||||
* @param string $code The source code
|
||||
* @param string $filename A unique identifier for the source code
|
||||
* @param string $code The source code
|
||||
* @param string $filename A unique identifier for the source code
|
||||
*
|
||||
* @return Twig_TokenStream A token stream instance
|
||||
*/
|
||||
|
||||
@@ -53,7 +53,7 @@ class Twig_Loader_Array implements Twig_LoaderInterface
|
||||
/**
|
||||
* Gets the source code of a template, given its name.
|
||||
*
|
||||
* @param string $name The name of the template to load
|
||||
* @param string $name The name of the template to load
|
||||
*
|
||||
* @return string The template source code
|
||||
*/
|
||||
@@ -70,7 +70,7 @@ class Twig_Loader_Array implements Twig_LoaderInterface
|
||||
/**
|
||||
* Gets the cache key to use for the cache for a given template name.
|
||||
*
|
||||
* @param string $name The name of the template to load
|
||||
* @param string $name The name of the template to load
|
||||
*
|
||||
* @return string The cache key
|
||||
*/
|
||||
|
||||
@@ -45,7 +45,7 @@ class Twig_Loader_Chain implements Twig_LoaderInterface
|
||||
/**
|
||||
* Gets the source code of a template, given its name.
|
||||
*
|
||||
* @param string $name The name of the template to load
|
||||
* @param string $name The name of the template to load
|
||||
*
|
||||
* @return string The template source code
|
||||
*/
|
||||
@@ -64,7 +64,7 @@ class Twig_Loader_Chain implements Twig_LoaderInterface
|
||||
/**
|
||||
* Gets the cache key to use for the cache for a given template name.
|
||||
*
|
||||
* @param string $name The name of the template to load
|
||||
* @param string $name The name of the template to load
|
||||
*
|
||||
* @return string The cache key
|
||||
*/
|
||||
|
||||
@@ -77,7 +77,7 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface
|
||||
/**
|
||||
* Gets the source code of a template, given its name.
|
||||
*
|
||||
* @param string $name The name of the template to load
|
||||
* @param string $name The name of the template to load
|
||||
*
|
||||
* @return string The template source code
|
||||
*/
|
||||
@@ -89,7 +89,7 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface
|
||||
/**
|
||||
* Gets the cache key to use for the cache for a given template name.
|
||||
*
|
||||
* @param string $name The name of the template to load
|
||||
* @param string $name The name of the template to load
|
||||
*
|
||||
* @return string The cache key
|
||||
*/
|
||||
|
||||
@@ -25,7 +25,7 @@ class Twig_Loader_String implements Twig_LoaderInterface
|
||||
/**
|
||||
* Gets the source code of a template, given its name.
|
||||
*
|
||||
* @param string $name The name of the template to load
|
||||
* @param string $name The name of the template to load
|
||||
*
|
||||
* @return string The template source code
|
||||
*/
|
||||
@@ -37,7 +37,7 @@ class Twig_Loader_String implements Twig_LoaderInterface
|
||||
/**
|
||||
* Gets the cache key to use for the cache for a given template name.
|
||||
*
|
||||
* @param string $name The name of the template to load
|
||||
* @param string $name The name of the template to load
|
||||
*
|
||||
* @return string The cache key
|
||||
*/
|
||||
|
||||
@@ -20,7 +20,7 @@ interface Twig_LoaderInterface
|
||||
/**
|
||||
* Gets the source code of a template, given its name.
|
||||
*
|
||||
* @param string $name The name of the template to load
|
||||
* @param string $name The name of the template to load
|
||||
*
|
||||
* @return string The template source code
|
||||
*
|
||||
@@ -31,7 +31,7 @@ interface Twig_LoaderInterface
|
||||
/**
|
||||
* Gets the cache key to use for the cache for a given template name.
|
||||
*
|
||||
* @param string $name The name of the template to load
|
||||
* @param string $name The name of the template to load
|
||||
*
|
||||
* @return string The cache key
|
||||
*
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ class Twig_Parser implements Twig_ParserInterface
|
||||
/**
|
||||
* Converts a token stream to a node tree.
|
||||
*
|
||||
* @param Twig_TokenStream $stream A token stream instance
|
||||
* @param Twig_TokenStream $stream A token stream instance
|
||||
*
|
||||
* @return Twig_Node_Module A node tree
|
||||
*/
|
||||
|
||||
@@ -20,7 +20,7 @@ interface Twig_ParserInterface
|
||||
/**
|
||||
* Converts a token stream to a node tree.
|
||||
*
|
||||
* @param Twig_TokenStream $stream A token stream instance
|
||||
* @param Twig_TokenStream $stream A token stream instance
|
||||
*
|
||||
* @return Twig_Node_Module A node tree
|
||||
*/
|
||||
|
||||
@@ -23,7 +23,7 @@ interface Twig_TokenParserBrokerInterface
|
||||
/**
|
||||
* Gets a TokenParser suitable for a tag.
|
||||
*
|
||||
* @param string $tag A tag name
|
||||
* @param string $tag A tag name
|
||||
*
|
||||
* @return null|Twig_TokenParserInterface A Twig_TokenParserInterface or null if no suitable TokenParser was found
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user