From: Fabien Potencier Date: Sat, 11 Oct 2014 20:16:06 +0000 (+0200) Subject: fixed CS X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=6121af4e2bf61004126f250efda75815e942de70;p=web%2Fkonrad%2Ftwig.git fixed CS --- diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index 8feb229..99d0fe3 100644 --- a/lib/Twig/Extension/Core.php +++ b/lib/Twig/Extension/Core.php @@ -478,11 +478,7 @@ function twig_date_modify_filter(Twig_Environment $env, $date, $modifier) // This is a hack to ensure PHP 5.2 support and support for DateTimeImmutable // DateTime::modify does not return the modified DateTime object < 5.3.0 // and DateTimeImmutable does not modify $date. - if (null === $resultDate) { - return $date; - } else { - return $resultDate; - } + return null === $resultDate ? $date : $resultDate; } /**