@@ -137,7 +137,7 @@ |
||
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 | { |
@@ -92,7 +92,7 @@ |
||
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 | { |
@@ -33,7 +33,7 @@ |
||
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) { |
@@ -42,7 +42,7 @@ |
||
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 | { |
@@ -32,7 +32,7 @@ |
||
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 | }) |
@@ -70,7 +70,7 @@ |
||
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 | { |
@@ -78,7 +78,7 @@ |
||
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 | }) |
@@ -164,7 +164,7 @@ |
||
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 | { |
@@ -58,11 +58,11 @@ discard block |
||
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 |
||
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 |
@@ -14,7 +14,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -34,15 +34,15 @@ |
||
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 | } |
@@ -67,7 +67,7 @@ |
||
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( |