Skip to content
Snippets Groups Projects
Commit f7e71d88 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: checkstyle

parent 90fb0580
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,8 @@ class modGeneratePassPerso extends ModeleGenPassword ...@@ -90,7 +90,8 @@ class modGeneratePassPerso extends ModeleGenPassword
$this->NbRepeat = $tabConf[4]; $this->NbRepeat = $tabConf[4];
$this->WithoutAmbi = $tabConf[5]; $this->WithoutAmbi = $tabConf[5];
if($this->WithoutAmbi){ if ($this->WithoutAmbi)
{
$this->Maj = str_replace($this->Ambi,"",$this->Maj); $this->Maj = str_replace($this->Ambi,"",$this->Maj);
$this->Min = str_replace($this->Ambi,"",$this->Min); $this->Min = str_replace($this->Ambi,"",$this->Min);
$this->Nb = str_replace($this->Ambi,"",$this->Nb); $this->Nb = str_replace($this->Ambi,"",$this->Nb);
...@@ -150,9 +151,11 @@ class modGeneratePassPerso extends ModeleGenPassword ...@@ -150,9 +151,11 @@ class modGeneratePassPerso extends ModeleGenPassword
$pass = str_shuffle($pass); $pass = str_shuffle($pass);
if($this->validatePassword($pass)) { if ($this->validatePassword($pass))
{
return $pass; return $pass;
} }
return $this->getNewGeneratedPassword(); return $this->getNewGeneratedPassword();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment