Skip to content

Commit 9f00b6a

Browse files
author
Magento CICD
authored
merge magento/2.3-develop into magento-tsg/2.3-develop-pr20
2 parents b5a3f36 + c2b4657 commit 9f00b6a

File tree

15 files changed

+75
-10
lines changed

15 files changed

+75
-10
lines changed

app/code/Magento/Catalog/Ui/Component/UrlInput/Category.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public function getConfig(): array
4646
'sortOrder' => 30,
4747
'missingValuePlaceholder' => __('Category with ID: %s doesn\'t exist'),
4848
'isDisplayMissingValuePlaceholder' => true,
49+
'isRemoveSelectedIcon' => true,
4950
];
5051
}
5152
}

app/code/Magento/Catalog/Ui/Component/UrlInput/Product.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function getConfig(): array
5050
'emptyOptionsHtml' => __('Start typing to find products'),
5151
'missingValuePlaceholder' => __('Product with ID: %s doesn\'t exist'),
5252
'isDisplayMissingValuePlaceholder' => true,
53+
'isRemoveSelectedIcon' => true,
5354
'validationUrl' => $this->urlBuilder->getUrl('catalog/product/getSelected'),
5455
];
5556
}

app/code/Magento/CatalogGraphQl/Model/Layer/CollectionProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ class CollectionProvider implements \Magento\Catalog\Model\Layer\ItemCollectionP
2929
*/
3030
private $collectionProcessor;
3131

