Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit bab5e31

Browse files
committed
Fix issues of static code checks
1 parent b2146db commit bab5e31

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

setup/src/Magento/Setup/Model/ConfigGenerator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ public function createCacheHostsConfig(array $data)
256256
* @param string $hostData
257257
*
258258
* @return array
259+
*
260+
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
259261
*/
260262
private function mapHostData(string $hostData) : array
261263
{

setup/src/Magento/Setup/Test/Unit/Model/ConfigGeneratorTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,5 @@ public function testCreateCryptKeyConfig()
140140
->with(ConfigOptionsListConstants::CONFIG_PATH_CRYPT_KEY, $key);
141141

142142
$this->model->createCryptConfig($data);
143-
144143
}
145144
}

setup/src/Magento/Setup/Test/Unit/Module/ConfigGeneratorTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ protected function setUp()
4444
$configDataFactoryMock = (new ObjectManager($this))
4545
->getObject(ConfigDataFactory::class, ['objectManager' => $objectManagerMock]);
4646

47-
$this->configGeneratorObject = new ConfigGenerator($randomMock, $deployConfig, $configDataFactoryMock, $cryptKeyGenerator);
47+
$this->configGeneratorObject = new ConfigGenerator(
48+
$randomMock,
49+
$deployConfig,
50+
$configDataFactoryMock,
51+
$cryptKeyGenerator
52+
);
4853
}
4954

5055
public function testCreateCryptConfigWithInput()

0 commit comments

Comments
 (0)