Completed
Push — master ( ae3b69...388e0b )
by Mathieu
14:21
created
src/Charcoal/User/AbstractUser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
             $this->setLastLoginIp($ip);
455 455
         }
456 456
 
457
-        $this->update([ 'last_login_ip', 'last_login_date' ]);
457
+        $this->update(['last_login_ip', 'last_login_date']);
458 458
 
459 459
         $this->saveToSession();
460 460
 
@@ -541,7 +541,7 @@  discard block
 block discarded – undo
541 541
         }
542 542
 
543 543
         if ($this->id()) {
544
-            $this->update([ 'password', 'last_password_date', 'last_password_ip' ]);
544
+            $this->update(['password', 'last_password_date', 'last_password_ip']);
545 545
         }
546 546
 
547 547
         return $this;
Please login to merge, or discard this patch.
src/Charcoal/User/ServiceProvider/AuthServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
              * @param  Container $container The Pimple DI Container.
32 32
              * @return Authenticator
33 33
              */
34
-            $container['authenticator'] = function (Container $container) {
34
+            $container['authenticator'] = function(Container $container) {
35 35
                 return new Authenticator([
36 36
                     'logger'        => $container['logger'],
37 37
                     'user_type'     => User::class,
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
              * @param  Container $container The Pimple DI container.
48 48
              * @return Authorizer
49 49
              */
50
-            $container['authorizer'] = function (Container $container) {
50
+            $container['authorizer'] = function(Container $container) {
51 51
                 return new Authorizer([
52 52
                     'logger'    => $container['logger'],
53 53
                     'acl'       => new Acl(),
Please login to merge, or discard this patch.
src/Charcoal/User/Authenticator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
      * @return \Charcoal\User\UserInterface|null Returns the authenticated user object
104 104
      *     or NULL if not authenticated.
105 105
      */
106
-    public function authenticateByPassword($username, $password, $key=null)
106
+    public function authenticateByPassword($username, $password, $key = null)
107 107
     {
108 108
         if (!is_string($username) || !is_string($password)) {
109 109
             throw new InvalidArgumentException(
Please login to merge, or discard this patch.