Passed
Push — master ( 77c2fd...9d7a30 )
by Mathieu
07:43
created
src/Charcoal/User/AuthToken.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -246,10 +246,10 @@
 block discarded – undo
246 246
         return $this;
247 247
     }
248 248
 
249
-     /**
250
-      * StorableTrait > preSave(): Called automatically before saving the object to source.
251
-      * @return boolean
252
-      */
249
+        /**
250
+         * StorableTrait > preSave(): Called automatically before saving the object to source.
251
+         * @return boolean
252
+         */
253 253
     public function preSave()
254 254
     {
255 255
         parent::preSave();
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     }
124 124
 
125 125
     /**
126
-     * @param DateTimeInterface|string|null $expiry The date/time at object's creation.
126
+     * @param string $expiry The date/time at object's creation.
127 127
      * @throws InvalidArgumentException If the date/time is invalid.
128 128
      * @return AuthToken Chainable
129 129
      */
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     }
155 155
 
156 156
     /**
157
-     * @param DateTimeInterface|string|null $created The date/time at object's creation.
157
+     * @param string $created The date/time at object's creation.
158 158
      * @throws InvalidArgumentException If the date/time is invalid.
159 159
      * @return AuthToken Chainable
160 160
      */
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     }
186 186
 
187 187
     /**
188
-     * @param DateTimeInterface|string|null $lastModified The last modified date/time.
188
+     * @param string $lastModified The last modified date/time.
189 189
      * @throws InvalidArgumentException If the date/time is invalid.
190 190
      * @return AuthToken Chainable
191 191
      */
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
     /**
304 304
      * @param mixed  $ident The auth-token identifier.
305 305
      * @param string $token The token key to validate against.
306
-     * @return mixed The user id.
306
+     * @return string The user id.
307 307
      */
308 308
     public function getUserId($ident, $token)
309 309
     {
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
     /**
314 314
      * @param mixed  $ident The auth-token identifier (username).
315 315
      * @param string $token The token to validate against.
316
-     * @return mixed The user id. An empty string if no token match.
316
+     * @return string The user id. An empty string if no token match.
317 317
      */
318 318
     public function getUsernameFromToken($ident, $token)
319 319
     {
Please login to merge, or discard this patch.
src/Charcoal/User/AbstractUser.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
     }
231 231
 
232 232
     /**
233
-     * @param  string|DateTimeInterface|null $lastLoginDate The last login date.
233
+     * @param  string $lastLoginDate The last login date.
234 234
      * @throws InvalidArgumentException If the ts is not a valid date/time.
235 235
      * @return UserInterface Chainable
236 236
      */
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
     }
310 310
 
311 311
     /**
312
-     * @param  string|DateTimeInterface|null $lastPasswordDate The last password date.
312
+     * @param  string $lastPasswordDate The last password date.
313 313
      * @throws InvalidArgumentException If the passsword date is not a valid DateTime.
314 314
      * @return UserInterface Chainable
315 315
      */
Please login to merge, or discard this patch.
src/Charcoal/User/AuthAwareTrait.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -103,11 +103,11 @@
 block discarded – undo
103 103
         return $this->authorizer;
104 104
     }
105 105
 
106
-     /**
107
-      * @param string[]|string|null $permissions The list of required permissions.
108
-      * @throws InvalidArgumentException If the permissions are not an array or a comma-separated string.
109
-      * @return AuthAwareTrait Chainable
110
-      */
106
+        /**
107
+         * @param string[]|string|null $permissions The list of required permissions.
108
+         * @throws InvalidArgumentException If the permissions are not an array or a comma-separated string.
109
+         * @return AuthAwareTrait Chainable
110
+         */
111 111
     protected function setRequiredAclPermissions($permissions)
112 112
     {
113 113
         if ($permissions === null || !$permissions) {
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * Set the authentication service.
46 46
      *
47 47
      * @param  Authenticator $authenticator The authentication service.
48
-     * @return AuthAwareInterface
48
+     * @return AuthAwareTrait
49 49
      */
50 50
     protected function setAuthenticator(Authenticator $authenticator)
51 51
     {
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      * Set the authorization service.
77 77
      *
78 78
      * @param  Authorizer $authorizer The authorization service.
79
-     * @return AuthAwareInterface
79
+     * @return AuthAwareTrait
80 80
      */
81 81
     protected function setAuthorizer(Authorizer $authorizer)
82 82
     {
Please login to merge, or discard this patch.