Skip to content

Commit b26c7cc

Browse files
authored
Fixes to pass static test
1 parent 3983bec commit b26c7cc

File tree

1 file changed

+6
-6
lines changed
  • app/code/Magento/Catalog/Model/ResourceModel/Product/Link/Product

1 file changed

+6
-6
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product/Link/Product/Collection.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -369,20 +369,20 @@ private function joinProductsToLinks()
369369
*/
370370
protected function _afterLoad()
371371
{
372-
if($this->getLinkModel()) {
372+
if ($this->getLinkModel()) {
373373
$attributes = $this->getLinkAttributes();
374-
foreach($this as $item) {
374+
foreach ($this as $item) {
375375
foreach ($attributes as $attribute) {
376376
$code = $attribute['code'];
377377
$value = $item->getData($code);
378-
if($value !== null) {
379-
if($attribute['type'] == 'decimal') {
380-
$item->setData($code,(float)$value);
378+
if ($value !== null) {
379+
if ($attribute['type'] == 'decimal') {
380+
$item->setData($code, (float)$value);
381381
}
382382
}
383383
}
384384
}
385385
}
386386
return parent::_afterLoad();
387-
}
387+
}
388388
}

0 commit comments

Comments
 (0)