From 934c5be96326433c5a84245dcef267d800bb0af2 Mon Sep 17 00:00:00 2001 From: Florent VIOLLEAU Date: Mon, 16 Dec 2024 18:51:30 +0100 Subject: [PATCH] [EdfColorDay Bridge] lint --- bridges/EdfColorDayBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/EdfColorDayBridge.php b/bridges/EdfColorDayBridge.php index 708260ce..1b4e45c4 100644 --- a/bridges/EdfColorDayBridge.php +++ b/bridges/EdfColorDayBridge.php @@ -65,7 +65,7 @@ class EdfColorDayBridge extends BridgeAbstract private function getDisplayableColor(string $color): string { $displayableColor = null; - switch($color) { + switch ($color) { case 'BLUE': $displayableColor = '🟦 TEMPO_BLEU'; break; @@ -87,7 +87,7 @@ class EdfColorDayBridge extends BridgeAbstract { $month = date('n'); // Current month as a number (1-12) $year = date('Y'); // Current year - + // Assuming the tempo year starts in September if ($month >= 9) { return $year . '-' . ($year + 1); // e.g., 2024-2025