Skip to content

Commit 2f892c9

Browse files
[EngCom] Public Pull Requests - 2.3-develop
- merged latest code from mainline branch
2 parents 73e762c + 4f23251 commit 2f892c9

File tree

16 files changed

+58
-37
lines changed

16 files changed

+58
-37
lines changed

app/code/Magento/Catalog/Block/Adminhtml/Product/Edit/Tabs.php

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
use Magento\Backend\Block\Template\Context;
1010
use Magento\Backend\Block\Widget\Accordion;
11-
use Magento\Backend\Block\Widget\Tabs as WigetTabs;
11+
use Magento\Backend\Block\Widget\Tabs as WidgetTabs;
1212
use Magento\Backend\Model\Auth\Session;
1313
use Magento\Catalog\Helper\Catalog;
1414
use Magento\Catalog\Helper\Data;
@@ -22,7 +22,7 @@
2222
* Admin product edit tabs
2323
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2424
*/
25-
class Tabs extends WigetTabs
25+
class Tabs extends WidgetTabs
2626
{
2727
const BASIC_TAB_GROUP_CODE = 'basic';
2828

@@ -109,7 +109,7 @@ public function __construct(
109109
}
110110

111111
/**
112-
* @return void
112+
* @inheritdoc
113113
*/
114114
protected function _construct()
115115
{
@@ -119,6 +119,8 @@ protected function _construct()
119119
}
120120

121121
/**
122+
* Get group collection.
123+
*
122124
* @param int $attributeSetId
123125
* @return \Magento\Eav\Model\ResourceModel\Entity\Attribute\Group\Collection
124126
*/
@@ -131,10 +133,11 @@ public function getGroupCollection($attributeSetId)
131133
}
132134

133135
/**
134-
* @return $this
136+
* @inheritdoc
135137
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
136-
* @SuppressWarnings(PHPMD.NPathComplexity)
137138
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
139+
* @SuppressWarnings(PHPMD.NPathComplexity)
140+
* @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
138141
*/
139142
protected function _prepareLayout()
140143
{
@@ -315,6 +318,8 @@ public function getAttributeTabBlock()
315318
}
316319

317320
/**
321+
* Set attribute tab block.
322+
*
318323
* @param string $attributeTabBlock
319324
* @return $this
320325
*/
@@ -337,6 +342,8 @@ protected function _translateHtml($html)
337342
}
338343

339344
/**
345+
* Get accordion.
346+
*
340347
* @param string $parentTab
341348
* @return string
342349
*/

app/code/Magento/Catalog/Test/Unit/Model/ProductTest.php

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
use Magento\Catalog\Api\Data\ProductExtensionInterface;
1010
use Magento\Catalog\Model\Product;
11+
use Magento\Catalog\Model\Product\Attribute\Source\Status;
1112
use Magento\Framework\Api\Data\ImageContentInterface;
1213
use Magento\Framework\Api\ExtensibleDataInterface;
1314
use Magento\Framework\Api\ExtensionAttributesFactory;
1415
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager as ObjectManagerHelper;
15-
use Magento\Catalog\Model\Product\Attribute\Source\Status;
1616

1717
/**
1818
* Product Test
@@ -180,7 +180,7 @@ class ProductTest extends \PHPUnit\Framework\TestCase
180180
/**
181181
* @var \PHPUnit_Framework_MockObject_MockObject
182182
*/
183-
private $extensionAttrbutes;
183+
private $extensionAttributes;
184184

185185
/**
186186
* @var \PHPUnit_Framework_MockObject_MockObject
@@ -200,7 +200,7 @@ class ProductTest extends \PHPUnit\Framework\TestCase
200200
/**
201201
* @var ProductExtensionInterface|\PHPUnit_Framework_MockObject_MockObject
202202
*/
203-
private $extensionAttributes;
203+
private $productExtAttributes;
204204

