@@ -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()) |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | [$cacheTime, \PDO::PARAM_STR], |
| 89 | 89 | [$cacheTime, \PDO::PARAM_STR], |
| 90 | 90 | ]; |
| 91 | - $statement0 = MockStatementFactory::createErrorStatement($this, $valuesToBind, $errorInfo); |
|
| 91 | + $statement0 = MockStatementFactory::createErrorStatement($this, $valuesToBind, $errorInfo); |
|
| 92 | 92 | |
| 93 | 93 | $this->readConnectionMock |
| 94 | 94 | ->expects($this->once()) |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | [$ipHash, \PDO::PARAM_STR], |
| 87 | 87 | [$username, \PDO::PARAM_STR], |
| 88 | 88 | ]; |
| 89 | - $statement0 = MockStatementFactory::createErrorStatement($this, $valuesToBind, $errorInfo); |
|
| 89 | + $statement0 = MockStatementFactory::createErrorStatement($this, $valuesToBind, $errorInfo); |
|
| 90 | 90 | |
| 91 | 91 | $this->readConnectionMock |
| 92 | 92 | ->expects($this->exactly(1)) |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | [$ipHash, \PDO::PARAM_STR], |
| 108 | 108 | [$username, \PDO::PARAM_STR], |
| 109 | 109 | ]; |
| 110 | - $statement0 = MockStatementFactory::createWriteStatement($this, $valuesToBind); |
|
| 110 | + $statement0 = MockStatementFactory::createWriteStatement($this, $valuesToBind); |
|
| 111 | 111 | |
| 112 | 112 | $this->writeConnectionMock |
| 113 | 113 | ->expects($this->exactly(1)) |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | [$ipHash, \PDO::PARAM_STR], |
| 134 | 134 | [$username, \PDO::PARAM_STR], |
| 135 | 135 | ]; |
| 136 | - $statement0 = MockStatementFactory::createErrorStatement($this, $valuesToBind, $errorInfo); |
|
| 136 | + $statement0 = MockStatementFactory::createErrorStatement($this, $valuesToBind, $errorInfo); |
|
| 137 | 137 | |
| 138 | 138 | $this->writeConnectionMock |
| 139 | 139 | ->expects($this->exactly(1)) |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | 'v1' => $userGroupIdentifier, |
| 34 | 34 | ], |
| 35 | 35 | ]; |
| 36 | - $statement0 = MockStatementFactory::createReadStatement($this, $valuesToBind, $returnValues); |
|
| 36 | + $statement0 = MockStatementFactory::createReadStatement($this, $valuesToBind, $returnValues); |
|
| 37 | 37 | |
| 38 | 38 | $this->readConnectionMock |
| 39 | 39 | ->expects($this->exactly(1)) |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | // phpcs:ignore |
| 135 | 135 | ], |
| 136 | 136 | ]; |
| 137 | - $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 137 | + $statement0 = MockStatementFactory::createReadStatement($this, $values, $expectedData); |
|
| 138 | 138 | |
| 139 | 139 | $this->readConnectionMock |
| 140 | 140 | ->expects($this->once()) |