From 893a7f9e0e387b34c5ac04d9a075e7dcaf0e1e53 Mon Sep 17 00:00:00 2001 From: Sacha Telgenhof Date: Sat, 14 Oct 2023 19:11:11 +0900 Subject: [PATCH] Remove useless parentheses Signed-off-by: Sacha Telgenhof --- src/Yasumi/Provider/Japan.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Yasumi/Provider/Japan.php b/src/Yasumi/Provider/Japan.php index 64f171ed8..d49422d6d 100644 --- a/src/Yasumi/Provider/Japan.php +++ b/src/Yasumi/Provider/Japan.php @@ -307,7 +307,7 @@ private function calculateVernalEquinoxDay(): void private function calculateComingOfAgeDay(): void { if ($this->year >= 1948) { - $date = ($this->year >= 2000) ? + $date = $this->year >= 2000 ? new \DateTime("second monday of january {$this->year}", DateTimeZoneFactory::getDateTimeZone($this->timezone)) : new \DateTime("{$this->year}-1-15", DateTimeZoneFactory::getDateTimeZone($this->timezone));