@@ -27,7 +27,6 @@ discard block |
||
| 27 | 27 | /** |
| 28 | 28 | * vient de la partie admin n du site pages gestion-comptes/creer-utilisateur |
| 29 | 29 | * @param $value |
| 30 | - * @param null $required |
|
| 31 | 30 | * @return bool |
| 32 | 31 | */ |
| 33 | 32 | protected function setVerifAccesAdministration($value) { |
@@ -50,7 +49,6 @@ discard block |
||
| 50 | 49 | /** |
| 51 | 50 | * vient de la partie admin du site pages gestion-comptes/creer-utilisateur |
| 52 | 51 | * @param $value |
| 53 | - * @param null $required |
|
| 54 | 52 | * @return bool |
| 55 | 53 | */ |
| 56 | 54 | protected function setVerifListeDroitAcces($value) { |
@@ -36,12 +36,10 @@ discard block |
||
| 36 | 36 | if ($this->getTestInt($value) === true) { |
| 37 | 37 | $this->acces_administration = $value; |
| 38 | 38 | return true; |
| 39 | - } |
|
| 40 | - else if ($this->getTestInt($value) === false) { |
|
| 39 | + } else if ($this->getTestInt($value) === false) { |
|
| 41 | 40 | $this->erreur .= "<li>Le champs accès administration n'est pas au bon format</li>"; |
| 42 | 41 | return false; |
| 43 | - } |
|
| 44 | - else { |
|
| 42 | + } else { |
|
| 45 | 43 | return true; |
| 46 | 44 | } |
| 47 | 45 | |
@@ -59,12 +57,10 @@ discard block |
||
| 59 | 57 | if ($this->getTestInt($value) === true) { |
| 60 | 58 | $this->id_liste_droit_acces = $value; |
| 61 | 59 | return true; |
| 62 | - } |
|
| 63 | - else if ($this->getTestInt($value) === false) { |
|
| 60 | + } else if ($this->getTestInt($value) === false) { |
|
| 64 | 61 | $this->erreur .= "<li>Le champs accès administration n'est pas au bon format</li>"; |
| 65 | 62 | return false; |
| 66 | - } |
|
| 67 | - else { |
|
| 63 | + } else { |
|
| 68 | 64 | return true; |
| 69 | 65 | } |
| 70 | 66 | |