aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-09-12 23:32:08 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2013-09-12 23:32:08 -0500
commit088dfc120003c2a44f6f8a2de36b39819a5332ab (patch)
treefbfa240f949f3df46514a44985d4fc634a4cb1c6 /phpBB/phpbb/template
parent5e86f5687b30397c0e520fd32a9fc92b7e155a16 (diff)
downloadforums-088dfc120003c2a44f6f8a2de36b39819a5332ab.tar
forums-088dfc120003c2a44f6f8a2de36b39819a5332ab.tar.gz
forums-088dfc120003c2a44f6f8a2de36b39819a5332ab.tar.bz2
forums-088dfc120003c2a44f6f8a2de36b39819a5332ab.tar.xz
forums-088dfc120003c2a44f6f8a2de36b39819a5332ab.zip
[ticket/11727] Fix indentation
PHPBB3-11727
Diffstat (limited to 'phpBB/phpbb/template')
-rw-r--r--phpBB/phpbb/template/twig/loader.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/phpBB/phpbb/template/twig/loader.php b/phpBB/phpbb/template/twig/loader.php
index 997c05f57c..8bf9adfbbe 100644
--- a/phpBB/phpbb/template/twig/loader.php
+++ b/phpBB/phpbb/template/twig/loader.php
@@ -91,18 +91,18 @@ class phpbb_template_twig_loader extends Twig_Loader_Filesystem
* Override for Twig_Loader_Filesystem::findTemplate to add support
* for loading from safe directories.
*/
- protected function findTemplate($name)
- {
- $name = (string) $name;
+ protected function findTemplate($name)
+ {
+ $name = (string) $name;
- // normalize name
- $name = preg_replace('#/{2,}#', '/', strtr($name, '\\', '/'));
+ // normalize name
+ $name = preg_replace('#/{2,}#', '/', strtr($name, '\\', '/'));
// If this is in the cache we can skip the entire process below
// as it should have already been validated
- if (isset($this->cache[$name])) {
- return $this->cache[$name];
- }
+ if (isset($this->cache[$name])) {
+ return $this->cache[$name];
+ }
// First, find the template name. The override above of validateName
// causes the validateName process to be skipped for this call
@@ -110,7 +110,7 @@ class phpbb_template_twig_loader extends Twig_Loader_Filesystem
try
{
- // Try validating the name (which may throw an exception)
+ // Try validating the name (which may throw an exception)
parent::validateName($name);
}
catch (Twig_Error_Loader $e)