Skip to content

Commit 6d0871e

Browse files
committed
Fix PHPCS Errors
- Formatting fixes to fix static-checks.
1 parent 199d630 commit 6d0871e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Magento/FunctionalTestingFramework/DataGenerator/Persist/DataPersistenceHandler.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,13 @@ private function convertToFlatArray($arrayIn, $rootKey = '')
237237
* 'attribute_code' => 'code1',
238238
* 'value' => 'value1',
239239
* ],
240-
1 => [
240+
* 1 => [
241241
* 'attribute_code' => 'code2',
242242
* 'value' => 'value2',
243243
* ],
244244
* ]
245245
*
246-
* to
246+
* To
247247
*
248248
* 'custom_attributes' => [
249249
* 'code1' => 'value1',
@@ -256,12 +256,12 @@ private function convertToFlatArray($arrayIn, $rootKey = '')
256256
private function convertCustomAndExtensionAttributesArray($arrayIn)
257257
{
258258
$keys = ['custom_attributes', 'extension_attributes'];
259-
foreach($keys as $key) {
260-
if(!array_key_exists($key, $arrayIn)) {
259+
foreach ($keys as $key) {
260+
if (!array_key_exists($key, $arrayIn)) {
261261
continue;
262262
}
263263
$arrayCopy = $arrayIn[$key];
264-
foreach($arrayCopy as $index => $attributes) {
264+
foreach ($arrayCopy as $index => $attributes) {
265265
$arrayIn[$key][$attributes['attribute_code']] = $attributes['value'];
266266
}
267267
}

0 commit comments

Comments
 (0)