205205
/**
206206
* @var \Magento\Eav\Model\Config|\PHPUnit_Framework_MockObject_MockObject
@@ -218,7 +218,7 @@ protected function setUp()
218218
\Magento\Framework\Module\Manager::class,
219219
['isEnabled']
220220
);
221-
$this->extensionAttrbutes = $this->getMockBuilder(\Magento\Framework\Api\ExtensionAttributesInterface::class)
221+
$this->extensionAttributes = $this->getMockBuilder(\Magento\Framework\Api\ExtensionAttributesInterface::class)
222222
->setMethods(['getWebsiteIds', 'setWebsiteIds'])
223223
->disableOriginalConstructor()
224224
->getMock();
@@ -372,13 +372,13 @@ protected function setUp()
372372
$this->mediaConfig = $this->createMock(\Magento\Catalog\Model\Product\Media\Config::class);
373373
$this->eavConfig = $this->createMock(\Magento\Eav\Model\Config::class);
374374

375-
$this->extensionAttributes = $this->getMockBuilder(ProductExtensionInterface::class)
375+
$this->productExtAttributes = $this->getMockBuilder(ProductExtensionInterface::class)
376376
->setMethods(['getStockItem'])
377377
->getMockForAbstractClass();
378378
$this->extensionAttributesFactory
379379
->expects($this->any())
380380
->method('create')
381-
->willReturn($this->extensionAttributes);
381+
->willReturn($this->productExtAttributes);
382382

383383
$this->filterCustomAttribute = $this->createTestProxy(
384384
\Magento\Catalog\Model\FilterProductCustomAttribute::class
@@ -567,14 +567,6 @@ public function testGetCategoryId()
567567
$this->assertEquals(10, $this->model->getCategoryId());
568568
}
569569

570-
public function testGetCategoryIdWhenProductNotInCurrentCategory()
571-
{
572-
$this->model->setData('category_ids', [12]);
573-
$this->category->expects($this->once())->method('getId')->will($this->returnValue(10));
574-
$this->registry->expects($this->any())->method('registry')->will($this->returnValue($this->category));
575-
$this->assertFalse($this->model->getCategoryId());
576-
}
577-
578570
public function testGetIdBySku()
579571
{
580572
$this->resource->expects($this->once())->method('getIdBySku')->will($this->returnValue(5));

app/code/Magento/Customer/Model/Address/AbstractAddress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public function getStreet()
222222
}
223223

224224
/**
225-
* Get steet line by number
225+
* Get street line by number
226226
*
227227
* @param int $number
228228
* @return string

app/code/Magento/Customer/Model/Address/AddressModelInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
interface AddressModelInterface
1616
{
1717
/**
18-
* Get steet line by number
18+
* Get street line by number
1919
*
2020
* @param int $number
2121
* @return string

app/code/Magento/ImportExport/Block/Adminhtml/Export/Filter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ protected function _getSelectHtmlWithValue(Attribute $attribute, $value)
237237
if ($attribute->getFilterOptions()) {
238238
$options = [];
239239

240-
foreach ($attribute->getFilterOptions() as $value => $label) {
241-
$options[] = ['value' => $value, 'label' => $label];
240+
foreach ($attribute->getFilterOptions() as $optionValue => $label) {
241+
$options[] = ['value' => $optionValue, 'label' => $label];
242242
}
243243
} else {
244244
$options = $attribute->getSource()->getAllOptions(false);

app/code/Magento/Paypal/Model/Billing/AbstractAgreement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace Magento\Paypal\Model\Billing;
77

88
/**
9-
* Billing Agreement abstaract class
9+
* Billing Agreement abstract class
1010
*/
1111
abstract class AbstractAgreement extends \Magento\Framework\Model\AbstractModel
1212
{

app/code/Magento/Sales/Block/Adminhtml/Order/Creditmemo/Create/Adjustments.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
use Magento\Framework\Pricing\PriceCurrencyInterface;
99

1010
/**
11+
* Credit memo adjustmets block
12+
*
1113
* @api
1214
* @since 100.0.2
1315
*/
@@ -50,7 +52,7 @@ public function __construct(
5052
}
5153

5254
/**
53-
* Initialize creditmemo agjustment totals
55+
* Initialize creditmemo adjustment totals
5456
*
5557
* @return $this
5658
*/

app/design/adminhtml/Magento/backend/web/css/source/components/_messages.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
position: absolute;
7777
speak: none;
7878
text-shadow: none;
79-
top: 1.5rem;
79+
top: 50%;
80+
margin-top: -1.25rem;
8081
width: auto;
8182
}
8283
}

