Passed
Push — master ( 6151ba...17a32e )
by Chauncey
52s queued 10s
created
src/Charcoal/User/AuthAwareTrait.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -121,11 +121,11 @@
 block discarded – undo
121 121
         return $this->authorizer;
122 122
     }
123 123
 
124
-     /**
125
-      * @param string[]|string|null $permissions The list of required permissions.
126
-      * @throws InvalidArgumentException If the permissions are not an array or a comma-separated string.
127
-      * @return self
128
-      */
124
+        /**
125
+         * @param string[]|string|null $permissions The list of required permissions.
126
+         * @throws InvalidArgumentException If the permissions are not an array or a comma-separated string.
127
+         * @return self
128
+         */
129 129
     protected function setRequiredAclPermissions($permissions)
130 130
     {
131 131
         if ($permissions === null || !$permissions) {
Please login to merge, or discard this patch.
src/Charcoal/User/ServiceProvider/AuthServiceProvider.php 1 patch
Spacing   +3 added lines, -3 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'       => $container['authorizer/acl'],
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             /**
61 61
              * @return Acl
62 62
              */
63
-            $container['authorizer/acl'] = function () {
63
+            $container['authorizer/acl'] = function() {
64 64
                 return new Acl();
65 65
             };
66 66
         }
Please login to merge, or discard this patch.
src/Charcoal/User/AbstractUser.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -519,7 +519,7 @@
 block discarded – undo
519 519
     /**
520 520
      * Validate the username or email address is unique.
521 521
      *
522
-     * @return boolean
522
+     * @return false|null
523 523
      */
524 524
     protected function validateLoginUnique()
525 525
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use InvalidArgumentException;
9 9
 
10 10
 // From 'charcoal-factory'
11
-use Charcoal\Factory\FactoryInterface;
12 11
 
13 12
 // From 'charcoal-core'
14 13
 use Charcoal\Validator\ValidatorInterface;
Please login to merge, or discard this patch.