diff --git a/app/code/Magento/Backend/Block/Menu.php b/app/code/Magento/Backend/Block/Menu.php
index 4c4d75b7977b5..afe4d0fed2db6 100644
--- a/app/code/Magento/Backend/Block/Menu.php
+++ b/app/code/Magento/Backend/Block/Menu.php
@@ -13,6 +13,7 @@
*
* @method \Magento\Backend\Block\Menu setAdditionalCacheKeyInfo(array $cacheKeyInfo)
* @method array getAdditionalCacheKeyInfo()
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class Menu extends \Magento\Backend\Block\Template
{
@@ -381,7 +382,7 @@ public function renderNavigation($menu, $level = 0, $limit = 0, $colBrakes = [])
$itemName = substr($menuId, strrpos($menuId, '::') + 2);
$itemClass = str_replace('_', '-', strtolower($itemName));
- if (count($colBrakes) && $colBrakes[$itemPosition]['colbrake']) {
+ if (count($colBrakes) && $colBrakes[$itemPosition]['colbrake'] && $itemPosition != 1) {
$output .= '
';
}
diff --git a/app/code/Magento/Bundle/view/base/templates/product/price/final_price.phtml b/app/code/Magento/Bundle/view/base/templates/product/price/final_price.phtml
index efd75677d3061..171ae97bab2f3 100644
--- a/app/code/Magento/Bundle/view/base/templates/product/price/final_price.phtml
+++ b/app/code/Magento/Bundle/view/base/templates/product/price/final_price.phtml
@@ -11,7 +11,8 @@
getIdSuffix() ? $block->getIdSuffix() : '';
/** @var \Magento\Bundle\Pricing\Render\FinalPriceBox $block */
-$productId = $block->getSaleableItem()->getId();
+
+
/** @var \Magento\Bundle\Pricing\Price\FinalPrice $finalPriceModel */
$finalPriceModel = $block->getPrice();
$minimalPrice = $finalPriceModel->getMinimalPrice();
diff --git a/app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php b/app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php
index 8b32219bef32f..c49daa5fb89d9 100644
--- a/app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php
+++ b/app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php
@@ -863,6 +863,7 @@ public function addCategoryFilter(\Magento\Catalog\Model\Category $category)
* Filter Product by Categories
*
* @param array $categoriesFilter
+ * @return $this
*/
public function addCategoriesFilter(array $categoriesFilter)
{
@@ -876,6 +877,7 @@ public function addCategoriesFilter(array $categoriesFilter)
];
$this->getSelect()->where($this->getConnection()->prepareSqlCondition('e.entity_id' , $selectCondition));
}
+ return $this;
}
/**
diff --git a/app/code/Magento/Integration/Helper/Data.php b/app/code/Magento/Integration/Helper/Data.php
index 4a24cf12706fd..7f60bb1d44335 100644
--- a/app/code/Magento/Integration/Helper/Data.php
+++ b/app/code/Magento/Integration/Helper/Data.php
@@ -21,7 +21,7 @@ public function mapResources(array $resources)
foreach ($resources as $resource) {
$item = [];
$item['attr']['data-id'] = $resource['id'];
- $item['data'] = $resource['title'];
+ $item['data'] = __($resource['title']);
$item['children'] = [];
if (isset($resource['children'])) {
$item['state'] = 'open';
diff --git a/app/code/Magento/Rule/Model/Condition/AbstractCondition.php b/app/code/Magento/Rule/Model/Condition/AbstractCondition.php
index c6d5ee5e26422..8798ca627a354 100644
--- a/app/code/Magento/Rule/Model/Condition/AbstractCondition.php
+++ b/app/code/Magento/Rule/Model/Condition/AbstractCondition.php
@@ -441,6 +441,8 @@ public function getValueName()
}
if (!empty($valueArr)) {
$value = implode(', ', $valueArr);
+ } elseif (is_array($value)) {
+ $value = implode(', ', $value);
}
return $value;
}
diff --git a/lib/internal/Magento/Framework/Filesystem/Io/Sftp.php b/lib/internal/Magento/Framework/Filesystem/Io/Sftp.php
index 34768d52f61c9..095e4353c9abe 100644
--- a/lib/internal/Magento/Framework/Filesystem/Io/Sftp.php
+++ b/lib/internal/Magento/Framework/Filesystem/Io/Sftp.php
@@ -20,7 +20,7 @@ class Sftp extends AbstractIo
const SSH2_PORT = 22;
/**
- * @var \Net_SFTP $_connection
+ * @var \phpseclib\Net\SFTP $_connection
*/
protected $_connection = null;
@@ -184,7 +184,7 @@ public function read($filename, $destination = null)
*/
public function write($filename, $source, $mode = null)
{
- $mode = is_readable($source) ? NET_SFTP_LOCAL_FILE : NET_SFTP_STRING;
+ $mode = is_readable($source) ? \phpseclib\Net\SFTP::SOURCE_LOCAL_FILE : \phpseclib\Net\SFTP::SOURCE_STRING;
return $this->_connection->put($filename, $source, $mode);
}
diff --git a/lib/internal/Magento/Framework/Locale/Config.php b/lib/internal/Magento/Framework/Locale/Config.php
index c804684d1d646..167af503bf6a6 100644
--- a/lib/internal/Magento/Framework/Locale/Config.php
+++ b/lib/internal/Magento/Framework/Locale/Config.php
@@ -31,6 +31,7 @@ class Config implements \Magento\Framework\Locale\ConfigInterface
'de_AT', /*German (Austria)*/
'de_CH', /*German (Switzerland)*/
'de_DE', /*German (Germany)*/
+ 'de_LU', /*German (Luxembourg)*/
'el_GR', /*Greek (Greece)*/
'en_AU', /*English (Australian)*/
'en_CA', /*English (Canadian)*/
@@ -54,6 +55,7 @@ class Config implements \Magento\Framework\Locale\ConfigInterface
'fr_CA', /*French (Canada)*/
'fr_CH', /*French (Switzerland)*/
'fr_FR', /*French (France)*/
+ 'fr_LU', /*French (Luxembourg)*/
'gu_IN', /*Gujarati (India)*/
'he_IL', /*Hebrew (Israel)*/
'hi_IN', /*Hindi (India)*/
diff --git a/nginx.conf.sample b/nginx.conf.sample
index 9f94f72e6c876..d2f10502e03f8 100644
--- a/nginx.conf.sample
+++ b/nginx.conf.sample
@@ -4,6 +4,7 @@
# # server 127.0.0.1:9000;
# # or socket
# server unix:/var/run/php5-fpm.sock;
+# server unix:/var/run/php/php7.0-fpm.sock;
# }
# server {
# listen 80;