Passed
Push — master ( 98f85a...386811 )
by Jeferson
01:13
created
Developers/Password.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@  discard block
 block discarded – undo
23 23
      * @param $pass
24 24
      * @return bool|false|string
25 25
      */
26
-    public function CreatePass ($pass)
26
+    public function CreatePass($pass)
27 27
     {
28 28
         $hash = password_hash($pass, PASSWORD_DEFAULT);
29
-        if($hash){
29
+        if ($hash) {
30 30
             return $hash;
31
-        }else{
31
+        }else {
32 32
             return false;
33 33
         }
34 34
     }
@@ -39,12 +39,12 @@  discard block
 block discarded – undo
39 39
      * @param $hash
40 40
      * @return bool
41 41
      */
42
-    public function VerifyPass ($pass, $hash)
42
+    public function VerifyPass($pass, $hash)
43 43
     {
44 44
         $verify = password_verify($pass, $hash);
45
-        if($verify){
45
+        if ($verify) {
46 46
             return true;
47
-        }else{
47
+        }else {
48 48
             return false;
49 49
         }
50 50
     }
@@ -53,14 +53,14 @@  discard block
 block discarded – undo
53 53
      * Gera Automaticamente Uma Senha
54 54
      * @return bool|false|string
55 55
      */
56
-    public function GeneratePass ()
56
+    public function GeneratePass()
57 57
     {
58 58
         $pass = substr(str_shuffle("ABCDEFGHIJKLMNOPQRSTUVYXWZabcdefghijklmnopqrstuvyxwz0123456789!@#$%¨&*()_+="),
59 59
             0, 10);
60 60
         $hash = password_hash($pass, PASSWORD_DEFAULT);
61
-        if($hash){
61
+        if ($hash) {
62 62
             return $pass;
63
-        }else{
63
+        }else {
64 64
             return false;
65 65
         }
66 66
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         $hash = password_hash($pass, PASSWORD_DEFAULT);
29 29
         if($hash){
30 30
             return $hash;
31
-        }else{
31
+        } else{
32 32
             return false;
33 33
         }
34 34
     }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $verify = password_verify($pass, $hash);
45 45
         if($verify){
46 46
             return true;
47
-        }else{
47
+        } else{
48 48
             return false;
49 49
         }
50 50
     }
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $hash = password_hash($pass, PASSWORD_DEFAULT);
61 61
         if($hash){
62 62
             return $pass;
63
-        }else{
63
+        } else{
64 64
             return false;
65 65
         }
66 66
 
Please login to merge, or discard this patch.