Passed
Branch master (88b79b)
by Liaw
03:55
created
autoload.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 // if library is in dev environement with its own vendor, include its autoload
4
-if(file_exists(__DIR__ . '/vendor'))
5
-    require_once __DIR__ . '/vendor/autoload.php';
4
+if (file_exists(__DIR__.'/vendor'))
5
+    require_once __DIR__.'/vendor/autoload.php';
6 6
 // if library is in vendor of another project, include the global autolaod
7 7
 else
8
-    require_once __DIR__ . '/../../autoload.php';
8
+    require_once __DIR__.'/../../autoload.php';
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,8 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 // if library is in dev environement with its own vendor, include its autoload
4
-if(file_exists(__DIR__ . '/vendor'))
5
-    require_once __DIR__ . '/vendor/autoload.php';
4
+if(file_exists(__DIR__ . '/vendor')) {
5
+    require_once __DIR__ . '/vendor/autoload.php';
6
+}
6 7
 // if library is in vendor of another project, include the global autolaod
7
-else
8
-    require_once __DIR__ . '/../../autoload.php';
8
+else {
9
+    require_once __DIR__ . '/../../autoload.php';
10
+}
Please login to merge, or discard this patch.
web/sp/_config.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
         $buildContainer->getPimple()->register(new \LightSaml\Bridge\Pimple\Container\Factory\SystemContainerProvider());
59 59
 
60 60
         $pimple = $buildContainer->getPimple();
