@@ -40,7 +40,7 @@ |
||
40 | 40 | $endpointResolverMock->expects($this->once()) |
41 | 41 | ->method('resolve') |
42 | 42 | ->with($this->isInstanceOf(CriteriaSet::class), $this->isType('array')) |
43 | - ->willReturnCallback(function (CriteriaSet $criteriaSet, array $candidates) { |
|
43 | + ->willReturnCallback(function(CriteriaSet $criteriaSet, array $candidates) { |
|
44 | 44 | $this->assertTrue($criteriaSet->has(DescriptorTypeCriteria::class)); |
45 | 45 | $this->assertEquals(SpSsoDescriptor::class, $criteriaSet->getSingle(DescriptorTypeCriteria::class)->getDescriptorType()); |
46 | 46 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | $requestStateStoreMock->expects($this->once()) |
29 | 29 | ->method('set') |
30 | 30 | ->with($this->isInstanceOf(RequestState::class)) |
31 | - ->willReturnCallback(function (RequestState $requestState) use ($id) { |
|
31 | + ->willReturnCallback(function(RequestState $requestState) use ($id) { |
|
32 | 32 | $this->assertEquals($id, $requestState->getId()); |
33 | 33 | }) |
34 | 34 | ; |
@@ -222,7 +222,7 @@ |
||
222 | 222 | $profileContext->addSubContext('assertion_01', $assertionSubContext01 = new AssertionContext()); |
223 | 223 | $assertionSubContext01->addSubContext('rs', new RequestStateContext()); |
224 | 224 | |
225 | - $actual = (string)$profileContext; |
|
225 | + $actual = (string) $profileContext; |
|
226 | 226 | |
227 | 227 | $expected = <<<EOT |
228 | 228 | { |
@@ -198,14 +198,14 @@ discard block |
||
198 | 198 | // SYSTEM |
199 | 199 | $buildContainer->getPimple()->register(new \LightSaml\Bridge\Pimple\Container\Factory\SystemContainerProvider(true)); |
200 | 200 | if ($timeProvider) { |
201 | - $pimple[SystemContainer::TIME_PROVIDER] = function () use ($timeProvider) { |
|
201 | + $pimple[SystemContainer::TIME_PROVIDER] = function() use ($timeProvider) { |
|
202 | 202 | return $timeProvider; |
203 | 203 | }; |
204 | 204 | } |
205 | 205 | |
206 | 206 | // PARTY |
207 | 207 | $buildContainer->getPimple()->register(new \LightSaml\Bridge\Pimple\Container\Factory\PartyContainerProvider()); |
208 | - $pimple[PartyContainer::IDP_ENTITY_DESCRIPTOR] = function () { |
|
208 | + $pimple[PartyContainer::IDP_ENTITY_DESCRIPTOR] = function() { |
|
209 | 209 | $idpProvider = new \LightSaml\Store\EntityDescriptor\FixedEntityDescriptorStore(); |
210 | 210 | $idpProvider->add( |
211 | 211 | \LightSaml\Model\Metadata\EntitiesDescriptor::load(__DIR__.'/../../../../../../web/sp/testshib-providers.xml') |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | ) |
228 | 228 | ); |
229 | 229 | if ($inResponseTo) { |
230 | - $pimple[StoreContainer::REQUEST_STATE_STORE] = function () use ($inResponseTo) { |
|
230 | + $pimple[StoreContainer::REQUEST_STATE_STORE] = function() use ($inResponseTo) { |
|
231 | 231 | $store = new RequestStateArrayStore(); |
232 | 232 | $store->set(new RequestState($inResponseTo)); |
233 | 233 |
@@ -164,6 +164,9 @@ |
||
164 | 164 | $this->assertInstanceOf(\LightSaml\Store\EntityDescriptor\EntityDescriptorStoreInterface::class, $buildContainer->getPartyContainer()->getSpEntityDescriptorStore()); |
165 | 165 | } |
166 | 166 | |
167 | + /** |
|
168 | + * @param string $inResponseTo |
|
169 | + */ |
|
167 | 170 | private function getBuildContainer($inResponseTo = null, TimeProviderInterface $timeProvider = null) |
168 | 171 | { |
169 | 172 | $buildContainer = new BuildContainer($pimple = new Container()); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | $sessionMock->method('set') |
21 | 21 | ->with('main_saml_request_state_', $this->isType('array')) |
22 | - ->willReturnCallback(function ($name, $value) use ($requestState) { |
|
22 | + ->willReturnCallback(function($name, $value) use ($requestState) { |
|
23 | 23 | $this->assertArrayHasKey('aaa', $value); |
24 | 24 | $this->assertSame($requestState, $value['aaa']); |
25 | 25 | }); |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace LightSaml\Tests\Store\Request; |
4 | 4 | |
5 | -use LightSaml\Meta\ParameterBag; |
|
6 | 5 | use LightSaml\State\Request\RequestState; |
7 | 6 | use LightSaml\Store\Request\RequestStateSessionStore; |
8 | 7 | use LightSaml\Tests\BaseTestCase; |
@@ -113,7 +113,7 @@ |
||
113 | 113 | $this->assertEquals(43, strlen($id)); |
114 | 114 | |
115 | 115 | $arr = array(); |
116 | - for ($i = 0; $i<strlen($id); $i++) { |
|
116 | + for ($i = 0; $i < strlen($id); $i++) { |
|
117 | 117 | $ch = $id[$i]; |
118 | 118 | $arr[$ch] = true; |
119 | 119 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
55 | - * @param int|\DateTime|string $notOnOrAfter |
|
55 | + * @param \DateTime $notOnOrAfter |
|
56 | 56 | * |
57 | 57 | * @return LogoutRequest |
58 | 58 | */ |
@@ -18,8 +18,6 @@ |
||
18 | 18 | use LightSaml\Model\Assertion\SubjectConfirmation; |
19 | 19 | use LightSaml\Model\Assertion\SubjectConfirmationData; |
20 | 20 | use LightSaml\Model\Protocol\Response; |
21 | -use LightSaml\Model\Protocol\Status; |
|
22 | -use LightSaml\Model\Protocol\StatusCode; |
|
23 | 21 | use LightSaml\Model\XmlDSig\SignatureWriter; |
24 | 22 | use LightSaml\SamlConstants; |
25 | 23 | use LightSaml\Credential\KeyHelper; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | protected $subject; |
57 | 57 | |
58 | 58 | /** |
59 | - * @param Subject|null $subject |
|
59 | + * @param Subject $subject |
|
60 | 60 | * |
61 | 61 | * @return AuthnRequest |
62 | 62 | */ |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
119 | - * @param NameIDPolicy|null $nameIDPolicy |
|
119 | + * @param NameIDPolicy $nameIDPolicy |
|
120 | 120 | * |
121 | 121 | * @return AuthnRequest |
122 | 122 | */ |