From 6121af4e2bf61004126f250efda75815e942de70 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 11 Oct 2014 22:16:06 +0200 Subject: [PATCH] fixed CS --- lib/Twig/Extension/Core.php | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) 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; } /** -- 1.7.2.5