Skip to content

Commit 8096bdd

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

File tree

39 files changed

+111
-100
lines changed

39 files changed

+111
-100
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
namespace Magento\Bundle\Pricing\Price;
88

99
use Magento\Bundle\Pricing\Adjustment\BundleCalculatorInterface;
10+
use Magento\Catalog\Pricing\Price\RegularPrice;
1011
use Magento\Framework\ObjectManager\ResetAfterRequestInterface;
1112
use Magento\Framework\Pricing\Amount\AmountInterface;
1213
use Magento\Catalog\Pricing\Price\CustomOptionPrice;
@@ -15,8 +16,7 @@
1516
/**
1617
* Bundle product regular price model
1718
*/
18-
class BundleRegularPrice extends \Magento\Catalog\Pricing\Price\RegularPrice implements RegularPriceInterface,
19-
ResetAfterRequestInterface
19+
class BundleRegularPrice extends RegularPrice implements RegularPriceInterface, ResetAfterRequestInterface
2020
{
2121
/**
2222
* @var BundleCalculatorInterface

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ public function __construct(
5858
}
5959

6060
/**
61-
* Fetch and format bundle option items.
62-
*
63-
* {@inheritDoc}
61+
* @inheritDoc
6462
*/
6563
public function resolve(Field $field, $context, ResolveInfo $info, array $value = null, array $args = null)
6664
{

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class StockRegistryStorage implements ResetAfterRequestInterface
2828
private $stockStatuses = [];
2929

3030
/**
31+
* Get Stock Data
3132
*
3233
* @param int $scopeId
3334
* @return StockInterface
@@ -38,6 +39,7 @@ public function getStock($scopeId)
3839
}
3940

4041
/**
42+
* Set Stock cache
4143
*
4244
* @param int $scopeId
4345
* @param StockInterface $value
@@ -49,6 +51,7 @@ public function setStock($scopeId, StockInterface $value)
4951
}
5052

5153
/**
54+
* Delete cached Stock based on scopeId
5255
*
5356
* @param int|null $scopeId
5457
* @return void
@@ -63,6 +66,7 @@ public function removeStock($scopeId = null)
6366
}
6467

6568
/**
69+
* Retrieve Stock Item
6670
*
6771
* @param int $productId
6872
* @param int $scopeId
@@ -74,6 +78,7 @@ public function getStockItem($productId, $scopeId)
7478
}
7579

7680
/**
81+
* Update Stock Item
7782
*
7883
* @param int $productId
7984
* @param int $scopeId
@@ -86,6 +91,7 @@ public function setStockItem($productId, $scopeId, StockItemInterface $value)
8691
}
8792

8893
/**
94+
* Remove stock Item based on productId & scopeId
8995
*
9096
* @param int $productId
9197
* @param int|null $scopeId
@@ -101,6 +107,7 @@ public function removeStockItem($productId, $scopeId = null)
101107
}
102108

103109
/**
110+
* Retrieve stock status
104111
*
105112
* @param int $productId
106113
* @param int $scopeId
@@ -112,6 +119,7 @@ public function getStockStatus($productId, $scopeId)
112119
}
113120

114121
/**
122+
* Update stock Status
115123
*
116124
* @param int $productId
117125
* @param int $scopeId
@@ -124,6 +132,7 @@ public function setStockStatus($productId, $scopeId, StockStatusInterface $value
124132
}
125133

126134
/**
135+
* Clear stock status
127136
*
128137
* @param int $productId
129138
* @param int|null $scopeId
@@ -139,7 +148,6 @@ public function removeStockStatus($productId, $scopeId = null)
139148
}
140149

141150
/**
142-
*
143151
* Clear cached entities
144152
*
145153
* @return void

app/code/Magento/Config/Console/Command/ConfigShow/ValueProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ValueProcessor
2626
/**
2727
* Placeholder for the output of sensitive data.
2828
*/
29-
const SAFE_PLACEHOLDER = '******';
29+
public const SAFE_PLACEHOLDER = '******';
3030

3131
/**
3232
* System configuration structure factory.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class CustomerRegistry implements ResetAfterRequestInterface
2222
{
23-
const REGISTRY_SEPARATOR = ':';
23+
public const REGISTRY_SEPARATOR = ':';
2424

2525
/**
2626
* @var CustomerFactory

app/code/Magento/Customer/Model/Metadata/AttributeMetadataCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class AttributeMetadataCache implements ResetAfterRequestInterface
2323
/**
2424
* Cache prefix
2525
*/
26-
const ATTRIBUTE_METADATA_CACHE_PREFIX = 'ATTRIBUTE_METADATA_INSTANCES_CACHE';
26+
public const ATTRIBUTE_METADATA_CACHE_PREFIX = 'ATTRIBUTE_METADATA_INSTANCES_CACHE';
2727

2828
/**
2929
* @var CacheInterface

app/code/Magento/Eav/Model/Entity/VersionControl/Metadata.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
namespace Magento\Eav\Model\Entity\VersionControl;
77

88
use Magento\Framework\ObjectManager\ResetAfterRequestInterface;
9+
use Magento\Framework\Model\ResourceModel\Db\VersionControl\Metadata as ResourceModelMetaData;
910

1011
/**
1112
* Class Metadata represents a list of entity fields that are applicable for persistence operations
1213
*/
13-
class Metadata extends \Magento\Framework\Model\ResourceModel\Db\VersionControl\Metadata implements ResetAfterRequestInterface
14+
class Metadata extends ResourceModelMetaData implements ResetAfterRequestInterface
1415
{
1516
/**
1617
* Returns list of entity fields that are applicable for persistence operations

app/code/Magento/GiftMessage/Model/OrderItemRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class OrderItemRepository implements \Magento\GiftMessage\Api\OrderItemRepositoryInterface, ResetAfterRequestInterface
1919
{
2020
/**
21-
* Order factory.
21+
* Factory for Order instances.
2222
*
2323
* @var \Magento\Sales\Model\OrderFactory
2424
*/
@@ -39,7 +39,7 @@ class OrderItemRepository implements \Magento\GiftMessage\Api\OrderItemRepositor
3939
protected $storeManager;
4040

4141
/**
42-
* Gift message save model.
42+
* Model for Gift message save.
4343
*
4444
* @var \Magento\GiftMessage\Model\Save
4545
*/

app/code/Magento/GraphQl/Model/Query/ContextFactory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ public function get(): ContextInterface
104104
return $this->context;
105105
}
106106

107+
/**
108+
* @inheritDoc
109+
*/
107110
public function _resetState(): void
108111
{
109112
$this->context = null;

app/code/Magento/Indexer/Console/Command/IndexerSetDimensionsModeCommand.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
*/
2222
class IndexerSetDimensionsModeCommand extends AbstractIndexerCommand
2323
{
24-
const INPUT_KEY_MODE = 'mode';
25-
const INPUT_KEY_INDEXER = 'indexer';
26-
const DIMENSION_MODE_NONE = 'none';
27-
const XML_PATH_DIMENSIONS_MODE_MASK = 'indexer/%s/dimensions_mode';
24+
public const INPUT_KEY_MODE = 'mode';
25+
public const INPUT_KEY_INDEXER = 'indexer';
26+
public const DIMENSION_MODE_NONE = 'none';
27+
public const XML_PATH_DIMENSIONS_MODE_MASK = 'indexer/%s/dimensions_mode';
2828

2929
/**
3030
* @var string
@@ -59,7 +59,7 @@ public function __construct(
5959
}
6060

6161
/**
62-
* {@inheritdoc}
62+
* @inheritdoc
6363
*/
6464
protected function configure()
6565
{
@@ -70,7 +70,8 @@ protected function configure()
7070
}
7171

7272
/**
73-
* {@inheritdoc}
73+
*
74+
* @inheritdoc
7475
* @param InputInterface $input
7576
* @param OutputInterface $output
7677
* @return int

0 commit comments

Comments
 (0)