32+
/**
33+
* @param \Magento\Framework\Api\SearchCriteria\CollectionProcessorInterface $collectionProcessor
34+
* @param \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $collectionFactory
35+
*/
3236
public function __construct(
3337
\Magento\Framework\Api\SearchCriteria\CollectionProcessorInterface $collectionProcessor,
3438
\Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $collectionFactory

app/code/Magento/NewRelicReporting/Model/Observer/ReportApplicationHandledExceptionToNewRelic.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public function __construct(
3737
$this->newRelicWrapper = $newRelicWrapper;
3838
}
3939

40+
/**
41+
* @param Observer $observer
42+
*/
4043
public function execute(Observer $observer)
4144
{
4245
if ($this->config->isNewRelicEnabled()) {

app/code/Magento/Sales/Setup/SalesSetup.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,9 @@ public function getEncryptor()
303303
return $this->encryptor;
304304
}
305305

306+
/**
307+
* @return \Magento\Framework\DB\Adapter\AdapterInterface
308+
*/
306309
public function getConnection()
307310
{
308311
return $this->getSetup()->getConnection(self::$connectionName);

app/code/Magento/Tax/Model/Config.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -832,20 +832,20 @@ public function getInfoUrl($store = null)
832832
* If it necessary will be returned conversion type (minus or plus)
833833
*
834834
* @param null|int|string|Store $store
835-
* @return bool
835+
* @return bool|int
836836
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
837837
*/
838838
public function needPriceConversion($store = null)
839839
{
840-
$res = false;
840+
$res = 0;
841841
$priceIncludesTax = $this->priceIncludesTax($store) || $this->getNeedUseShippingExcludeTax();
842842
if ($priceIncludesTax) {
843843
switch ($this->getPriceDisplayType($store)) {
844844
case self::DISPLAY_TYPE_EXCLUDING_TAX:
845845
case self::DISPLAY_TYPE_BOTH:
846846
return self::PRICE_CONVERSION_MINUS;
847847
case self::DISPLAY_TYPE_INCLUDING_TAX:
848-
$res = true;
848+
$res = false;
849849
break;
850850
default:
851851
break;

app/code/Magento/Ui/view/base/web/js/form/element/ui-select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ define([
176176
pageLimit: 50,
177177
deviation: 30,
178178
validationLoading: false,
179-
isRemoveSelectedIcon: true,
179+
isRemoveSelectedIcon: false,
180180
debounce: 300,
181181
missingValuePlaceholder: $t('Entity with ID: %s doesn\'t exist'),
182182
isDisplayMissingValuePlaceholder: false,

app/design/frontend/Magento/luma/Magento_Checkout/web/css/source/module/checkout/_payments.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
.lib-css(border-top, @checkout-payment-method-title__border);
4747
}
4848
}
49+
form {
50+
&.form-purchase-order {
51+
margin-bottom: 15px;
52+
}
53+
}
4954
}
5055

5156
.payment-method-content {

dev/tests/integration/testsuite/Magento/Test/Integrity/StaticFilesTest.php

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66

77
namespace Magento\Test\Integrity;
88

9+
use Magento\Framework\App\Filesystem\DirectoryList;
10+
911
/**
1012
* An integrity test that searches for references to static files and asserts that they are resolved via fallback
13+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1114
*/
1215
class StaticFilesTest extends \PHPUnit\Framework\TestCase
1316
{
@@ -36,6 +39,23 @@ class StaticFilesTest extends \PHPUnit\Framework\TestCase
3639
*/
3740
private $baseTheme;
3841

42+
/**
43+
* @var \Magento\Framework\View\Design\FileResolution\Fallback\Resolver\Alternative
44+
*/
45+
private $alternativeResolver;
46+
47+
/**
48+
* Factory for simple rule
49+
*
50+
* @var \Magento\Framework\View\Design\Fallback\Rule\SimpleFactory
51+
*/
52+
private $simpleFactory;
53+
54+
/**
55+
* @var \Magento\Framework\Filesystem
56+
*/
57+
private $filesystem;
58+
3959
protected function setUp()
4060
{
4161
$om = \Magento\TestFramework\Helper\Bootstrap::getObjectmanager();
@@ -46,6 +66,11 @@ protected function setUp()
4666
$this->themeRepo = $om->get(\Magento\Framework\View\Design\Theme\FlyweightFactory::class);
4767
$this->design = $om->get(\Magento\Framework\View\DesignInterface::class);
4868
$this->baseTheme = $om->get(\Magento\Framework\View\Design\ThemeInterface::class);
69+
$this->alternativeResolver = $om->get(
70+
\Magento\Framework\View\Design\FileResolution\Fallback\Resolver\Alternative::class
71+
);
72+
$this->simpleFactory = $om->get(\Magento\Framework\View\Design\Fallback\Rule\SimpleFactory::class);
73+
$this->filesystem = $om->get(\Magento\Framework\Filesystem::class);
4974
}
5075

5176
/**
@@ -93,8 +118,17 @@ public function testReferencesFromStaticFiles($area, $themePath, $locale, $modul
93118
$relatedPath = \Magento\Framework\View\FileSystem::getRelatedPath($filePath, $relatedResource);
94119
}
95120
// the $relatedPath will be suitable for feeding to the fallback system
121+
$staticFile = $this->getStaticFile($area, $themePath, $locale, $relatedPath, $fallbackModule);
122+
if (empty($staticFile) && substr($relatedPath, 0, 2) === '..') {
123+
//check if static file exists on lib level
124+
$path = substr($relatedPath, 2);
125+
$libDir = rtrim($this->filesystem->getDirectoryRead(DirectoryList::LIB_WEB)->getAbsolutePath(), '/');
126+
$rule = $this->simpleFactory->create(['pattern' => $libDir]);
127+
$params = ['area' => $area, 'theme' => $themePath, 'locale' => $locale];
128+
$staticFile = $this->alternativeResolver->resolveFile($rule, $path, $params);
129+
}
96130
$this->assertNotEmpty(
97-
$this->getStaticFile($area, $themePath, $locale, $relatedPath, $fallbackModule),
131+
$staticFile,
98132
"The related resource cannot be resolved through fallback: '{$relatedResource}'"
99133
);
100134
}
@@ -132,7 +166,7 @@ private function getDefaultThemePath($area)
132166
* @param bool $isExplicit
133167
* @return bool|string
134168
*/
135-
private function getStaticFile($area, $theme, $locale, $filePath, $module, $isExplicit = false)
169+
private function getStaticFile($area, $theme, $locale, $filePath, $module = null, $isExplicit = false)
136170
{
137171
if ($area == 'base') {
138172
$theme = $this->baseTheme;

lib/internal/Magento/Framework/Exception/AbstractAggregateException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ public function addError(Phrase $phrase)
7878
return $this;
7979
}
8080

81+
/**
82+
* @param LocalizedException $exception
83+
* @return $this
84+
*/
8185
public function addException(LocalizedException $exception)
8286
{
8387
$this->addErrorCalls++;

lib/internal/Magento/Framework/GraphQl/Query/Resolver/Argument/Filter/Operator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static function getOperators() : array
6565
return $type->getConstants();
6666
}
6767

68-
/*
68+
/**
6969
* Convert operator to string
7070
*
7171
* @return string

lib/internal/Magento/Framework/Webapi/Test/Unit/ServiceInputProcessor/SimpleConstructor.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ class SimpleConstructor
1919
*/
2020
private $name;
2121

22+
/**
23+
* @param int $entityId
24+
* @param string $name
25+
*/
2226
public function __construct(
2327
int $entityId,
2428
string $name

lib/web/mage/dropdowns.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,9 @@ define([
127127
}
128128

129129
elem.on('click.toggleDropdown', function () {
130-
var el;
130+
var el = actionElem;
131131

132132
if (options.autoclose === true) {
133-
el = actionElem;
134-
135133
actionElem = $();
136134
$(document).trigger('click.hideDropdown');
137135
actionElem = el;

setup/src/Magento/Setup/Console/Command/GenerateFixturesCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ private function clearChangelog()
157157
}
158158
}
159159

160+
/**
161+
* @param \Magento\Setup\Fixtures\Fixture $fixture
162+
* @param OutputInterface $output
163+
*/
160164
private function executeFixture(\Magento\Setup\Fixtures\Fixture $fixture, OutputInterface $output)
161165
{
162166
$output->write('<info>' . $fixture->getActionTitle() . '... </info>');

setup/src/Magento/Setup/Console/Style/MagentoStyle.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,10 @@ private function autoPrependText()
518518
}
519519
}
520520

521+
/**
522+
* @param array $messages
523+
* @return array
524+
*/
521525
private function reduceBuffer($messages)
522526
{
523527
// We need to know if the two last chars are PHP_EOL

0 commit comments

Comments
 (0)