Fix: checkstyle

This commit is contained in:
Laurent Destailleur 2014-11-05 16:23:10 +01:00
parent 90fb05805c
commit f7e71d8848

View File

@ -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();
} }