Skip to content

Commit b64a485

Browse files
author
Vitaliy Boyko
committed
GraphQl-972: static fix
1 parent 63bd232 commit b64a485

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

dev/tests/api-functional/framework/Magento/TestFramework/App/ApiMutableScopeConfig.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,12 @@ private function persistConfig($path, $value, $scopeType, $scopeCode): void
8989
{
9090
$pathParts = explode('/', $path);
9191
$store = 0;
92-
if ($scopeType === \Magento\Store\Model\ScopeInterface::SCOPE_STORE) {
93-
if ($scopeCode !== null) {
94-
$store = ObjectManager::getInstance()
92+
if ($scopeType === \Magento\Store\Model\ScopeInterface::SCOPE_STORE
93+
&& $scopeCode !== null) {
94+
$store = ObjectManager::getInstance()
9595
->get(\Magento\Store\Api\StoreRepositoryInterface::class)
9696
->get($scopeCode)
9797
->getId();
98-
}
9998
}
10099
$configData = [
101100
'section' => $pathParts[0],

0 commit comments

Comments
 (0)