Skip to content

Commit f293d16

Browse files
author
Richard McLeod
committed
Fixed occurances of implode with wrong argument order
1 parent b6927e0 commit f293d16

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

app/code/Magento/Fedex/Setup/InstallData.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function install(ModuleDataSetupInterface $setup, ModuleContextInterface
9696
$mapNew[] = $shippingMethod;
9797
}
9898
}
99-
$mapNew = implode($mapNew, ',');
99+
$mapNew = implode(',', $mapNew);
100100
} else {
101101
continue;
102102
}

app/code/Magento/Payment/view/adminhtml/templates/info/default.phtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<?php foreach ($_specificInfo as $_label => $_value):?>
2020
<tr>
2121
<th><?php echo $block->escapeHtml($_label)?>:</th>
22-
<td><?php echo nl2br(implode($block->getValueAsArray($_value, true), "\n"))?></td>
22+
<td><?php echo nl2br(implode("\n", $block->getValueAsArray($_value, true)))?></td>
2323
</tr>
2424
<?php endforeach; ?>
2525
</table>

app/code/Magento/Payment/view/adminhtml/templates/info/pdf/default.phtml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
<?php if ($_specificInfo = $block->getSpecificInformation()):?>
1818
<?php foreach ($_specificInfo as $_label => $_value):?>
19-
<?php echo $_label ?>: <?php echo implode($block->getValueAsArray($_value), ' ')?>{{pdf_row_separator}}
19+
<?php echo $_label ?>: <?php echo implode(' ', $block->getValueAsArray($_value))?>{{pdf_row_separator}}
2020
<?php endforeach; ?>
2121
<?php endif;?>
2222

23-
<?php echo implode($block->getChildPdfAsArray(), '{{pdf_row_separator}}') ?>
23+
<?php echo implode('{{pdf_row_separator}}', $block->getChildPdfAsArray()) ?>

app/code/Magento/Payment/view/frontend/templates/info/default.phtml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<?php foreach ($_specificInfo as $_label => $_value):?>
2222
<tr>
2323
<th scope="row"><?php echo $block->escapeHtml($_label)?></th>
24-
<td><?php echo nl2br(implode($block->getValueAsArray($_value, true), "\n"))?></td>
24+
<td><?php echo nl2br(implode("\n", $block->getValueAsArray($_value, true)))?></td>
2525
</tr>
2626
<?php endforeach; ?>
2727
</table>

app/code/Magento/Sales/Block/Adminhtml/Reorder/Renderer/Action.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ protected function _actionsToHtml(array $actions = [])
9393
$attributesObject->setData($action['@']);
9494
$html[] = '<a ' . $attributesObject->serialize() . '>' . $action['#'] . '</a>';
9595
}
96-
return implode($html, '');
96+
return implode('', $html);
9797
}
9898

9999
/**

app/code/Magento/SalesRule/Model/Resource/Report/Collection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ protected function _applyRulesFilter()
170170
}
171171

172172
if (!empty($rulesFilterSqlParts)) {
173-
$this->getSelect()->where(implode($rulesFilterSqlParts, ' OR '));
173+
$this->getSelect()->where(implode(' OR ', $rulesFilterSqlParts));
174174
}
175175
return $this;
176176
}

app/code/Magento/Tax/Setup/InstallData.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function install(ModuleDataSetupInterface $setup, ModuleContextInterface
6969
'visible_in_advanced_search' => true,
7070
'used_in_product_listing' => true,
7171
'unique' => false,
72-
'apply_to' => implode($taxSetup->getTaxableItems(), ',')
72+
'apply_to' => implode(',', $taxSetup->getTaxableItems())
7373
]
7474
);
7575

dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertChildProductsInGrid.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function processAssert(CatalogProductIndex $productGrid, ConfigurableProd
5252
}
5353
}
5454

55-
\PHPUnit_Framework_Assert::assertEmpty($errors, implode($errors, ' '));
55+
\PHPUnit_Framework_Assert::assertEmpty($errors, implode(' ', $errors));
5656
}
5757

5858
/**

0 commit comments

Comments
 (0)