diff options
| author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-02 12:34:16 -0500 |
|---|---|---|
| committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-02 12:34:16 -0500 |
| commit | 57c2d99e65ce107208db10721cff5b815ee3403c (patch) | |
| tree | fb184b62f6b88937568168e1f6bef1e31a3001a6 /phpBB/includes/template/twig/node/includephp.php | |
| parent | f102f609f5f0e424374aab55b8141c4e4a48b0fc (diff) | |
| download | forums-57c2d99e65ce107208db10721cff5b815ee3403c.tar forums-57c2d99e65ce107208db10721cff5b815ee3403c.tar.gz forums-57c2d99e65ce107208db10721cff5b815ee3403c.tar.bz2 forums-57c2d99e65ce107208db10721cff5b815ee3403c.tar.xz forums-57c2d99e65ce107208db10721cff5b815ee3403c.zip | |
[feature/twig] Fix indentation
PHPBB3-11598
Diffstat (limited to 'phpBB/includes/template/twig/node/includephp.php')
| -rw-r--r-- | phpBB/includes/template/twig/node/includephp.php | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/phpBB/includes/template/twig/node/includephp.php b/phpBB/includes/template/twig/node/includephp.php index a19ce43653..b5bb2ee9c9 100644 --- a/phpBB/includes/template/twig/node/includephp.php +++ b/phpBB/includes/template/twig/node/includephp.php @@ -12,21 +12,21 @@ class phpbb_template_twig_node_includephp extends Twig_Node /** @var Twig_Environment */ protected $environment; - public function __construct(Twig_Node_Expression $expr, phpbb_template_twig_environment $environment, $ignoreMissing = false, $lineno, $tag = null) - { - $this->environment = $environment; + public function __construct(Twig_Node_Expression $expr, phpbb_template_twig_environment $environment, $ignoreMissing = false, $lineno, $tag = null) + { + $this->environment = $environment; - parent::__construct(array('expr' => $expr), array('ignore_missing' => (Boolean) $ignoreMissing), $lineno, $tag); - } + parent::__construct(array('expr' => $expr), array('ignore_missing' => (Boolean) $ignoreMissing), $lineno, $tag); + } - /** - * Compiles the node to PHP. - * - * @param Twig_Compiler A Twig_Compiler instance - */ - public function compile(Twig_Compiler $compiler) - { - $compiler->addDebugInfo($this); + /** + * Compiles the node to PHP. + * + * @param Twig_Compiler A Twig_Compiler instance + */ + public function compile(Twig_Compiler $compiler) + { + $compiler->addDebugInfo($this); $config = $this->environment->get_phpbb_config(); @@ -39,12 +39,12 @@ class phpbb_template_twig_node_includephp extends Twig_Node return; } - if ($this->getAttribute('ignore_missing')) { - $compiler - ->write("try {\n") - ->indent() - ; - } + if ($this->getAttribute('ignore_missing')) { + $compiler + ->write("try {\n") + ->indent() + ; + } $compiler ->write("\$location = ") @@ -68,15 +68,15 @@ class phpbb_template_twig_node_includephp extends Twig_Node ->write("}\n") ; - if ($this->getAttribute('ignore_missing')) { - $compiler - ->outdent() - ->write("} catch (Twig_Error_Loader \$e) {\n") - ->indent() - ->write("// ignore missing template\n") - ->outdent() - ->write("}\n\n") - ; - } - } + if ($this->getAttribute('ignore_missing')) { + $compiler + ->outdent() + ->write("} catch (Twig_Error_Loader \$e) {\n") + ->indent() + ->write("// ignore missing template\n") + ->outdent() + ->write("}\n\n") + ; + } + } } |
