From 20593a05761c76aa21b0bbd6d90ec81687d2ee68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Le=CC=81on?= Date: Sat, 14 Jun 2014 21:58:33 +0200 Subject: [PATCH] Fix PSR coding style --- core/lib/Thelia/Core/Template/Smarty/Plugins/Format.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/lib/Thelia/Core/Template/Smarty/Plugins/Format.php b/core/lib/Thelia/Core/Template/Smarty/Plugins/Format.php index 606479e24..e254ecc60 100644 --- a/core/lib/Thelia/Core/Template/Smarty/Plugins/Format.php +++ b/core/lib/Thelia/Core/Template/Smarty/Plugins/Format.php @@ -89,12 +89,10 @@ class Format extends AbstractSmartyPlugin $locale = $this->getParam($params,'locale', false); - if($locale === false) - { + if($locale === false) { return $date->format($format); } else { - if(function_exists('setlocale')) - { + if(function_exists('setlocale')) { // Save the current locale $system_locale = setlocale('LC_TIME', 0); setlocale('LC_TIME', $locale); @@ -104,7 +102,7 @@ class Format extends AbstractSmartyPlugin return $localized_date; } else { - // No timestamp => error + // setlocale() function not available => error throw new SmartyPluginException("The setlocale() function is not available on your system."); } }