61
-        $pimple[\LightSaml\Bridge\Pimple\Container\SystemContainer::LOGGER] = function () {
61
+        $pimple[\LightSaml\Bridge\Pimple\Container\SystemContainer::LOGGER] = function() {
62 62
             return $this->buildLogger();
63 63
 
64 64
         };
65
-        $pimple[\LightSaml\Bridge\Pimple\Container\SystemContainer::SESSION] = function () {
65
+        $pimple[\LightSaml\Bridge\Pimple\Container\SystemContainer::SESSION] = function() {
66 66
             return $this->buildSession();
67 67
 
68 68
         };
@@ -73,10 +73,10 @@  discard block
 block discarded – undo
73 73
         $buildContainer->getPimple()->register(new \LightSaml\Bridge\Pimple\Container\Factory\PartyContainerProvider());
74 74
 
75 75
         $pimple = $buildContainer->getPimple();
76
-        $pimple[\LightSaml\Bridge\Pimple\Container\PartyContainer::IDP_ENTITY_DESCRIPTOR] = function () {
76
+        $pimple[\LightSaml\Bridge\Pimple\Container\PartyContainer::IDP_ENTITY_DESCRIPTOR] = function() {
77 77
             return $this->buildIdpEntityStore();
78 78
         };
79
-        $pimple[\LightSaml\Bridge\Pimple\Container\PartyContainer::TRUST_OPTIONS_STORE] = function () {
79
+        $pimple[\LightSaml\Bridge\Pimple\Container\PartyContainer::TRUST_OPTIONS_STORE] = function() {
80 80
             $trustOptions = new \LightSaml\Meta\TrustOptions\TrustOptions();
81 81
             $trustOptions->setSignAuthnRequest(true);
82 82
 
Please login to merge, or discard this patch.
web/sp/login.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 $buildContainer->getSystemContainer()->getEventDispatcher()
15 15
     ->addListener(
16 16
         \LightSaml\Event\BindingMessageSent::NAME,
17
-        function (\LightSaml\Event\BindingMessageSent $event) {
17
+        function(\LightSaml\Event\BindingMessageSent $event) {
18 18
 //            var_dump($event->getMessageString());
19 19
 //            exit;
20 20
         }
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 $buildContainer->getSystemContainer()->getEventDispatcher()
23 23
     ->addListener(
24 24
         \LightSaml\Event\BeforeEncrypt::NAME,
25
-        function (\LightSaml\Event\BeforeEncrypt $event) {
25
+        function(\LightSaml\Event\BeforeEncrypt $event) {
26 26
             /** @var \LightSaml\Context\Profile\ProfileContext $context */
27 27
             $context = $event->getContext();
28 28
             $context->getOutboundMessage()->setRelayState('relayState');
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
 $context = $builder->buildContext();
33 33
 $action = $builder->buildAction();
34
-$action->map(function (\LightSaml\Action\ActionInterface $action) use ($buildContainer) {
34
+$action->map(function(\LightSaml\Action\ActionInterface $action) use ($buildContainer) {
35 35
     return new \LightSaml\Action\LoggableAction($action, $buildContainer->getSystemContainer()->getLogger());
36 36
 });
37 37
 
Please login to merge, or discard this patch.
src/LightSaml/Bridge/Pimple/Container/Factory/PartyContainerProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,15 +25,15 @@
 block discarded – undo
25 25
      */
26 26
     public function register(Container $pimple)
27 27
     {
28
-        $pimple[PartyContainer::IDP_ENTITY_DESCRIPTOR] = function () {
28
+        $pimple[PartyContainer::IDP_ENTITY_DESCRIPTOR] = function() {
29 29
             return new FixedEntityDescriptorStore();
30 30
         };
31 31
 
32
-        $pimple[PartyContainer::SP_ENTITY_DESCRIPTOR] = function () {
32
+        $pimple[PartyContainer::SP_ENTITY_DESCRIPTOR] = function() {
33 33
             return new FixedEntityDescriptorStore();
34 34
         };
35 35
 
36
-        $pimple[PartyContainer::TRUST_OPTIONS_STORE] = function () {
36
+        $pimple[PartyContainer::TRUST_OPTIONS_STORE] = function() {
37 37
             return new FixedTrustOptionsStore(new TrustOptions());
38 38
         };
39 39
     }
Please login to merge, or discard this patch.
src/LightSaml/Bridge/Pimple/Container/Factory/StoreContainerProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,15 +34,15 @@
 block discarded – undo
34 34
      */
35 35
     public function register(Container $pimple)
36 36
     {
37
-        $pimple[StoreContainer::REQUEST_STATE_STORE] = function () {
37
+        $pimple[StoreContainer::REQUEST_STATE_STORE] = function() {
38 38
             return new RequestStateSessionStore($this->systemContainer->getSession(), 'main');
39 39
         };
40 40
 
41
-        $pimple[StoreContainer::ID_STATE_STORE] = function () {
41
+        $pimple[StoreContainer::ID_STATE_STORE] = function() {
42 42
             return new NullIdStore();
43 43
         };
44 44
 
45
-        $pimple[StoreContainer::SSO_STATE_STORE] = function () {
45
+        $pimple[StoreContainer::SSO_STATE_STORE] = function() {
46 46
             return new SsoStateSessionStore($this->systemContainer->getSession(), 'samlsso');
47 47
         };
48 48
     }
Please login to merge, or discard this patch.
src/LightSaml/Bridge/Pimple/Container/Factory/OwnContainerProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,11 +61,11 @@
 block discarded – undo
61 61
      */
62 62
     public function register(Container $pimple)
63 63
     {
64
-        $pimple[OwnContainer::OWN_CREDENTIALS] = function () {
64
+        $pimple[OwnContainer::OWN_CREDENTIALS] = function() {
65 65
             return $this->ownCredentials;
66 66
         };
67 67
 
68
-        $pimple[OwnContainer::OWN_ENTITY_DESCRIPTOR_PROVIDER] = function () {
68
+        $pimple[OwnContainer::OWN_ENTITY_DESCRIPTOR_PROVIDER] = function() {
69 69
             return $this->ownEntityDescriptorProvider;
70 70
         };
71 71
     }
Please login to merge, or discard this patch.
src/LightSaml/Bridge/Pimple/Container/Factory/ProviderContainerProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,15 +23,15 @@
 block discarded – undo
23 23
      */
24 24
     public function register(Container $pimple)
25 25
     {
26
-        $pimple[ProviderContainer::ATTRIBUTE_VALUE_PROVIDER] = function () {
26
+        $pimple[ProviderContainer::ATTRIBUTE_VALUE_PROVIDER] = function() {
27 27
             throw new LightSamlBuildException('Attribute value provider not set');
28 28
         };
29 29
 
30
-        $pimple[ProviderContainer::SESSION_INFO_PROVIDER] = function () {
30
+        $pimple[ProviderContainer::SESSION_INFO_PROVIDER] = function() {
31 31
             throw new LightSamlBuildException('Session info provider not set');
32 32
         };
33 33
 
34
-        $pimple[ProviderContainer::NAME_ID_PROVIDER] = function () {
34
+        $pimple[ProviderContainer::NAME_ID_PROVIDER] = function() {
35 35
             throw new LightSamlBuildException('Name ID provider not set');
36 36
         };
37 37
     }
Please login to merge, or discard this patch.
src/LightSaml/Bridge/Pimple/Container/Factory/SystemContainerProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function register(Container $pimple)
38 38
     {
39
-        $pimple[SystemContainer::REQUEST] = function () {
39
+        $pimple[SystemContainer::REQUEST] = function() {
40 40
             return Request::createFromGlobals();
41 41
         };
42 42
 
43
-        $pimple[SystemContainer::SESSION] = function () {
43
+        $pimple[SystemContainer::SESSION] = function() {
44 44
             if ($this->mockSession) {
45 45
                 $session = new Session(new MockArraySessionStorage());
46 46
             } else {
@@ -52,15 +52,15 @@  discard block
 block discarded – undo
52 52
             return $session;
53 53
         };
54 54
 
55
-        $pimple[SystemContainer::TIME_PROVIDER] = function () {
55
+        $pimple[SystemContainer::TIME_PROVIDER] = function() {
56 56
             return new SystemTimeProvider();
57 57
         };
58 58
 
59
-        $pimple[SystemContainer::EVENT_DISPATCHER] = function () {
59
+        $pimple[SystemContainer::EVENT_DISPATCHER] = function() {
60 60
             return new EventDispatcher();
61 61
         };
62 62
 
63
-        $pimple[SystemContainer::LOGGER] = function () {
63
+        $pimple[SystemContainer::LOGGER] = function() {
64 64
             return new NullLogger();
65 65
         };
66 66
     }
Please login to merge, or discard this patch.
LightSaml/Bridge/Pimple/Container/Factory/CredentialContainerProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
             throw new LightSamlBuildException('There are no own credentials');
68 68
         }
69 69
 
70
-        $pimple[CredentialContainer::CREDENTIAL_STORE] = function () {
70
+        $pimple[CredentialContainer::CREDENTIAL_STORE] = function() {
71 71
             $factory = new CredentialFactory();
72 72
 
73 73
             return $factory->build(
Please login to merge, or discard this patch.