Skip to content

Commit 938a6ab

Browse files
committed
Correct formatting to adhere to psr-2 coding standards
1 parent 669ca53 commit 938a6ab

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function resolveOperationDataArray($entityObject, $operationMetadata, $op
109109
$operationElementType,
110110
$operationDataArray
111111
);
112-
} else if (is_array($operationElementType)) {
112+
} elseif (is_array($operationElementType)) {
113113
foreach ($operationElementType as $currentElementType) {
114114
if (in_array($currentElementType, self::PRIMITIVE_TYPES)) {
115115
$this->resolvePrimitiveReferenceElement(
@@ -256,7 +256,8 @@ private function resolveNonPrimitiveElement($entityName, $operationElement, $ope
256256
$linkedEntityObj = $this->resolveLinkedEntityObject($entityName);
257257

258258
// in array case
259-
if (!is_array($operationElement->getValue()) && !empty($operationElement->getNestedOperationElement($operationElement->getValue()))
259+
if (!is_array($operationElement->getValue())
260+
&& !empty($operationElement->getNestedOperationElement($operationElement->getValue()))
260261
&& $operationElement->getType() == OperationDefinitionObjectHandler::ENTITY_OPERATION_ARRAY
261262
) {
262263
$operationSubArray = $this->resolveOperationDataArray(

src/Magento/FunctionalTestingFramework/DataGenerator/Util/OperationElementExtractor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ private function extractOperationArray(&$operationArrayData, $operationArrayArra
114114
foreach ($operationArrayArray as $operationFieldType) {
115115
$operationElementValue = [];
116116
if (isset($operationFieldType[OperationDefinitionObjectHandler::ENTITY_OPERATION_ARRAY_VALUE])) {
117-
foreach ($operationFieldType[OperationDefinitionObjectHandler::ENTITY_OPERATION_ARRAY_VALUE] as $operationFieldValue) {
117+
foreach ($operationFieldType[OperationDefinitionObjectHandler::ENTITY_OPERATION_ARRAY_VALUE]
118+
as $operationFieldValue
119+
) {
118120
$operationElementValue[] = $operationFieldValue[OperationElementExtractor::OPERATION_OBJECT_ARRAY_VALUE] ?? null;
119121
}
120122
}

0 commit comments

Comments
 (0)