From 924c8b352e2839bad37f14211194136904f2d764 Mon Sep 17 00:00:00 2001 From: Julien Brochet Date: Sat, 14 Jan 2012 15:56:01 +0100 Subject: [PATCH] fixed CS --- lib/Twig/Extension/Core.php | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index 886539e..20cf474 100644 --- a/lib/Twig/Extension/Core.php +++ b/lib/Twig/Extension/Core.php @@ -558,9 +558,9 @@ function _twig_default_filter($value, $default = '') { if (twig_test_empty($value)) { return $default; - } else { - return $value; } + + return $value; } /** @@ -746,11 +746,9 @@ function twig_escape_filter_is_safe(Twig_Node $filterArgs) foreach ($filterArgs as $arg) { if ($arg instanceof Twig_Node_Expression_Constant) { return array($arg->getAttribute('value')); - } else { - return array(); } - break; + return array(); } return array('html'); -- 1.7.2.5