From 991021b662b2bde3bea582022b458d99dc582d99 Mon Sep 17 00:00:00 2001 From: Nigel Sheldon Date: Fri, 27 Nov 2020 12:19:05 +0100 Subject: [PATCH] Corrige le linting sur la branche add_race_to_defense --- onyx2/include/Class/Donnees/spatial.php | 6 +++--- onyx2/include/Class/Donnees/terrestre.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/onyx2/include/Class/Donnees/spatial.php b/onyx2/include/Class/Donnees/spatial.php index c03e2af..56c772b 100644 --- a/onyx2/include/Class/Donnees/spatial.php +++ b/onyx2/include/Class/Donnees/spatial.php @@ -586,10 +586,10 @@ class dSpatial implements Donnees - public static function needed($id, surface $planete, $print = false, $race = NULL) + public static function needed($id, surface $planete, $print = false, $race = null) { - if ($race == NULL) { - $race = $planete->race; + if ($race == null) { + $race = $planete->race; } if ($race == "humain") { $neededSpatial = diff --git a/onyx2/include/Class/Donnees/terrestre.php b/onyx2/include/Class/Donnees/terrestre.php index dff3764..005413e 100644 --- a/onyx2/include/Class/Donnees/terrestre.php +++ b/onyx2/include/Class/Donnees/terrestre.php @@ -621,10 +621,10 @@ class dTerrestre implements Donnees } - public static function needed($id, surface $planete, $print = false, $race = NULL) + public static function needed($id, surface $planete, $print = false, $race = null) { - if ($race == NULL) { - $race = $planete->race; + if ($race == null) { + $race = $planete->race; } if ($race == "humain") { $neededTerrestre = array( -- 2.45.2