Passed
Push — master ( 007c76...c983ad )
by Dominik
05:09
created
src/Authentication/FormAuthentication.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
     /**
109 109
      * @param Request $request
110 110
      *
111
-     * @return UserPasswordInterface|null
111
+     * @return null|\Chubbyphp\Model\ModelInterface
112 112
      */
113 113
     public function getAuthenticatedUser(Request $request)
114 114
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\Security\Authentication;
6 6
 
Please login to merge, or discard this patch.
src/Authorization/AuthorizationStack.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\Security\Authorization;
6 6
 
Please login to merge, or discard this patch.
src/Authentication/AuthenticationProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\Security\Authentication;
6 6
 
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      */
15 15
     public function register(Container $container)
16 16
     {
17
-        $container['security.authentication.passwordmanager'] = function () {
17
+        $container['security.authentication.passwordmanager'] = function() {
18 18
             return new PasswordManager();
19 19
         };
20 20
 
@@ -27,11 +27,11 @@  discard block
 block discarded – undo
27 27
      */
28 28
     private function registerAuthentication(Container $container)
29 29
     {
30
-        $container['security.authentication.authentications'] = function () {
30
+        $container['security.authentication.authentications'] = function() {
31 31
             return [];
32 32
         };
33 33
 
34
-        $container['security.authentication'] = function () use ($container) {
34
+        $container['security.authentication'] = function() use ($container) {
35 35
             return new AuthenticationStack($container['security.authentication.authentications']);
36 36
         };
37 37
     }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     private function registerMiddleware(Container $container)
43 43
     {
44
-        $container['security.authentication.middleware'] = function () use ($container) {
44
+        $container['security.authentication.middleware'] = function() use ($container) {
45 45
             return new AuthenticationMiddleware($container['security.authentication']);
46 46
         };
47 47
     }
Please login to merge, or discard this patch.
src/Authentication/Exception/AuthenticationExceptionInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\Security\Authentication\Exception;
6 6
 
Please login to merge, or discard this patch.
src/UserInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\Security;
6 6
 
Please login to merge, or discard this patch.
src/Authorization/RoleAuthorization.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\Security\Authorization;
6 6
 
Please login to merge, or discard this patch.
src/Authorization/RoleHierarchyResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\Security\Authorization;
6 6
 
Please login to merge, or discard this patch.
src/Authorization/AuthorizationInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\Security\Authorization;
6 6
 
Please login to merge, or discard this patch.
src/Authorization/AuthorizationProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\Security\Authorization;
6 6
 
@@ -16,11 +16,11 @@  discard block
 block discarded – undo
16 16
     {
17 17
         $this->registerRoleHierarchyResolver($container);
18 18
 
19
-        $container['security.authorization.authorizations'] = function () use ($container) {
19
+        $container['security.authorization.authorizations'] = function() use ($container) {
20 20
             return [];
21 21
         };
22 22
 
23
-        $container['security.authorization'] = function () use ($container) {
23
+        $container['security.authorization'] = function() use ($container) {
24 24
             return new AuthorizationStack($container['security.authorization.authorizations']);
25 25
         };
26 26
     }
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
30 30
      */
31 31
     private function registerRoleHierarchyResolver(Container $container)
32 32
     {
33
-        $container['security.authorization.rolehierarchy'] = function () use ($container) {
33
+        $container['security.authorization.rolehierarchy'] = function() use ($container) {
34 34
             return [];
35 35
         };
36 36
 
37
-        $container['security.authorization.rolehierarchyresolver'] = function () use ($container) {
37
+        $container['security.authorization.rolehierarchyresolver'] = function() use ($container) {
38 38
             return new RoleHierarchyResolver(
39 39
                 $container['security.authorization.rolehierarchy'],
40 40
                 $container['logger'] ?? null
Please login to merge, or discard this patch.