Completed
Push — master ( 23c3c8...4c9ad8 )
by Arnold
02:02
created
src/Jasny/Auth.php 2 patches
Doc Comments   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     /**
57 57
      * Get current authenticated user id
58 58
      * 
59
-     * @return mixed
59
+     * @return integer
60 60
      */
61 61
     protected static function getCurrentUserId()
62 62
     {
@@ -79,7 +79,9 @@  discard block
 block discarded – undo
79 79
     /**
80 80
      * Fetch user and verify password
81 81
      * 
82
-     * @return User|false
82
+     * @param string $username
83
+     * @param string $password
84
+     * @return User
83 85
      */
84 86
     public static function verify($username, $password)
85 87
     {
@@ -94,7 +96,7 @@  discard block
 block discarded – undo
94 96
      * 
95 97
      * @param string $username
96 98
      * @param string $password
97
-     * @return boolean
99
+     * @return null|boolean
98 100
      */
99 101
     public static function login($username, $password)
100 102
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
      * @param string $password
71 71
      * @param string $salt      Use specific salt to verify existing password
72 72
      */
73
-    public static function password($password, $salt=null)
73
+    public static function password($password, $salt = null)
74 74
     {
75 75
         return isset($salt) ? crypt($password, $salt) : password_hash($password, PASSWORD_BCRYPT);
76 76
     }
Please login to merge, or discard this patch.