aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template/twig/tokenparser
diff options
context:
space:
mode:
authorNicofuma <github@nicofuma.fr>2015-05-14 13:32:25 +0200
committerNicofuma <github@nicofuma.fr>2015-05-14 15:43:44 +0200
commit62e13e945c475c416c4fb9deff8f234d3508a598 (patch)
tree63054db38f4be26feae3992693a3c65ba81b22df /phpBB/phpbb/template/twig/tokenparser
parente4b30c474ba24d8bc023f5bf07b46de6ccfaee89 (diff)
downloadforums-62e13e945c475c416c4fb9deff8f234d3508a598.tar
forums-62e13e945c475c416c4fb9deff8f234d3508a598.tar.gz
forums-62e13e945c475c416c4fb9deff8f234d3508a598.tar.bz2
forums-62e13e945c475c416c4fb9deff8f234d3508a598.tar.xz
forums-62e13e945c475c416c4fb9deff8f234d3508a598.zip
[ticket/13838] Fix coding style
PHPBB3-13838
Diffstat (limited to 'phpBB/phpbb/template/twig/tokenparser')
-rw-r--r--phpBB/phpbb/template/twig/tokenparser/defineparser.php7
-rw-r--r--phpBB/phpbb/template/twig/tokenparser/includephp.php3
2 files changed, 7 insertions, 3 deletions
diff --git a/phpBB/phpbb/template/twig/tokenparser/defineparser.php b/phpBB/phpbb/template/twig/tokenparser/defineparser.php
index cfee84a363..2b88d61118 100644
--- a/phpBB/phpbb/template/twig/tokenparser/defineparser.php
+++ b/phpBB/phpbb/template/twig/tokenparser/defineparser.php
@@ -33,7 +33,8 @@ class defineparser extends \Twig_TokenParser
$name = $this->parser->getExpressionParser()->parseExpression();
$capture = false;
- if ($stream->test(\Twig_Token::OPERATOR_TYPE, '=')) {
+ if ($stream->test(\Twig_Token::OPERATOR_TYPE, '='))
+ {
$stream->next();
$value = $this->parser->getExpressionParser()->parseExpression();
@@ -45,7 +46,9 @@ class defineparser extends \Twig_TokenParser
}
$stream->expect(\Twig_Token::BLOCK_END_TYPE);
- } else {
+ }
+ else
+ {
$capture = true;
$stream->expect(\Twig_Token::BLOCK_END_TYPE);
diff --git a/phpBB/phpbb/template/twig/tokenparser/includephp.php b/phpBB/phpbb/template/twig/tokenparser/includephp.php
index 38196c5290..c09f7729b0 100644
--- a/phpBB/phpbb/template/twig/tokenparser/includephp.php
+++ b/phpBB/phpbb/template/twig/tokenparser/includephp.php
@@ -31,7 +31,8 @@ class includephp extends \Twig_TokenParser
$stream = $this->parser->getStream();
$ignoreMissing = false;
- if ($stream->test(\Twig_Token::NAME_TYPE, 'ignore')) {
+ if ($stream->test(\Twig_Token::NAME_TYPE, 'ignore'))
+ {
$stream->next();
$stream->expect(\Twig_Token::NAME_TYPE, 'missing');