Fix: checkstyle
This commit is contained in:
parent
90fb05805c
commit
f7e71d8848
@ -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
|
|||||||
|
|
||||||
$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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user