Completed
Push — master ( 84b209...858cdb )
by angel
02:20
created
src/Hash.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -41,46 +41,46 @@
 block discarded – undo
41 41
     } //End constructor
42 42
 
43 43
     /**
44
-    * Hash a plain text password.
45
-    *
46
-    * @param string $password 	The plain text password to hash.
47
-    * @return string 			The hashed $password parameter.
48
-    */
44
+     * Hash a plain text password.
45
+     *
46
+     * @param string $password 	The plain text password to hash.
47
+     * @return string 			The hashed $password parameter.
48
+     */
49 49
     public function password($password)
50 50
     {
51 51
         return password_hash($password, $this->algo, ['cost' => $this->cost]);
52 52
     } //End password
53 53
 
54 54
     /**
55
-    * Check a password against it's hash.
56
-    *
57
-    * @param string $password 	Plain text password.
58
-    * @param string $hash 		Hashed password.
59
-    * @return bool 			 	True if they match, false otherwise.
60
-    */
55
+     * Check a password against it's hash.
56
+     *
57
+     * @param string $password 	Plain text password.
58
+     * @param string $hash 		Hashed password.
59
+     * @return bool 			 	True if they match, false otherwise.
60
+     */
61 61
     public function passwordCheck($password, $hash)
62 62
     {
63 63
         return password_verify($password, $hash);
64 64
     } //End password
65 65
 
66 66
     /**
67
-    * Use sha256 to hash an input string.
68
-    *
69
-    * @param string $input 	Plain text string to be hashed.
70
-    * @return string 		The hashed version of the $input string.
71
-    */
67
+     * Use sha256 to hash an input string.
68
+     *
69
+     * @param string $input 	Plain text string to be hashed.
70
+     * @return string 		The hashed version of the $input string.
71
+     */
72 72
     public function hash($input)
73 73
     {
74 74
         return hash('sha256', $input);
75 75
     } //End hash
76 76
 
77 77
     /**
78
-    * Check a hash against another.
79
-    *
80
-    * @param string $know 	 The hash we know is correct.
81
-    * @param string $unknown The hash we want to compare with it.
82
-    * @return bool 			 True if the hashed strings match, false otherwise.
83
-    */
78
+     * Check a hash against another.
79
+     *
80
+     * @param string $know 	 The hash we know is correct.
81
+     * @param string $unknown The hash we want to compare with it.
82
+     * @return bool 			 True if the hashed strings match, false otherwise.
83
+     */
84 84
     public function hashCheck($know, $unknown)
85 85
     {
86 86
         return hash_equals($know, $unknown);
Please login to merge, or discard this patch.
src/Gravatar.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -34,14 +34,14 @@
 block discarded – undo
34 34
     const HTTPS_URL = 'https://secure.gravatar.com/avatar/';
35 35
 
36 36
     /**
37
-    * Returns the user's gravatar url.
38
-    * @param string $email The email address
39
-    * @param string $imageset Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ]
40
-    * @param string $rating Maximum rating (inclusive) [ g | pg | r | x ]
41
-    * @param boole $img True to return a complete IMG tag False for just the URL
42
-    * @param array $options Optional, additional key/value attributes to include
43
-    * @return string Link to the user's gravatar image.
44
-    */
37
+     * Returns the user's gravatar url.
38
+     * @param string $email The email address
39
+     * @param string $imageset Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ]
40
+     * @param string $rating Maximum rating (inclusive) [ g | pg | r | x ]
41
+     * @param boole $img True to return a complete IMG tag False for just the URL
42
+     * @param array $options Optional, additional key/value attributes to include
43
+     * @return string Link to the user's gravatar image.
44
+     */
45 45
     public static function getAvatarUrl($email, $options = [])
46 46
     {
47 47
         $size       = isset($options['s']) ? $options['s'] : 80;
Please login to merge, or discard this patch.