Run PHP-CS-FIXER to make sure

code is consisted with PSR-1 + PSR-2
This commit is contained in:
eldadfux committed 2019-09-06 20:04:26 +03:00
1 parent c9d3448571
commit 35680bbae9
37 files changed
+928 -753

No files matched your search

+6 -6
View File
@@ -12,7 +12,7 @@ class Key extends Validator
protected $message = 'Parameter must contain only letters with no spaces or special chars and be shorter than 32 chars';
/**
* Get Description
* Get Description.
*
* Returns validator description
*
@@ -24,24 +24,24 @@ class Key extends Validator
}
/**
* Is valid
* Is valid.
*
* Returns true if valid or false if not.
*
* @param $value
*
* @return bool
*/
public function isValid($value)
{
if (preg_match('/[^A-Za-z0-9\-\_]/', $value))
{
if (preg_match('/[^A-Za-z0-9\-\_]/', $value)) {
return false;
}
if(mb_strlen($value) > 40) {
if (mb_strlen($value) > 40) {
return false;
}
return true;
}
}
}