Completed
Push — master ( 3ba758...b5e37b )
by Liaw
02:27
created
Action/Profile/Inbound/Message/MessageSignatureValidatorActionTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
     }
138 138
 
139 139
     /**
140
-     * @return \PHPUnit_Framework_MockObject_MockObject|\LightSaml\Validator\Model\Signature\SignatureValidatorInterface
140
+     * @return SignatureValidatorInterface
141 141
      */
142 142
     private function getSignatureValidatorMock()
143 143
     {
Please login to merge, or discard this patch.
LightSaml/Tests/Action/Profile/Inbound/Response/AssertionActionTest.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
     }
93 93
 
94 94
     /**
95
-     * @return \PHPUnit_Framework_MockObject_MockObject|\LightSaml\Action\ActionInterface
95
+     * @return \LightSaml\Action\ActionInterface
96 96
      */
97 97
     private function getActionMock()
98 98
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         $assertionActionMock->expects($this->exactly(2))
34 34
             ->method('execute')
35 35
             ->with($this->isInstanceOf(AssertionContext::class))
36
-            ->willReturnCallback(function (AssertionContext $assertionContext) use (&$assertion1, &$assertion2, &$assertion1Called, &$assertion2Called) {
36
+            ->willReturnCallback(function(AssertionContext $assertionContext) use (&$assertion1, &$assertion2, &$assertion1Called, &$assertion2Called) {
37 37
                 if ($assertionContext->getAssertion() === $assertion1) {
38 38
                     $assertion1Called = true;
39 39
                 } elseif ($assertionContext->getAssertion() === $assertion2) {
Please login to merge, or discard this patch.
LightSaml/Tests/Action/Profile/Inbound/Response/SpSsoStateActionTest.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     }
43 43
 
44 44
     /**
45
-     * @return \PHPUnit_Framework_MockObject_MockObject|\LightSaml\Resolver\Session\SessionProcessorInterface
45
+     * @return \LightSaml\Resolver\Session\SessionProcessorInterface
46 46
      */
47 47
     private function getSessionProcessorMock()
48 48
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $sessionProcessorMock->expects($this->once())
33 33
             ->method('processAssertions')
34 34
             ->with($this->isType('array'), $ownEntityId, $partyEntityId)
35
-            ->willReturnCallback(function (array $assertions, $ownId, $partyId) use ($assertion1, $assertion2) {
35
+            ->willReturnCallback(function(array $assertions, $ownId, $partyId) use ($assertion1, $assertion2) {
36 36
                 $this->assertSame($assertion1, $assertions[0]);
37 37
                 $this->assertSame($assertion2, $assertions[1]);
38 38
             })
Please login to merge, or discard this patch.
tests/LightSaml/Tests/Builder/Action/CompositeActionBuilderTest.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
      * @param int $expectedOrder
71 71
      * @param int $order
72 72
      *
73
-     * @return \PHPUnit_Framework_MockObject_MockObject|ActionInterface
73
+     * @return ActionInterface
74 74
      */
75 75
     private function getActionMock($expectedOrder, &$order)
76 76
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
         $action = $this->getMockBuilder(ActionInterface::class)->getMock();
79 79
         $action->expects($this->once())
80 80
             ->method('execute')
81
-            ->willReturnCallback(function () use ($expectedOrder, &$order) {
81
+            ->willReturnCallback(function() use ($expectedOrder, &$order) {
82 82
                 $this->assertEquals($expectedOrder, $order);
83 83
                 $order++;
84 84
             })
Please login to merge, or discard this patch.
tests/LightSaml/Tests/Validator/Model/Subject/SubjectValidatorTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
     }
165 165
 
166 166
     /**
167
-     * @return \PHPUnit_Framework_MockObject_MockObject|\LightSaml\Validator\Model\NameId\NameIdValidatorInterface
167
+     * @return \LightSaml\Validator\Model\NameId\NameIdValidatorInterface
168 168
      */
169 169
     public function getNameIdValidatorMock()
170 170
     {
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\Events::BINDING_MESSAGE_SENT,
17
-        function (\Symfony\Component\EventDispatcher\GenericEvent $event) {
17
+        function(\Symfony\Component\EventDispatcher\GenericEvent $event) {
18 18
             //var_dump($event->getSubject());
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\Events::BEFORE_ENCRYPT,
25
-        function (\Symfony\Component\EventDispatcher\GenericEvent $event) {
25
+        function(\Symfony\Component\EventDispatcher\GenericEvent $event) {
26 26
             /** @var \LightSaml\Context\Profile\ProfileContext $context */
27 27
             $context = $event->getSubject();
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/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.
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.