From baf124d87d3fabfa42a48c35947025ee427cbcc0 Mon Sep 17 00:00:00 2001 From: Github Actions Workflow Date: Thu, 4 Aug 2022 11:46:55 +0000 Subject: [PATCH] PHP code fixes --- src/TwigExtension/ArcheTwigDateExtension.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TwigExtension/ArcheTwigDateExtension.php b/src/TwigExtension/ArcheTwigDateExtension.php index bf00112..d3cbb2e 100644 --- a/src/TwigExtension/ArcheTwigDateExtension.php +++ b/src/TwigExtension/ArcheTwigDateExtension.php @@ -30,7 +30,7 @@ public function getName() private function checkYearIsMoreThanFourDigit($value): bool { - $explode = explode("-", $value); + $explode = explode("-", $value); if (strlen($explode[0]) > 4) { return true; } @@ -45,10 +45,10 @@ private function checkYearIsMoreThanFourDigit($value): bool * @return string */ private function returnFormattedDate($dateformat, $value, $lang): string - { + { $cal = \IntlCalendar::fromDateTime($value." Europe/Vienna"); - if($cal === null ) { + if ($cal === null) { return ""; }