Skip to content

Commit d22bee9

Browse files
committed
review changes
1 parent 7e2505e commit d22bee9

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

src/Config/Factory/Cache.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -151,37 +151,37 @@ public function get(): array
151151
$envCacheBackendModel = (string)$this->stageConfig->get(DeployInterface::VAR_CACHE_REDIS_BACKEND);
152152

153153
if ($this->isSynchronizedConfigStructure()) {
154-
$cacheCache = $this->getSynchronizedConfigStructure($envCacheBackendModel, $backendConfig);
155-
$cacheCache['backend_options']['remote_backend_options'] = array_merge(
156-
$cacheCache['backend_options']['remote_backend_options'],
157-
$this->getSlaveConnection($envCacheConfiguration, $backendConfig)
158-
);
154+
$cacheCacheBackend = $this->getSynchronizedConfigStructure($envCacheBackendModel, $backendConfig);
155+
$cacheCacheBackend['backend_options']['remote_backend_options'] = array_merge(
156+
$cacheCacheBackend['backend_options']['remote_backend_options'],
157+
$this->getSlaveConnection($envCacheConfiguration, $backendConfig)
158+
);
159159
$finalConfig = [
160160
'frontend' => [
161-
'default' => $cacheCache,
161+
'default' => $cacheCacheBackend,
162162
],
163163
'type' => [
164164
'default' => ['frontend' => 'default'],
165165
],
166166
];
167167
} else {
168-
$cacheCache = $this->getUnsyncedConfigStructure($envCacheBackendModel, $backendConfig);
168+
$cacheCacheBackend = $this->getUnsyncedConfigStructure($envCacheBackendModel, $backendConfig);
169169
$slaveConnection = $this->getSlaveConnection($envCacheConfiguration, $backendConfig);
170170
if ($slaveConnection) {
171-
$cacheCache['frontend_options']['write_control'] = false;
172-
$cacheCache['backend_options'] = array_merge(
173-
$cacheCache['backend_options'],
174-
$slaveConnection
175-
);
171+
$cacheCacheBackend['frontend_options']['write_control'] = false;
172+
$cacheCacheBackend['backend_options'] = array_merge(
173+
$cacheCacheBackend['backend_options'],
174+
$slaveConnection
175+
);
176176
}
177177
$finalConfig = [
178178
'frontend' => [
179179
'default' => array_replace_recursive(
180-
$cacheCache,
180+
$cacheCacheBackend,
181181
['backend_options' => ['database' => self::CACHE_DATABASE_DEFAULT]]
182182
),
183183
'page_cache' => array_replace_recursive(
184-
$cacheCache,
184+
$cacheCacheBackend,
185185
['backend_options' => ['database' => self::CACHE_DATABASE_PAGE_CACHE]]
186186
),
187187
]

src/Step/Deploy/InstallUpdate/ConfigUpdate/Session/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ class Config
4141
/**
4242
* @var Valkey
4343
*/
44-
private $valkey;
44+
private Valkey $valkey;
4545

4646
/**
4747
* @var ValkeySession
4848
*/
49-
private $valkeySession;
49+
private ValkeySession $valkeySession;
5050

5151
/**
5252
* @var DeployInterface

src/Step/Deploy/PreDeploy/ConfigUpdate/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function execute()
125125
$this->logger->info('Cache configuration was not found. Removing cache configuration.');
126126
unset($config['cache']);
127127
} elseif (empty($cacheConfig['frontend'])) {
128-
$isRedisConfigured = !empty($cacheConfig['frontend']['default']['_custom_redis_backend']);
128+
$isRedisConfigured = !empty($cacheConfig['frontend']['default']['_custom_redis_backend']);
129129
$isValkeyConfigured = !empty($cacheConfig['frontend']['default']['_custom_valkey_backend']);
130130
if ($isRedisConfigured) {
131131
$this->logger->warning(

src/Test/Unit/Service/EolValidatorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,12 @@ public function testValidateServiceEol()
172172
$service6->expects($this->once())
173173
->method('getVersion')
174174
->willReturn('10.2');
175-
$service7 = $this->createMock(ServiceInterface::class);
176-
$service7->expects($this->once())
175+
$service7 = $this->createMock(ServiceInterface::class);
176+
$service7->expects($this->once())
177177
->method('getVersion')
178178
->willReturn('8.0');
179-
$service8 = $this->createMock(ServiceInterface::class);
180-
$service8->expects($this->once())
179+
$service8 = $this->createMock(ServiceInterface::class);
180+
$service8->expects($this->once())
181181
->method('getVersion')
182182
->willReturn('8.0');
183183
// withConsecutive() alternative.

0 commit comments

Comments
 (0)