app/design/frontend/Magento/blank/Magento_MultipleWishlist/web/css/source/_module.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@
350350
.product {
351351
&-item {
352352
&-checkbox {
353-
left: 20px;
353+
left: 0;
354354
position: absolute;
355355
top: 20px;
356356
}

app/design/frontend/Magento/blank/Magento_Wishlist/web/css/source/_module.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,10 @@
195195
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
196196
.products-grid.wishlist {
197197
margin-bottom: @indent__l;
198-
margin-right: -@indent__s;
198+
margin-right: 0;
199199
.product {
200200
&-item {
201-
padding: @indent__base @indent__s @indent__base @indent__base;
201+
padding: @indent__base 0 @indent__base 0;
202202
position: relative;
203203

204204
&-photo {

app/design/frontend/Magento/luma/Magento_Checkout/web/css/source/module/checkout/_payment-options.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@
6969

7070
.payment-option-content {
7171
.lib-css(padding, 0 0 @indent__base @checkout-payment-option-content__padding__xl);
72+
.primary {
73+
.action {
74+
&.action-apply {
75+
margin-right: 0;
76+
}
77+
}
78+
}
7279
}
7380

7481
.payment-option-inner {

app/design/frontend/Magento/luma/Magento_Customer/web/css/source/_module.less

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,12 @@
421421
.column.main {
422422
width: 77.7%;
423423
}
424+
425+
.sidebar-main {
426+
.block {
427+
margin-bottom: 0;
428+
}
429+
}
424430
}
425431

426432
.account {
@@ -532,11 +538,18 @@
532538
.column.main,
533539
.sidebar-additional {
534540
margin: 0;
541+
padding: 0;
535542
}
536543

537544
.data.table {
538545
&:extend(.abs-table-striped-mobile all);
539546
}
547+
548+
.sidebar-main {
549+
.account-nav {
550+
margin-bottom: 0;
551+
}
552+
}
540553
}
541554
}
542555

app/design/frontend/Magento/luma/Magento_GiftMessage/web/css/source/_module.less

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@
246246
.gift-messages-order {
247247
margin-bottom: @indent__m;
248248
}
249+
.gift-message-summary {
250+
padding-right: 7rem;
251+
}
249252
}
250253

251254
//
@@ -282,10 +285,6 @@
282285
}
283286
}
284287

285-
.gift-message-summary {
286-
padding-right: 7rem;
287-
}
288-
289288
//
290289
// In-table block
291290
// ---------------------------------------------

app/design/frontend/Magento/luma/Magento_MultipleWishlist/web/css/source/_module.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@
429429
.product {
430430
&-item {
431431
&-checkbox {
432-
left: 20px;
432+
left: 0;
433433
position: absolute;
434434
top: 20px;
435435
}

app/design/frontend/Magento/luma/Magento_Wishlist/web/css/source/_module.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,11 @@
203203
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
204204
.products-grid.wishlist {
205205
margin-bottom: @indent__l;
206-
margin-right: -@indent__s;
206+
margin-right: 0;
207207

208208
.product {
209209
&-item {
210-
padding: @indent__base @indent__s @indent__base @indent__base;
210+
padding: @indent__base 0 @indent__base 0;
211211
position: relative;
212212

213213
&-photo {

app/design/frontend/Magento/luma/web/css/source/components/_modals_extend.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
.modal-custom {
6060
.action-close {
61-
.lib-css(margin, @indent__m);
61+
.lib-css(margin, 15px);
6262
}
6363
}
6464

0 commit comments

Comments
 (0)