@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | ['id' => $id0, 'identifier' => $identifier0, 'name' => $name0], |
| 83 | 83 | ['id' => $id1, 'identifier' => $identifier1, 'name' => $name1], |
| 84 | 84 | ]; |
| 85 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 85 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 86 | 86 | |
| 87 | 87 | $this->readConnectionMock |
| 88 | 88 | ->expects($this->once()) |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | ['id' => $id0, 'identifier' => $identifier0, 'name' => $name0], |
| 114 | 114 | ['id' => $id1, 'identifier' => $identifier1, 'name' => $name1], |
| 115 | 115 | ]; |
| 116 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 116 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 117 | 117 | |
| 118 | 118 | $this->readConnectionMock |
| 119 | 119 | ->expects($this->once()) |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | ['id' => $id0, 'user_id' => $userId0, 'description' => $description0, 'secret' => $secret0], |
| 168 | 168 | ['id' => $id1, 'user_id' => $userId1, 'description' => $description1, 'secret' => $secret1], |
| 169 | 169 | ]; |
| 170 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 170 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 171 | 171 | |
| 172 | 172 | $this->readConnectionMock |
| 173 | 173 | ->expects($this->once()) |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | 'admin_resource_identifiers' => $arIdentifier10, |
| 218 | 218 | ], |
| 219 | 219 | ]; |
| 220 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 220 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 221 | 221 | |
| 222 | 222 | $this->readConnectionMock |
| 223 | 223 | ->expects($this->once()) |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | ['id' => $id0, 'user_id' => $userId0, 'description' => $description0, 'secret' => $secret0], |
| 248 | 248 | ['id' => $id1, 'user_id' => $userId1, 'description' => $description1, 'secret' => $secret1], |
| 249 | 249 | ]; |
| 250 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 250 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 251 | 251 | |
| 252 | 252 | $this->readConnectionMock |
| 253 | 253 | ->expects($this->once()) |
@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | ['id' => $id0, 'user_id' => $userId0, 'description' => $description0, 'secret' => $secret0], |
| 281 | 281 | ['id' => $id1, 'user_id' => $userId1, 'description' => $description1, 'secret' => $secret1], |
| 282 | 282 | ]; |
| 283 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 283 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 284 | 284 | |
| 285 | 285 | $this->readConnectionMock |
| 286 | 286 | ->expects($this->once()) |
@@ -71,17 +71,17 @@ |
||
| 71 | 71 | new UserGroup('aff15988-2170-4b10-9aad-4ed2ea19f73e', 'ug-112', 'UG 112'), |
| 72 | 72 | new UserGroup('143522ce-5e0e-4abb-8c4b-67d88ba90d9d', 'ug-432', 'UG 432'), |
| 73 | 73 | ]; |
| 74 | - $userGroups = [ |
|
| 74 | + $userGroups = [ |
|
| 75 | 75 | $allUserGroups[0], |
| 76 | 76 | $allUserGroups[2], |
| 77 | 77 | ]; |
| 78 | - $allUserLanguages = [ |
|
| 78 | + $allUserLanguages = [ |
|
| 79 | 79 | new UserLanguage('5027689a-39da-4810-b0b6-2ae42e387698', 'ul-52', 'UL 52'), |
| 80 | 80 | new UserLanguage('afb423cc-6272-4ff4-8a62-e28cac6cb1d1', 'ul-77', 'UL 77'), |
| 81 | 81 | new UserLanguage('38030970-10be-4b6b-9dc6-38d6a74310ca', 'ul-93', 'UL 93'), |
| 82 | 82 | new UserLanguage('15c3f8ef-d5ff-4210-a5a2-3732f4073a1b', 'ul-94', 'UL 94'), |
| 83 | 83 | ]; |
| 84 | - $userLanguage = $allUserLanguages[1]; |
|
| 84 | + $userLanguage = $allUserLanguages[1]; |
|
| 85 | 85 | |
| 86 | 86 | $this->userGroupRepoMock->expects($this->any())->method('getAll')->willReturn($allUserGroups); |
| 87 | 87 | $this->userLanguageRepoMock->expects($this->any())->method('getAll')->willReturn($allUserLanguages); |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | new AdminResource('08e82847-9342-42ae-8563-ef2bae335c7a', 'ar-64'), |
| 57 | 57 | new AdminResource('c2d3f41c-15ba-4664-8393-8024bf650d21', 'ar-187'), |
| 58 | 58 | ]; |
| 59 | - $adminResources = [$allAdminResources[1], $allAdminResources[3]]; |
|
| 59 | + $adminResources = [$allAdminResources[1], $allAdminResources[3]]; |
|
| 60 | 60 | |
| 61 | 61 | $this->adminResourceRepoMock |
| 62 | 62 | ->expects($this->any()) |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | [$clientName, \PDO::PARAM_STR], |
| 59 | 59 | [$expiresAt->format('Y-m-d H:i:s'), \PDO::PARAM_STR], |
| 60 | 60 | ]; |
| 61 | - $statement0 = MockStatementFactory::createWriteStatement($this, $valuesToBind0); |
|
| 61 | + $statement0 = MockStatementFactory::createWriteStatement($this, $valuesToBind0); |
|
| 62 | 62 | |
| 63 | 63 | $this->writeConnectionMock |
| 64 | 64 | ->expects($this->exactly(1)) |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | [$tokenId, \PDO::PARAM_STR], |
| 155 | 155 | [$scopeIdentifier1, \PDO::PARAM_STR], |
| 156 | 156 | ]; |
| 157 | - $statement2 = MockStatementFactory::createWriteStatement($this, $valuesToBind2); |
|
| 157 | + $statement2 = MockStatementFactory::createWriteStatement($this, $valuesToBind2); |
|
| 158 | 158 | |
| 159 | 159 | $this->writeConnectionMock |
| 160 | 160 | ->expects($this->exactly(3)) |
@@ -114,12 +114,12 @@ |
||
| 114 | 114 | [$scopeIdentifier0, \PDO::PARAM_STR], |
| 115 | 115 | [$scopeIdentifier1, \PDO::PARAM_STR], |
| 116 | 116 | ]; |
| 117 | - $rows0 = [ |
|
| 117 | + $rows0 = [ |
|
| 118 | 118 | ['admin_resource_id' => $arId0], |
| 119 | 119 | ['admin_resource_id' => $arId1], |
| 120 | 120 | ['admin_resource_id' => $arId2], |
| 121 | 121 | ]; |
| 122 | - $statement0 = MockStatementFactory::createReadStatement($this, $valuesToBind0, $rows0); |
|
| 122 | + $statement0 = MockStatementFactory::createReadStatement($this, $valuesToBind0, $rows0); |
|
| 123 | 123 | |
| 124 | 124 | $this->readConnectionMock |
| 125 | 125 | ->expects($this->once()) |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | $rulesFactoryMock |
| 42 | 42 | ->expects($testCase->any()) |
| 43 | 43 | ->method('createRules') |
| 44 | - ->willReturnCallback(function () use ($rulesMock) { |
|
| 44 | + ->willReturnCallback(function() use ($rulesMock) { |
|
| 45 | 45 | return clone $rulesMock; |
| 46 | 46 | }); |
| 47 | 47 | |
@@ -72,14 +72,14 @@ discard block |
||
| 72 | 72 | $ruleExtensionRegistryStub |
| 73 | 73 | ->expects($testCase->any()) |
| 74 | 74 | ->method('hasRule') |
| 75 | - ->willReturnCallback(function (string $methodName) use ($rules): bool { |
|
| 75 | + ->willReturnCallback(function(string $methodName) use ($rules): bool { |
|
| 76 | 76 | return array_key_exists($methodName, $rules); |
| 77 | 77 | }); |
| 78 | 78 | |
| 79 | 79 | $ruleExtensionRegistryStub |
| 80 | 80 | ->expects($testCase->any()) |
| 81 | 81 | ->method('getRule') |
| 82 | - ->willReturnCallback(function (string $methodName) use ($rules): IRule { |
|
| 82 | + ->willReturnCallback(function(string $methodName) use ($rules): IRule { |
|
| 83 | 83 | return $rules[$methodName]; |
| 84 | 84 | }); |
| 85 | 85 | |
@@ -71,17 +71,17 @@ |
||
| 71 | 71 | new UserGroup('aff15988-2170-4b10-9aad-4ed2ea19f73e', 'ug-112', 'UG 112'), |
| 72 | 72 | new UserGroup('143522ce-5e0e-4abb-8c4b-67d88ba90d9d', 'ug-432', 'UG 432'), |
| 73 | 73 | ]; |
| 74 | - $userGroups = [ |
|
| 74 | + $userGroups = [ |
|
| 75 | 75 | $allUserGroups[0], |
| 76 | 76 | $allUserGroups[2], |
| 77 | 77 | ]; |
| 78 | - $allUserLanguages = [ |
|
| 78 | + $allUserLanguages = [ |
|
| 79 | 79 | new UserLanguage('5027689a-39da-4810-b0b6-2ae42e387698', 'ul-52', 'UL 52'), |
| 80 | 80 | new UserLanguage('afb423cc-6272-4ff4-8a62-e28cac6cb1d1', 'ul-77', 'UL 77'), |
| 81 | 81 | new UserLanguage('38030970-10be-4b6b-9dc6-38d6a74310ca', 'ul-93', 'UL 93'), |
| 82 | 82 | new UserLanguage('15c3f8ef-d5ff-4210-a5a2-3732f4073a1b', 'ul-94', 'UL 94'), |
| 83 | 83 | ]; |
| 84 | - $userLanguage = $allUserLanguages[1]; |
|
| 84 | + $userLanguage = $allUserLanguages[1]; |
|
| 85 | 85 | |
| 86 | 86 | $this->userGroupRepoMock->expects($this->any())->method('getAll')->willReturn($allUserGroups); |
| 87 | 87 | $this->userLanguageRepoMock->expects($this->any())->method('getAll')->willReturn($allUserLanguages); |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | new AdminResource('08e82847-9342-42ae-8563-ef2bae335c7a', 'ar-64'), |
| 57 | 57 | new AdminResource('c2d3f41c-15ba-4664-8393-8024bf650d21', 'ar-187'), |
| 58 | 58 | ]; |
| 59 | - $adminResources = [$allAdminResources[1], $allAdminResources[3]]; |
|
| 59 | + $adminResources = [$allAdminResources[1], $allAdminResources[3]]; |
|
| 60 | 60 | |
| 61 | 61 | $this->adminResourceRepoMock |
| 62 | 62 | ->expects($this->any()) |