Skip to content

Commit 78ac663

Browse files
committed
Merge branch 'ACP2E-185' of https://github.com/magento-l3/magento2ce into PR-L3-2023-01-31
2 parents fd4a70e + e876b76 commit 78ac663

File tree

8 files changed

+32
-32
lines changed

8 files changed

+32
-32
lines changed

app/code/Magento/Catalog/Controller/Product/View.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ protected function noProductRedirect()
125125
$resultForward->forward('noroute');
126126
return $resultForward;
127127
}
128+
return $this->getResponse();
128129
}
129130

130131
/**

app/code/Magento/Catalog/Test/Unit/Controller/Product/ViewTest.php

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

2828
/**
2929
* Responsible for testing product view action on a strorefront.
30+
*
31+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
3032
*/
3133
class ViewTest extends TestCase
3234
{

app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/Product/CompositeCollectionPostProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(array $collectionPostProcessors = [])
2929
}
3030

3131
/**
32-
* {@inheritdoc}
32+
* @inheritdoc
3333
*/
3434
public function process(Collection $collection, array $attributeNames, ContextInterface $context = null): Collection
3535
{

app/code/Magento/CatalogGraphQl/etc/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
<plugin name="productAttributesDynamicFields" type="Magento\CatalogGraphQl\Plugin\Search\Request\ConfigReader" />
9898
</type>
9999

100-
<preference type="\Magento\CatalogGraphQl\Model\Resolver\Product\Price\Provider" for="\Magento\CatalogGraphQl\Model\Resolver\Product\Price\ProviderInterface"/>
100+
<preference type="Magento\CatalogGraphQl\Model\Resolver\Product\Price\Provider" for="Magento\CatalogGraphQl\Model\Resolver\Product\Price\ProviderInterface"/>
101101

102102
<preference type="Magento\CatalogGraphQl\Model\Resolver\Products\Query\Search" for="Magento\CatalogGraphQl\Model\Resolver\Products\Query\ProductQueryInterface"/>
103103

app/code/Magento/Elasticsearch/SearchAdapter/Aggregation/DataProviderFactory.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
class DataProviderFactory
1919
{
2020
/**
21-
* Object Manager
22-
*
2321
* @var ObjectManagerInterface
2422
*/
2523
private $objectManager;
@@ -33,8 +31,9 @@ public function __construct(ObjectManagerInterface $objectManager)
3331
}
3432

3533
/**
36-
* Recreates an instance of the DataProviderInterface in order to support QueryAware interface
37-
* and add a QueryContainer to the DataProvider
34+
* Recreates an instance of the DataProviderInterface.
35+
*
36+
* It should be done in order to support QueryAware interface and add a QueryContainer to the DataProvider.
3837
*
3938
* The Query is an optional argument as it's not required to pass the QueryContainer for data providers
4039
* who not implementing QueryAwareInterface, but the method is also responsible for checking

app/code/Magento/Elasticsearch/SearchAdapter/Dynamic/DataProvider.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*
1717
* @api
1818
* @since 100.1.0
19+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1920
*/
2021
class DataProvider implements \Magento\Framework\Search\Dynamic\DataProviderInterface, QueryAwareInterface
2122
{
@@ -50,32 +51,32 @@ class DataProvider implements \Magento\Framework\Search\Dynamic\DataProviderInte
5051

5152
/**
5253
* @var \Magento\Elasticsearch\Model\Config
53-
* @deprecated 100.2.0 as this class shouldn't be responsible for query building
54-
* and should only modify existing query
54+
* @deprecated 100.2.0
55+
* @see this class shouldn't be responsible for query building and should only modify existing query
5556
* @since 100.1.0
5657
*/
5758
protected $clientConfig;
5859

5960
/**
6061
* @var \Magento\Store\Model\StoreManagerInterface
61-
* @deprecated 100.2.0 as this class shouldn't be responsible for query building
62-
* and should only modify existing query
62+
* @deprecated 100.2.0
63+
* @see this class shouldn't be responsible for query building and should only modify existing query
6364
* @since 100.1.0
6465
*/
6566
protected $storeManager;
6667

6768
/**
6869
* @var \Magento\Elasticsearch\SearchAdapter\SearchIndexNameResolver
69-
* @deprecated 100.2.0 as this class shouldn't be responsible for query building
70-
* and should only modify existing query
70+
* @deprecated 100.2.0
71+
* @see this class shouldn't be responsible for query building and should only modify existing query
7172
* @since 100.1.0
7273
*/
7374
protected $searchIndexNameResolver;
7475

7576
/**
7677
* @var string
77-
* @deprecated 100.2.0 as this class shouldn't be responsible for query building
78-
* and should only modify existing query
78+
* @deprecated 100.2.0
79+
* @see this class shouldn't be responsible for query building and should only modify existing query
7980
* @since 100.1.0
8081
*/
8182
protected $indexerId;

app/code/Magento/ImportExport/Model/Export.php

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,38 +10,36 @@
1010
* Export model
1111
*
1212
* @api
13-
*
1413
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1514
* @since 100.0.2
1615
* @deprecated 100.3.2
16+
* @see \Magento\ImportExport\Api\ExportManagementInterface
1717
*/
1818
class Export extends \Magento\ImportExport\Model\AbstractModel
1919
{
20-
const FILTER_ELEMENT_GROUP = 'export_filter';
20+
public const FILTER_ELEMENT_GROUP = 'export_filter';
2121

22-
const FILTER_ELEMENT_SKIP = 'skip_attr';
22+
public const FILTER_ELEMENT_SKIP = 'skip_attr';
2323

2424
/**
2525
* Allow multiple values wrapping in double quotes for additional attributes.
2626
*/
27-
const FIELDS_ENCLOSURE = 'fields_enclosure';
27+
public const FIELDS_ENCLOSURE = 'fields_enclosure';
2828

2929
/**
3030
* Filter fields types.
3131
*/
32-
const FILTER_TYPE_SELECT = 'select';
32+
public const FILTER_TYPE_SELECT = 'select';
3333

34-
const FILTER_TYPE_MULTISELECT = 'multiselect';
34+
public const FILTER_TYPE_MULTISELECT = 'multiselect';
3535

36-
const FILTER_TYPE_INPUT = 'input';
36+
public const FILTER_TYPE_INPUT = 'input';
3737

38-
const FILTER_TYPE_DATE = 'date';
38+
public const FILTER_TYPE_DATE = 'date';
3939

40-
const FILTER_TYPE_NUMBER = 'number';
40+
public const FILTER_TYPE_NUMBER = 'number';
4141

4242
/**
43-
* Entity adapter.
44-
*
4543
* @var \Magento\ImportExport\Model\Export\Entity\AbstractEntity
4644
*/
4745
protected $_entityAdapter;
@@ -225,6 +223,7 @@ public function filterAttributeCollection(\Magento\Framework\Data\Collection $co
225223
* @param \Magento\Eav\Model\Entity\Attribute $attribute
226224
* @return string
227225
* @throws \Magento\Framework\Exception\LocalizedException
226+
* phpcs:disable Magento2.Functions.StaticFunction
228227
*/
229228
public static function getAttributeFilterType(\Magento\Eav\Model\Entity\Attribute $attribute)
230229
{
@@ -245,13 +244,15 @@ public static function getAttributeFilterType(\Magento\Eav\Model\Entity\Attribut
245244
__('We can\'t determine the attribute filter type.')
246245
);
247246
}
247+
//phpcs:enable Magento2.Functions.StaticFunction
248248

249249
/**
250250
* Determine filter type for static attribute.
251251
*
252252
* @static
253253
* @param \Magento\Eav\Model\Entity\Attribute $attribute
254254
* @return string
255+
* phpcs:disable Magento2.Functions.StaticFunction
255256
*/
256257
public static function getStaticAttributeFilterType(\Magento\Eav\Model\Entity\Attribute $attribute)
257258
{
@@ -277,6 +278,7 @@ public static function getStaticAttributeFilterType(\Magento\Eav\Model\Entity\At
277278
}
278279
return $type;
279280
}
281+
//phpcs:enable Magento2.Functions.StaticFunction
280282

281283
/**
282284
* MIME-type for 'Content-Type' header.

app/code/Magento/Quote/Model/Product/Plugin/UpdateQuote.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,11 @@ class UpdateQuote
1818
{
1919

2020
/**
21-
* Quote Resource
22-
*
2321
* @var Quote
2422
*/
2523
private $resource;
2624

2725
/**
28-
* Product ID locator.
29-
*
3026
* @var ProductIdLocatorInterface
3127
*/
3228
private $productIdLocator;
@@ -49,8 +45,8 @@ public function __construct(
4945
* Update the quote trigger_recollect column is 1 when product price is changed through API.
5046
*
5147
* @param TierPriceStorageInterface $subject
52-
* @param $result
53-
* @param $prices
48+
* @param array $result
49+
* @param array $prices
5450
* @return array
5551
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
5652
*/
@@ -61,7 +57,6 @@ public function afterUpdate(
6157
): array {
6258
$this->resource->markQuotesRecollect($this->retrieveAffectedProductIdsForPrices($prices));
6359
return $result;
64-
6560
}
6661

6762
/**

0 commit comments

Comments
 (0)