From 2af96adbf566a4b8438b48edcf0eef8fed357ef7 Mon Sep 17 00:00:00 2001 From: vbochet <vbochet@gmail.com> Date: Sat, 7 May 2016 11:41:40 +0200 Subject: [PATCH] =?UTF-8?q?Reformatage=20du=20fichier=20router.php,=20pour?= =?UTF-8?q?=20avoir=20un=20ensemble=20coh=C3=A9rent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/kernel/Router.php | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/app/kernel/Router.php b/app/kernel/Router.php index e51448c..5c06efa 100644 --- a/app/kernel/Router.php +++ b/app/kernel/Router.php @@ -128,28 +128,36 @@ class Router else if ($parts[0] == "add_partie" && count($parts) == 1) { $result["controller"] = "Partie"; $result["action"] = "displayStep0"; - } else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "valid") { + } + else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "valid") { $result["controller"] = "Partie"; $result["action"] = "displayValid"; - } else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "step1") { + } + else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "step1") { $result["controller"] = "Partie"; $result["action"] = "displayStep1"; - } else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "step2") { + } + else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "step2") { $result["controller"] = "Partie"; $result["action"] = "displayStep2"; - } else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "stepe1") { + } + else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "stepe1") { $result["controller"] = "Partie"; $result["action"] = "displayStepe1"; - } else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "stepe2") { + } + else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "stepe2") { $result["controller"] = "Partie"; $result["action"] = "displayStepe2"; - } else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "verifystep0") { + } + else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "verifystep0") { $result["controller"] = "Partie"; $result["action"] = "verifyStep0"; - } else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "verifystep1") { + } + else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "verifystep1") { $result["controller"] = "Partie"; $result["action"] = "verifyStep1"; - } else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "verifystep2") { + } + else if ($parts[0] == "add_partie" && count($parts) == 2 && $parts[1] == "verifystep2") { $result["controller"] = "Partie"; $result["action"] = "verifyStep2"; } -- GitLab