Skip to content

Commit dff2085

Browse files
committed
fixed CS
1 parent c2a1385 commit dff2085

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/Twig/Template.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,19 @@ public function getEnvironment()
6161
*/
6262
public function getParent(array $context)
6363
{
64-
if (null === $this->parent) {
65-
try {
66-
$parent = $this->doGetParent($context);
67-
$this->parent = false === $parent ? false : $this->env->resolveTemplate($parent);
68-
} catch (Twig_Error_Loader $e) {
69-
$e->setTemplateFile(null);
70-
$e->guess();
71-
72-
throw $e;
73-
}
64+
if (null !== $this->parent) {
65+
return $this->parent;
7466
}
7567

76-
return $this->parent;
68+
try {
69+
$parent = $this->doGetParent($context);
70+
$this->parent = false === $parent ? false : $this->env->resolveTemplate($parent);
71+
} catch (Twig_Error_Loader $e) {
72+
$e->setTemplateFile(null);
73+
$e->guess();
74+
75+
throw $e;
76+
}
7777
}
7878

7979
protected function doGetParent(array $context)

0 commit comments

Comments
 (0)