Skip to content

Commit

Permalink
#4942: fix code styles in the app/code/Magento/Bundle/Block/Catalog/P…
Browse files Browse the repository at this point in the history
…roduct/View/Type/Bundle.php file
  • Loading branch information
dmanners authored and gelanivishal committed Oct 11, 2018
1 parent 53f5942 commit 8050d50
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,9 @@ public function getJsonConfig()
}
}


$preConfiguredQtys = $preConfiguredValues->getData("bundle_option_qty/${optionId}") ?? [];
$selections = $options[$optionId]['selections'];
array_walk($selections, function(&$selection, $selectionId) use ($preConfiguredQtys) {
array_walk($selections, function (&$selection, $selectionId) use ($preConfiguredQtys) {
if (is_array($preConfiguredQtys) && isset($preConfiguredQtys[$selectionId])) {
$selection['qty'] = $preConfiguredQtys[$selectionId];
} else if ((int)$preConfiguredQtys > 0) {
Expand Down

0 comments on commit 8050d50

Please sign in to comment.