Skip to content

Commit a45a0f5

Browse files
Indrani SonawaneIndrani Sonawane
authored andcommitted
Fixed few static test failures
1 parent 7116daf commit a45a0f5

File tree

5 files changed

+33
-10
lines changed

5 files changed

+33
-10
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2017 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\CatalogInventory\Model;
77

app/code/Magento/CatalogInventory/Model/ResourceModel/Stock/Item/StockItemCriteria.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2021 Adobe
4+
* All Rights Reserved.
55
*/
66

77
namespace Magento\CatalogInventory\Model\ResourceModel\Stock\Item;
@@ -10,7 +10,7 @@
1010
use Magento\Framework\Data\AbstractCriteria;
1111

1212
/**
13-
* Class StockItemCriteria
13+
* Class StockItemCriteria Resource model
1414
*/
1515
class StockItemCriteria extends AbstractCriteria implements StockItemCriteriaInterface
1616
{

app/code/Magento/CatalogInventory/Model/ResourceModel/Stock/Status/StockStatusCriteria.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Magento\Framework\Data\AbstractCriteria;
1111

1212
/**
13-
* Class StockStatusCriteria
13+
* Class StockStatusCriteria Resource model
1414
*/
1515
class StockStatusCriteria extends AbstractCriteria implements StockStatusCriteriaInterface
1616
{

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Magento\CatalogInventory\Model\Spi\StockRegistryProviderInterface;
1616

1717
/**
18-
* Class StockRegistry
18+
* Class Catalog StockRegistry
1919
*
2020
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2121
*/
@@ -68,6 +68,8 @@ public function __construct(
6868
}
6969

7070
/**
71+
* Get Stock data
72+
*
7173
* @param int $scopeId
7274
* @return \Magento\CatalogInventory\Api\Data\StockInterface
7375
*/
@@ -78,6 +80,8 @@ public function getStock($scopeId = null)
7880
}
7981

8082
/**
83+
* Get Stock Item data
84+
*
8185
* @param int $productId
8286
* @param int $scopeId
8387
* @return StockItemInterface
@@ -89,6 +93,8 @@ public function getStockItem($productId, $scopeId = null)
8993
}
9094

9195
/**
96+
* Get Stock Item By SKU
97+
*
9298
* @param string $productSku
9399
* @param int $scopeId
94100
* @return StockItemInterface
@@ -102,6 +108,8 @@ public function getStockItemBySku($productSku, $scopeId = null)
102108
}
103109

104110
/**
111+
* Get Stock status
112+
*
105113
* @param int $productId
106114
* @param int $scopeId
107115
* @return \Magento\CatalogInventory\Api\Data\StockStatusInterface
@@ -113,6 +121,8 @@ public function getStockStatus($productId, $scopeId = null)
113121
}
114122

115123
/**
124+
* Get Stock status by SKU
125+
*
116126
* @param string $productSku
117127
* @param int $scopeId
118128
* @return \Magento\CatalogInventory\Api\Data\StockStatusInterface
@@ -127,6 +137,7 @@ public function getStockStatusBySku($productSku, $scopeId = null)
127137

128138
/**
129139
* Retrieve Product stock status
140+
*
130141
* @param int $productId
131142
* @param int $scopeId
132143
* @return int
@@ -139,6 +150,8 @@ public function getProductStockStatus($productId, $scopeId = null)
139150
}
140151

141152
/**
153+
* Get Product Stock status by SKU
154+
*
142155
* @param string $productSku
143156
* @param null $scopeId
144157
* @return int
@@ -182,6 +195,8 @@ public function updateStockItemBySku($productSku, StockItemInterface $stockItem)
182195
}
183196

184197
/**
198+
* Resolve the Product Id
199+
*
185200
* @param string $productSku
186201
* @return int
187202
* @throws \Magento\Framework\Exception\NoSuchEntityException

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2024 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\CatalogInventory\Model;
77

@@ -17,7 +17,7 @@
1717
use Magento\CatalogInventory\Api\StockStatusCriteriaInterfaceFactory;
1818

1919
/**
20-
* Class StockRegistryProvider
20+
* Class Catalog StockRegistryProvider
2121
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2222
*/
2323
class StockRegistryProvider implements StockRegistryProviderInterface
@@ -107,6 +107,8 @@ public function __construct(
107107
}
108108

109109
/**
110+
* Get Stock
111+
*
110112
* @param int|null $scopeId
111113
* @return \Magento\CatalogInventory\Api\Data\StockInterface
112114
*/
@@ -128,6 +130,8 @@ public function getStock($scopeId)
128130
}
129131

130132
/**
133+
* Get Stock Item
134+
*
131135
* @param int $productId
132136
* @param int $scopeId
133137
* @return \Magento\CatalogInventory\Api\Data\StockItemInterface
@@ -150,6 +154,8 @@ public function getStockItem($productId, $scopeId)
150154
}
151155

152156
/**
157+
* Get Stock Status
158+
*
153159
* @param int $productId
154160
* @param int $scopeId
155161
* @return \Magento\CatalogInventory\Api\Data\StockStatusInterface
@@ -173,6 +179,8 @@ public function getStockStatus($productId, $scopeId)
173179
}
174180

175181
/**
182+
* Get Stock Registry Storage
183+
*
176184
* @return StockRegistryStorage
177185
*/
178186
private function getStockRegistryStorage()

0 commit comments

Comments
 (0)