Update gettext : add spaces

DomCi : remove line too longs on all the files


git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5280 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2019-05-23 14:19:30 +00:00
parent a79b59685f
commit 17168aaaef
39 changed files with 588 additions and 565 deletions

View File

@@ -87,15 +87,15 @@ class users
public function checkEmail ($email)
{
if (! is_string ($email))
throw new Exception (dgettext("domframework",
throw new Exception (dgettext ("domframework",
"Invalid email provided : not a string"),
500);
if (strlen ($email) < 5)
throw new Exception (dgettext("domframework",
throw new Exception (dgettext ("domframework",
"Invalid email provided : too short"),
500);
if (strpos ($email, ":") !== false)
throw new Exception (dgettext("domframework",
throw new Exception (dgettext ("domframework",
"Invalid email provided : colon forbidden"),
500);
return true;
@@ -107,15 +107,15 @@ class users
public function checkFirstname ($firstname)
{
if (! is_string ($firstname))
throw new Exception (dgettext("domframework",
throw new Exception (dgettext ("domframework",
"Invalid firstname provided : not a string"),
500);
if (strlen ($firstname) < 1)
throw new Exception (dgettext("domframework",
throw new Exception (dgettext ("domframework",
"Invalid firstname provided : too short"),
500);
if (strpos ($firstname, ":") !== false)
throw new Exception (dgettext("domframework",
throw new Exception (dgettext ("domframework",
"Invalid firstname provided : colon forbidden"),
500);
return true;
@@ -127,11 +127,11 @@ class users
public function checkLastname ($lastname)
{
if (! is_string ($lastname))
throw new Exception (dgettext("domframework",
throw new Exception (dgettext ("domframework",
"Invalid lastname provided : not a string"),
500);
if (strpos ($lastname, ":") !== false)
throw new Exception (dgettext("domframework",
throw new Exception (dgettext ("domframework",
"Invalid lastname provided : colon forbidden"),
500);
return true;
@@ -143,15 +143,15 @@ class users
public function checkPassword ($password)
{
if (! is_string ($password))
throw new Exception (dgettext("domframework",
throw new Exception (dgettext ("domframework",
"Invalid password provided : not a string"),
500);
if (strlen ($password) < 5)
throw new Exception (dgettext("domframework",
throw new Exception (dgettext ("domframework",
"Invalid password provided : too short"),
500);
if (strlen ($password) >= 128)
throw new Exception (dgettext("domframework",
throw new Exception (dgettext ("domframework",
"Invalid password provided : too long"),
500);
return true;
@@ -163,7 +163,7 @@ class users
public function cryptPasswd ($password)
{
if (! function_exists ("openssl_random_pseudo_bytes"))
throw new Exception (dgettext("domframework",
throw new Exception (dgettext ("domframework",
"No PHP support for openssl_random_pseudo_bytes"),
500);
$cost = 11;