Completed
Pull Request — master (#6)
by Chauncey
05:25
created
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 1 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.
src/Charcoal/User/AuthAwareTrait.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     private $requiredAclPermissions;
30 30
 
31 31
     /**
32
-     * @return boolean
32
+     * @return boolean|null
33 33
      */
34 34
     public function isAuthorized()
35 35
     {
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     /**
40 40
      * @param  array|null $permissions The list of required permissions to check.
41
-     * @return boolean
41
+     * @return boolean|null
42 42
      */
43 43
     public function hasPermissions($permissions)
44 44
     {
Please login to merge, or discard this patch.