Skip to content

Commit

Permalink
fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Oct 22, 2014
1 parent c2a1385 commit 8d9a00d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/Twig/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,19 @@ public function getEnvironment()
*/
public function getParent(array $context)
{
if (null === $this->parent) {
try {
$parent = $this->doGetParent($context);
$this->parent = false === $parent ? false : $this->env->resolveTemplate($parent);
} catch (Twig_Error_Loader $e) {
$e->setTemplateFile(null);
$e->guess();

throw $e;
}
if (null !== $this->parent) {
return $this->parent;
}

return $this->parent;
try {
$parent = $this->doGetParent($context);
return $this->parent = false === $parent ? false : $this->env->resolveTemplate($parent);
} catch (Twig_Error_Loader $e) {
$e->setTemplateFile(null);
$e->guess();

throw $e;
}
}

protected function doGetParent(array $context)
Expand Down

0 comments on commit 8d9a00d

Please sign in to comment.