Skip to content

Commit ab1ffc2

Browse files
mark_reesSental
authored andcommitted
fix test compliance
1 parent db8f86d commit ab1ffc2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/code/Magento/Checkout/Block/Checkout/LayoutProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private function convertElementsToSelect($elements, $attributesToConvert)
132132
$elements[$code]['dataType'] = 'select';
133133
$elements[$code]['formElement'] = 'select';
134134

135-
foreach ($options as $key => $value) {
135+
foreach ($options as $value) {
136136
$elements[$code]['options'][] = [
137137
'value' => $value,
138138
'label' => $value,

app/code/Magento/Sales/Block/Adminhtml/Order/Create/Form/Address.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@ protected function _prepareForm()
235235
if ($prefixElement) {
236236
$prefixOptions = $this->options->getNamePrefixOptions($this->getStore());
237237
if (!empty($prefixOptions)) {
238-
$mappedPrefixOptions = array ();
239-
foreach ($prefixOptions as $prefix) {
240-
$mappedPrefixOptions[$prefix] = $prefix;
241-
}
238+
$mappedPrefixOptions = [];
239+
foreach ($prefixOptions as $prefix) {
240+
$mappedPrefixOptions[$prefix] = $prefix;
241+
}
242242
$fieldset->removeField($prefixElement->getId());
243243
$prefixField = $fieldset->addField($prefixElement->getId(), 'select', $prefixElement->getData(), '^');
244244
$prefixField->setValues($mappedPrefixOptions);

0 commit comments

Comments
 (0)