Test Failed
Push — master ( 50c55b...dc4b0d )
by Justin
05:44
created
system/core/validator/password.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -27,39 +27,39 @@
 block discarded – undo
27 27
 
28 28
 class Validator_Password implements Validator_Base {
29 29
 
30
-	public function isValide($value): bool {
31
-		$valide = false;
30
+    public function isValide($value): bool {
31
+        $valide = false;
32 32
 
33
-		//throw event, so plugins like pwned can interact
34
-		Events::throwEvent("validate_password", array(
35
-			'password' => &$value,
36
-			'valide' => &$valide
37
-		));
33
+        //throw event, so plugins like pwned can interact
34
+        Events::throwEvent("validate_password", array(
35
+            'password' => &$value,
36
+            'valide' => &$valide
37
+        ));
38 38
 
39
-		if (!$valide) {
40
-			return false;
41
-		}
39
+        if (!$valide) {
40
+            return false;
41
+        }
42 42
 
43
-		if (strlen($value) < Settings::get("password_min_length", 8)) {
44
-			return false;
45
-		}
43
+        if (strlen($value) < Settings::get("password_min_length", 8)) {
44
+            return false;
45
+        }
46 46
 
47
-		if (strlen($value) > Settings::get("password_max_length", 64)) {
48
-			//more than 64 characters arent supported
49
-			return false;
50
-		}
47
+        if (strlen($value) > Settings::get("password_max_length", 64)) {
48
+            //more than 64 characters arent supported
49
+            return false;
50
+        }
51 51
 
52
-		//everything is allowed
53
-		return true;
54
-	}
52
+        //everything is allowed
53
+        return true;
54
+    }
55 55
 
56
-	public function validate($value) {
57
-		if ($this->isValide($value)) {
58
-			return $value;
59
-		} else {
60
-			throw new SecurityException("username is not valide '" . htmlentities($value) . "'!");
61
-		}
62
-	}
56
+    public function validate($value) {
57
+        if ($this->isValide($value)) {
58
+            return $value;
59
+        } else {
60
+            throw new SecurityException("username is not valide '" . htmlentities($value) . "'!");
61
+        }
62
+    }
63 63
 
64 64
 }
65 65
 
Please login to merge, or discard this patch.