Skip to content

Commit

Permalink
PHP code fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Actions Workflow committed Aug 4, 2022
1 parent 602d4ab commit baf124d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/TwigExtension/ArcheTwigDateExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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 "";
}

Expand Down

0 comments on commit baf124d

Please sign in to comment.