diff --git a/app/code/Magento/Fedex/Setup/InstallData.php b/app/code/Magento/Fedex/Setup/InstallData.php
index ce35f99800209..55363c9acc31d 100755
--- a/app/code/Magento/Fedex/Setup/InstallData.php
+++ b/app/code/Magento/Fedex/Setup/InstallData.php
@@ -96,7 +96,7 @@ public function install(ModuleDataSetupInterface $setup, ModuleContextInterface
$mapNew[] = $shippingMethod;
}
}
- $mapNew = implode($mapNew, ',');
+ $mapNew = implode(',', $mapNew);
} else {
continue;
}
diff --git a/app/code/Magento/Payment/view/adminhtml/templates/info/default.phtml b/app/code/Magento/Payment/view/adminhtml/templates/info/default.phtml
index 48a8c0a91dbf4..f2db06784d9fa 100644
--- a/app/code/Magento/Payment/view/adminhtml/templates/info/default.phtml
+++ b/app/code/Magento/Payment/view/adminhtml/templates/info/default.phtml
@@ -19,7 +19,7 @@
$_value):?>
escapeHtml($_label)?>: |
- getValueAsArray($_value, true), "\n"))?> |
+ getValueAsArray($_value, true)))?> |
diff --git a/app/code/Magento/Payment/view/adminhtml/templates/info/pdf/default.phtml b/app/code/Magento/Payment/view/adminhtml/templates/info/pdf/default.phtml
index 89d131de11cf1..db51c499e2835 100644
--- a/app/code/Magento/Payment/view/adminhtml/templates/info/pdf/default.phtml
+++ b/app/code/Magento/Payment/view/adminhtml/templates/info/pdf/default.phtml
@@ -16,8 +16,8 @@
getSpecificInformation()):?>
$_value):?>
-: getValueAsArray($_value), ' ')?>{{pdf_row_separator}}
+: getValueAsArray($_value))?>{{pdf_row_separator}}
-getChildPdfAsArray(), '{{pdf_row_separator}}') ?>
+getChildPdfAsArray()) ?>
diff --git a/app/code/Magento/Payment/view/frontend/templates/info/default.phtml b/app/code/Magento/Payment/view/frontend/templates/info/default.phtml
index cbd9eb6f60753..ae2a9e0b712d7 100644
--- a/app/code/Magento/Payment/view/frontend/templates/info/default.phtml
+++ b/app/code/Magento/Payment/view/frontend/templates/info/default.phtml
@@ -21,7 +21,7 @@
$_value):?>
escapeHtml($_label)?> |
- getValueAsArray($_value, true), "\n"))?> |
+ getValueAsArray($_value, true)))?> |
diff --git a/app/code/Magento/Sales/Block/Adminhtml/Reorder/Renderer/Action.php b/app/code/Magento/Sales/Block/Adminhtml/Reorder/Renderer/Action.php
index 2690ecac41192..0e664f928847f 100644
--- a/app/code/Magento/Sales/Block/Adminhtml/Reorder/Renderer/Action.php
+++ b/app/code/Magento/Sales/Block/Adminhtml/Reorder/Renderer/Action.php
@@ -93,7 +93,7 @@ protected function _actionsToHtml(array $actions = [])
$attributesObject->setData($action['@']);
$html[] = 'serialize() . '>' . $action['#'] . '';
}
- return implode($html, '');
+ return implode('', $html);
}
/**
diff --git a/app/code/Magento/SalesRule/Model/Resource/Report/Collection.php b/app/code/Magento/SalesRule/Model/Resource/Report/Collection.php
index 4c8dc6f056004..e1d3e1af29c0d 100644
--- a/app/code/Magento/SalesRule/Model/Resource/Report/Collection.php
+++ b/app/code/Magento/SalesRule/Model/Resource/Report/Collection.php
@@ -170,7 +170,7 @@ protected function _applyRulesFilter()
}
if (!empty($rulesFilterSqlParts)) {
- $this->getSelect()->where(implode($rulesFilterSqlParts, ' OR '));
+ $this->getSelect()->where(implode(' OR ', $rulesFilterSqlParts));
}
return $this;
}
diff --git a/app/code/Magento/Tax/Setup/InstallData.php b/app/code/Magento/Tax/Setup/InstallData.php
index 03931a63e3b85..4e99ca1631f82 100644
--- a/app/code/Magento/Tax/Setup/InstallData.php
+++ b/app/code/Magento/Tax/Setup/InstallData.php
@@ -69,7 +69,7 @@ public function install(ModuleDataSetupInterface $setup, ModuleContextInterface
'visible_in_advanced_search' => true,
'used_in_product_listing' => true,
'unique' => false,
- 'apply_to' => implode($taxSetup->getTaxableItems(), ',')
+ 'apply_to' => implode(',', $taxSetup->getTaxableItems())
]
);
diff --git a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertChildProductsInGrid.php b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertChildProductsInGrid.php
index a467c0ad9af43..557e1c09882fe 100755
--- a/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertChildProductsInGrid.php
+++ b/dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Constraint/AssertChildProductsInGrid.php
@@ -52,7 +52,7 @@ public function processAssert(CatalogProductIndex $productGrid, ConfigurableProd
}
}
- \PHPUnit_Framework_Assert::assertEmpty($errors, implode($errors, ' '));
+ \PHPUnit_Framework_Assert::assertEmpty($errors, implode(' ', $errors));
}
/**