Skip to content

Commit f4aaa57

Browse files
author
Robert He
committed
Merge branch '2.3-develop' into MAGETWO-70174-data-migration
2 parents 1aa633f + bce891d commit f4aaa57

File tree

1,313 files changed

+40248
-29516
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,313 files changed

+40248
-29516
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ atlassian*
3434
/.php_cs.cache
3535
/grunt-config.json
3636
/dev/tools/grunt/configs/local-themes.js
37-
3837
/pub/media/*.*
3938
!/pub/media/.htaccess
4039
/pub/media/attribute/*

app/code/Magento/Backend/Block/Menu.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Backend\Block;
108

119
/**
@@ -137,7 +135,9 @@ protected function _getAnchorLabel($menuItem)
137135
*/
138136
protected function _renderMouseEvent($menuItem)
139137
{
140-
return $menuItem->hasChildren() ? 'onmouseover="Element.addClassName(this,\'over\')" onmouseout="Element.removeClassName(this,\'over\')"' : '';
138+
return $menuItem->hasChildren()
139+
? 'onmouseover="Element.addClassName(this,\'over\')" onmouseout="Element.removeClassName(this,\'over\')"'
140+
: '';
141141
}
142142

143143
/**

app/code/Magento/Backend/Test/Unit/Model/UrlTest.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
/**
1212
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
13-
* @codingStandardsIgnoreFile
1413
*/
1514
class UrlTest extends \PHPUnit\Framework\TestCase
1615
{
@@ -81,7 +80,10 @@ class UrlTest extends \PHPUnit\Framework\TestCase
8180
protected function setUp()
8281
{
8382
$objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
84-
$this->_menuMock = $this->createPartialMock(\Magento\Backend\Model\Menu::class, ['getFirstAvailableChild', 'get', 'getFirstAvailable']);
83+
$this->_menuMock = $this->createPartialMock(
84+
\Magento\Backend\Model\Menu::class,
85+
['getFirstAvailableChild', 'get', 'getFirstAvailable']
86+
);
8587

8688
$this->_menuConfigMock = $this->createMock(\Magento\Backend\Model\Menu\Config::class);
8789
$this->_menuConfigMock->expects($this->any())->method('getMenu')->will($this->returnValue($this->_menuMock));
@@ -136,7 +138,9 @@ protected function setUp()
136138
->method('getHash')
137139
->willReturnArgument(0);
138140
$routeParamsResolver = $this->createMock(\Magento\Framework\Url\RouteParamsResolver::class);
139-
$this->routeParamsResolverFactoryMock = $this->createMock(\Magento\Framework\Url\RouteParamsResolverFactory::class);
141+
$this->routeParamsResolverFactoryMock = $this->createMock(
142+
\Magento\Framework\Url\RouteParamsResolverFactory::class
143+
);
140144
$this->routeParamsResolverFactoryMock->expects($this->any())
141145
->method('create')
142146
->willReturn($routeParamsResolver);

app/code/Magento/Backend/view/adminhtml/layout/editor.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@
1010
<link src="Magento_Backend::js/bootstrap/editor.js"/>
1111
<css src="prototype/windows/themes/default.css"/>
1212
</head>
13-
<body/>
1413
</page>

app/code/Magento/Backend/view/adminhtml/templates/widget/form/container.phtml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
<?php if ($block->getButtonsHtml('header')): ?>
1313
<div class="page-form-actions" <?= /* @escapeNotVerified */ $block->getUiId('content-header') ?>><?= $block->getButtonsHtml('header') ?></div>
1414
<?php endif; ?>
15+
<?php if ($block->getButtonsHtml('toolbar')): ?>
16+
<div class="page-main-actions">
17+
<div class="page-actions">
18+
<div class="page-actions-buttons">
19+
<?= $block->getButtonsHtml('toolbar') ?>
20+
</div>
21+
</div>
22+
</div>
23+
<?php endif; ?>
1524
<?= $block->getFormHtml() ?>
1625
<?php if ($block->hasFooterButtons()): ?>
1726
<div class="content-footer">

app/code/Magento/Backend/view/adminhtml/templates/widget/form/element.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@
6262
<label for="<?= $element->getHtmlId() ?>"><?= /* @escapeNotVerified */ $element->getLabel() ?>:</label>
6363
<script>
6464
require([
65-
'tinymce'
65+
'tinymceDeprecated'
6666
], function(tinyMCE){
67+
6768
tinyMCE.init({
6869
mode : "exact",
6970
theme : "advanced",

app/code/Magento/Bundle/Block/Adminhtml/Catalog/Product/Edit/Tab/Attributes.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Bundle\Block\Adminhtml\Catalog\Product\Edit\Tab;
108

119
/**

app/code/Magento/Bundle/Block/Catalog/Product/View/Type/Bundle/Option.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Bundle\Block\Catalog\Product\View\Type\Bundle;
108

119
/**
@@ -93,7 +91,7 @@ public function __construct(
9391
*/
9492
public function showSingle()
9593
{
96-
if (is_null($this->_showSingle)) {
94+
if ($this->_showSingle === null) {
9795
$option = $this->getOption();
9896
$selections = $option->getSelections();
9997

@@ -238,7 +236,11 @@ public function getProduct()
238236
public function getSelectionQtyTitlePrice($selection, $includeContainer = true)
239237
{
240238
$this->setFormatProduct($selection);
241-
$priceTitle = '<span class="product-name">' . $selection->getSelectionQty() * 1 . ' x ' . $this->escapeHtml($selection->getName()) . '</span>';
239+
$priceTitle = '<span class="product-name">'
240+
. $selection->getSelectionQty() * 1
241+
. ' x '
242+
. $this->escapeHtml($selection->getName())
243+
. '</span>';
242244

243245
$priceTitle .= ' &nbsp; ' . ($includeContainer ? '<span class="price-notice">' : '') . '+' .
244246
$this->renderPriceString($selection, $includeContainer) . ($includeContainer ? '</span>' : '');

app/code/Magento/Bundle/Model/Product/Type.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Bundle\Model\Product;
108

119
use Magento\Framework\App\ObjectManager;
@@ -897,8 +895,7 @@ public function getOptionsByIds($optionIds, $product)
897895
$usedOptions = $product->getData($this->_keyUsedOptions);
898896
$usedOptionsIds = $product->getData($this->_keyUsedOptionsIds);
899897

900-
if (
901-
!$usedOptions
898+
if (!$usedOptions
902899
|| $this->serializer->serialize($usedOptionsIds) != $this->serializer->serialize($optionIds)
903900
) {
904901
$usedOptions = $this->_bundleOption
@@ -1261,7 +1258,9 @@ protected function checkIsAllRequiredOptions($product, $isStrictProcessMode, $op
12611258
if (!$product->getSkipCheckRequiredOption() && $isStrictProcessMode) {
12621259
foreach ($optionsCollection->getItems() as $option) {
12631260
if ($option->getRequired() && !isset($options[$option->getId()])) {
1264-
throw new \Magento\Framework\Exception\LocalizedException(__('Please select all required options.'));
1261+
throw new \Magento\Framework\Exception\LocalizedException(
1262+
__('Please select all required options.')
1263+
);
12651264
}
12661265
}
12671266
}

app/code/Magento/Bundle/Model/Sales/Order/Pdf/Items/Invoice.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
/**
1212
* Order invoice pdf default items renderer
13-
*
14-
* @codingStandardsIgnoreFile
1513
*/
1614
class Invoice extends AbstractItems
1715
{

0 commit comments

Comments
 (0)