Skip to content

Commit 4125cb9

Browse files
committed
ACPT-1219: Fix Static Tests failures for application-Server PR
1 parent 240a19d commit 4125cb9

File tree

19 files changed

+59
-37
lines changed

19 files changed

+59
-37
lines changed

app/code/Magento/Bundle/Pricing/Adjustment/Calculator.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ protected function getSelectionAmounts(Product $bundleProduct, $searchMin, $useR
215215
* @param Option $option
216216
* @param bool $canSkipRequiredOption
217217
* @return bool
218-
* @deprecated 100.2.0
218+
* @deprecated 100.2.0 Not used anymore.
219+
* @see Nothing
219220
*/
220221
protected function canSkipOption($option, $canSkipRequiredOption)
221222
{
@@ -227,7 +228,8 @@ protected function canSkipOption($option, $canSkipRequiredOption)
227228
*
228229
* @param Product $bundleProduct
229230
* @return bool
230-
* @deprecated 100.2.0
231+
* @deprecated 100.2.0 Not used anymore.
232+
* @see Nothing
231233
*/
232234
protected function hasRequiredOption($bundleProduct)
233235
{
@@ -246,6 +248,7 @@ function ($item) {
246248
* @param Product $saleableItem
247249
* @return \Magento\Bundle\Model\ResourceModel\Option\Collection
248250
* @deprecated 100.2.0
251+
* @see Nothing
249252
*/
250253
protected function getBundleOptions(Product $saleableItem)
251254
{

app/code/Magento/Bundle/Pricing/Price/BundleOptions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public function calculateOptions(
9292
/** @var \Magento\Bundle\Pricing\Price\BundleSelectionPrice $selectionPriceList */
9393
$selectionPriceList = $this->calculator->createSelectionPriceList($option, $bundleProduct);
9494
$selectionPriceList = $this->calculator->processOptions($option, $selectionPriceList, $searchMin);
95+
// phpcs:ignore Magento2.Performance.ForeachArrayMerge
9596
$priceList = array_merge($priceList, $selectionPriceList);
9697
}
9798
$amount = $this->calculator->calculateBundleAmount(0., $bundleProduct, $priceList);

app/code/Magento/Bundle/Pricing/Price/BundleRegularPrice.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
/**
1616
* Bundle product regular price model
1717
*/
18-
class BundleRegularPrice extends \Magento\Catalog\Pricing\Price\RegularPrice implements RegularPriceInterface, ResetAfterRequestInterface
18+
class BundleRegularPrice extends \Magento\Catalog\Pricing\Price\RegularPrice implements RegularPriceInterface,
19+
ResetAfterRequestInterface
1920
{
2021
/**
2122
* @var BundleCalculatorInterface

app/code/Magento/BundleGraphQl/Model/Resolver/BundleItems.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function __construct(
6060
/**
6161
* Fetch and format bundle option items.
6262
*
63-
* @inheritDoc
63+
* {@inheritDoc}
6464
*/
6565
public function resolve(Field $field, $context, ResolveInfo $info, array $value = null, array $args = null)
6666
{

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
2626
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2727
*/
28-
class Bundle extends \Magento\CatalogImportExport\Model\Import\Product\Type\AbstractType
29-
implements ResetAfterRequestInterface
28+
class Bundle extends \Magento\CatalogImportExport\Model\Import\Product\Type\AbstractType implements
29+
ResetAfterRequestInterface
3030
{
3131
/**
3232
* Delimiter before product option value.
@@ -796,6 +796,4 @@ public function _resetState(): void
796796
$this->_cachedOptionSelectQuery = [];
797797
$this->_cachedSkuToProducts = [];
798798
}
799-
800-
801799
}

app/code/Magento/Catalog/Helper/Category.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
*/
2020
class Category extends AbstractHelper implements ResetAfterRequestInterface
2121
{
22-
const XML_PATH_USE_CATEGORY_CANONICAL_TAG = 'catalog/seo/category_canonical_tag';
22+
public const XML_PATH_USE_CATEGORY_CANONICAL_TAG = 'catalog/seo/category_canonical_tag';
2323

24-
const XML_PATH_CATEGORY_ROOT_ID = 'catalog/category/root_id';
24+
public const XML_PATH_CATEGORY_ROOT_ID = 'catalog/category/root_id';
2525

2626
/**
2727
* Store categories cache
@@ -31,14 +31,14 @@ class Category extends AbstractHelper implements ResetAfterRequestInterface
3131
protected $_storeCategories = [];
3232

3333
/**
34-
* Store manager
34+
* Store manager instance
3535
*
3636
* @var \Magento\Store\Model\StoreManagerInterface
3737
*/
3838
protected $_storeManager;
3939

4040
/**
41-
* Category factory
41+
* Category factory instance
4242
*
4343
* @var \Magento\Catalog\Model\CategoryFactory
4444
*/

app/code/Magento/Catalog/Model/Layer/FilterList.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
*/
1717
class FilterList implements ResetAfterRequestInterface
1818
{
19-
const CATEGORY_FILTER = 'category';
20-
const ATTRIBUTE_FILTER = 'attribute';
21-
const PRICE_FILTER = 'price';
22-
const DECIMAL_FILTER = 'decimal';
19+
public const CATEGORY_FILTER = 'category';
20+
public const ATTRIBUTE_FILTER = 'attribute';
21+
public const PRICE_FILTER = 'price';
22+
public const DECIMAL_FILTER = 'decimal';
2323

2424
/**
2525
* Filter factory

app/code/Magento/CatalogGraphQl/Model/Resolver/Product/PriceRange.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
namespace Magento\CatalogGraphQl\Model\Resolver\Product;
99

1010
use Magento\CatalogGraphQl\Model\PriceRangeDataProvider;
11-
use Magento\CatalogGraphQl\Model\Resolver\Product\Price\Discount;
12-
use Magento\CatalogGraphQl\Model\Resolver\Product\Price\ProviderPool as PriceProviderPool;
1311
use Magento\Framework\App\ObjectManager;
1412
use Magento\Framework\GraphQl\Query\ResolverInterface;
1513
use Magento\Framework\GraphQl\Config\Element\Field;
@@ -26,13 +24,9 @@ class PriceRange implements ResolverInterface
2624
private PriceRangeDataProvider $priceRangeDataProvider;
2725

2826
/**
29-
* @param PriceProviderPool $priceProviderPool Deprecated. @use $priceRangeDataProvider
30-
* @param Discount $discount Deprecated. @use $priceRangeDataProvider
3127
* @param PriceRangeDataProvider|null $priceRangeDataProvider
3228
*/
3329
public function __construct(
34-
PriceProviderPool $priceProviderPool,
35-
Discount $discount,
3630
PriceRangeDataProvider $priceRangeDataProvider = null
3731
) {
3832
$this->priceRangeDataProvider = $priceRangeDataProvider

app/code/Magento/CatalogInventory/Model/StockRegistryStorage.php

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
use Magento\CatalogInventory\Api\Data\StockStatusInterface;
1111
use Magento\Framework\ObjectManager\ResetAfterRequestInterface;
1212

13-
/**
14-
* Class StockRegistryStorage
15-
*/
1613
class StockRegistryStorage implements ResetAfterRequestInterface
1714
{
1815
/**
@@ -31,6 +28,7 @@ class StockRegistryStorage implements ResetAfterRequestInterface
3128
private $stockStatuses = [];
3229

3330
/**
31+
*
3432
* @param int $scopeId
3533
* @return StockInterface
3634
*/
@@ -40,6 +38,7 @@ public function getStock($scopeId)
4038
}
4139

4240
/**
41+
*
4342
* @param int $scopeId
4443
* @param StockInterface $value
4544
* @return void
@@ -50,6 +49,7 @@ public function setStock($scopeId, StockInterface $value)
5049
}
5150

5251
/**
52+
*
5353
* @param int|null $scopeId
5454
* @return void
5555
*/
@@ -63,6 +63,7 @@ public function removeStock($scopeId = null)
6363
}
6464

6565
/**
66+
*
6667
* @param int $productId
6768
* @param int $scopeId
6869
* @return StockItemInterface
@@ -73,6 +74,7 @@ public function getStockItem($productId, $scopeId)
7374
}
7475

7576
/**
77+
*
7678
* @param int $productId
7779
* @param int $scopeId
7880
* @param StockItemInterface $value
@@ -84,6 +86,7 @@ public function setStockItem($productId, $scopeId, StockItemInterface $value)
8486
}
8587

8688
/**
89+
*
8790
* @param int $productId
8891
* @param int|null $scopeId
8992
* @return void
@@ -98,6 +101,7 @@ public function removeStockItem($productId, $scopeId = null)
98101
}
99102

100103
/**
104+
*
101105
* @param int $productId
102106
* @param int $scopeId
103107
* @return StockStatusInterface
@@ -108,6 +112,7 @@ public function getStockStatus($productId, $scopeId)
108112
}
109113

110114
/**
115+
*
111116
* @param int $productId
112117
* @param int $scopeId
113118
* @param StockStatusInterface $value
@@ -119,6 +124,7 @@ public function setStockStatus($productId, $scopeId, StockStatusInterface $value
119124
}
120125

121126
/**
127+
*
122128
* @param int $productId
123129
* @param int|null $scopeId
124130
* @return void
@@ -133,6 +139,7 @@ public function removeStockStatus($productId, $scopeId = null)
133139
}
134140

135141
/**
142+
*
136143
* Clear cached entities
137144
*
138145
* @return void

app/code/Magento/Customer/Model/CustomerRegistry.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ public function retrieveByEmail($customerEmail, $websiteId = null)
117117
/** @var Customer $customer */
118118
$customer = $this->customerFactory->create();
119119

120-
if (isset($websiteId)) {
121-
$customer->setWebsiteId($websiteId);
122-
}
120+
$customer->setWebsiteId($websiteId);
123121

124122
$customer->loadByEmail($customerEmail);
125123
if (!$customer->getEmail()) {

0 commit comments

Comments
 (0)