Skip to content

Commit 9ab6102

Browse files
committed
Fixed CS
1 parent 2f10e96 commit 9ab6102

File tree

53 files changed

+0
-803
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+0
-803
lines changed

src/Spryker/Client/ProductStorage/Builder/ProductConcreteStorageUrlBuilder.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ class ProductConcreteStorageUrlBuilder implements ProductConcreteStorageUrlBuild
1616
*/
1717
protected const ATTRIBUTE_QUERY_STRING_PREFIX = 'attribute';
1818

19-
/**
20-
* @param \Generated\Shared\Transfer\ProductConcreteStorageTransfer $productConcreteStorageTransfer
21-
*
22-
* @return string
23-
*/
2419
public function buildProductConcreteUrl(ProductConcreteStorageTransfer $productConcreteStorageTransfer): string
2520
{
2621
$productConcreteStorageTransfer->requireUrl();
@@ -32,11 +27,6 @@ public function buildProductConcreteUrl(ProductConcreteStorageTransfer $productC
3227
);
3328
}
3429

35-
/**
36-
* @param \Generated\Shared\Transfer\ProductConcreteStorageTransfer $productConcreteStorageTransfer
37-
*
38-
* @return string
39-
*/
4030
protected function resolveProductConcreteQueryString(
4131
ProductConcreteStorageTransfer $productConcreteStorageTransfer
4232
): string {

src/Spryker/Client/ProductStorage/Builder/ProductConcreteStorageUrlBuilderInterface.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,5 @@
1111

1212
interface ProductConcreteStorageUrlBuilderInterface
1313
{
14-
/**
15-
* @param \Generated\Shared\Transfer\ProductConcreteStorageTransfer $productConcreteStorageTransfer
16-
*
17-
* @return string
18-
*/
1914
public function buildProductConcreteUrl(ProductConcreteStorageTransfer $productConcreteStorageTransfer): string;
2015
}

src/Spryker/Client/ProductStorage/Filter/ProductAbstractAttributeMapRestrictionFilter.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,11 @@ class ProductAbstractAttributeMapRestrictionFilter implements ProductAbstractAtt
4141
*/
4242
protected $productConcreteStorageReader;
4343

44-
/**
45-
* @param \Spryker\Client\ProductStorage\Storage\ProductConcreteStorageReaderInterface $productConcreteStorageReader
46-
*/
4744
public function __construct(ProductConcreteStorageReaderInterface $productConcreteStorageReader)
4845
{
4946
$this->productConcreteStorageReader = $productConcreteStorageReader;
5047
}
5148

52-
/**
53-
* @param array $productStorageData
54-
*
55-
* @return array
56-
*/
5749
public function filterAbstractProductVariantsData(array $productStorageData): array
5850
{
5951
if (!isset($productStorageData[ProductStorageConfig::RESOURCE_TYPE_ATTRIBUTE_MAP][static::KEY_PRODUCT_CONCRETE_IDS])) {
@@ -216,12 +208,6 @@ protected function createRecursiveIterator(array $attributeVariants): RecursiveI
216208
);
217209
}
218210

219-
/**
220-
* @param string $attributeKey
221-
* @param string $attributeValue
222-
*
223-
* @return string
224-
*/
225211
protected function getAttributeKeyValue(string $attributeKey, string $attributeValue): string
226212
{
227213
return implode(ProductStorageConfig::ATTRIBUTE_MAP_PATH_DELIMITER, [
@@ -273,11 +259,6 @@ protected function filterOutRestrictedAttributeVariants(
273259
return $attributeVariantMap;
274260
}
275261

276-
/**
277-
* @param array $attributeVariantMap
278-
*
279-
* @return array
280-
*/
281262
protected function mapSuperAttributesByAttributeVariantMap(array $attributeVariantMap): array
282263
{
283264
$filteredSuperAttributes = [];

src/Spryker/Client/ProductStorage/Filter/ProductAbstractAttributeMapRestrictionFilterInterface.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,5 @@
99

1010
interface ProductAbstractAttributeMapRestrictionFilterInterface
1111
{
12-
/**
13-
* @param array $productStorageData
14-
*
15-
* @return array
16-
*/
1712
public function filterAbstractProductVariantsData(array $productStorageData): array;
1813
}

src/Spryker/Client/ProductStorage/Filter/ProductAttributeFilter.php

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,11 @@ class ProductAttributeFilter implements ProductAttributeFilterInterface
2626
*/
2727
protected $utilSanitizeService;
2828

29-
/**
30-
* @param \Spryker\Client\ProductStorage\Dependency\Service\ProductStorageToUtilSanitizeServiceInterface $utilSanitizeService
31-
*/
3229
public function __construct(ProductStorageToUtilSanitizeServiceInterface $utilSanitizeService)
3330
{
3431
$this->utilSanitizeService = $utilSanitizeService;
3532
}
3633

37-
/**
38-
* @param array $selectedVariantNode
39-
* @param \Generated\Shared\Transfer\ProductViewTransfer $productViewTransfer
40-
*
41-
* @return array
42-
*/
4334
public function filterAvailableProductAttributes(
4435
array $selectedVariantNode,
4536
ProductViewTransfer $productViewTransfer
@@ -51,11 +42,6 @@ public function filterAvailableProductAttributes(
5142
return $this->findAvailableAttributes($selectedVariantNode);
5243
}
5344

54-
/**
55-
* @param \Generated\Shared\Transfer\ProductViewTransfer $productViewTransfer
56-
*
57-
* @return array
58-
*/
5945
protected function getAvailableAttributes(ProductViewTransfer $productViewTransfer): array
6046
{
6147
$availableAttributes = [];
@@ -100,13 +86,6 @@ protected function findAvailableAttributes(array $selectedNode, array $filteredA
10086
return $filteredAttributes;
10187
}
10288

103-
/**
104-
* @param array $superAttributes
105-
* @param array $selectedAttributes
106-
* @param array $availableAttributes
107-
*
108-
* @return array
109-
*/
11089
protected function filterAvailableAttributes(
11190
array $superAttributes,
11291
array $selectedAttributes,
@@ -125,12 +104,6 @@ protected function filterAvailableAttributes(
125104
return $availableAttributes;
126105
}
127106

128-
/**
129-
* @param array $selectedAttributes
130-
* @param array $productSuperAttributes
131-
*
132-
* @return bool
133-
*/
134107
protected function isSubsetAttributes(array $selectedAttributes, array $productSuperAttributes): bool
135108
{
136109
foreach ($selectedAttributes as $superAttributeKey => $superAttributeValue) {
@@ -142,13 +115,6 @@ protected function isSubsetAttributes(array $selectedAttributes, array $productS
142115
return true;
143116
}
144117

145-
/**
146-
* @param array $superAttributeHaystack
147-
* @param string $superAttributeKey
148-
* @param string $superAttributeValue
149-
*
150-
* @return bool
151-
*/
152118
protected function includeSameAttribute(
153119
array $superAttributeHaystack,
154120
string $superAttributeKey,
@@ -157,13 +123,6 @@ protected function includeSameAttribute(
157123
return isset($superAttributeHaystack[$superAttributeKey]) && (string)$superAttributeHaystack[$superAttributeKey] === $superAttributeValue;
158124
}
159125

160-
/**
161-
* @param array $availableAttributes
162-
* @param string $attributeKey
163-
* @param string $attributeValue
164-
*
165-
* @return bool
166-
*/
167126
protected function hasAttributeWithValue(array $availableAttributes, string $attributeKey, string $attributeValue): bool
168127
{
169128
return isset($availableAttributes[$attributeKey]) && in_array($attributeValue, $availableAttributes[$attributeKey], true);

src/Spryker/Client/ProductStorage/Filter/ProductAttributeFilterInterface.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@
1111

1212
interface ProductAttributeFilterInterface
1313
{
14-
/**
15-
* @param array $selectedVariantNode
16-
* @param \Generated\Shared\Transfer\ProductViewTransfer $productViewTransfer
17-
*
18-
* @return array
19-
*/
2014
public function filterAvailableProductAttributes(
2115
array $selectedVariantNode,
2216
ProductViewTransfer $productViewTransfer

src/Spryker/Client/ProductStorage/Finder/AbstractProductViewTransferFinder.php

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,11 @@ abstract class AbstractProductViewTransferFinder implements ProductViewTransferF
2929
*/
3030
protected static $productViewTransfersCache = [];
3131

32-
/**
33-
* @param \Spryker\Client\ProductStorage\Mapper\ProductStorageDataMapperInterface $productStorageDataMapper
34-
*/
3532
public function __construct(ProductStorageDataMapperInterface $productStorageDataMapper)
3633
{
3734
$this->productStorageDataMapper = $productStorageDataMapper;
3835
}
3936

40-
/**
41-
* @param int $idProduct
42-
* @param string $localeName
43-
* @param array $selectedAttributes
44-
*
45-
* @return \Generated\Shared\Transfer\ProductViewTransfer|null
46-
*/
4737
public function findProductViewTransfer(int $idProduct, string $localeName, array $selectedAttributes = []): ?ProductViewTransfer
4838
{
4939
if ($this->hasProductViewTransferCache($idProduct, $localeName, $selectedAttributes)) {
@@ -118,25 +108,13 @@ protected function mapProductData(array $productStorageDataCollection, string $l
118108
return $productViewTransfers;
119109
}
120110

121-
/**
122-
* @param int $idProduct
123-
* @param string $localeName
124-
* @param array $selectedAttributes
125-
*
126-
* @return bool
127-
*/
128111
protected function hasProductViewTransferCache(int $idProduct, string $localeName, array $selectedAttributes = []): bool
129112
{
130113
$selectedAttributesCacheKey = $this->createSelectedAttributesCacheKey($selectedAttributes);
131114

132115
return isset(static::$productViewTransfersCache[$idProduct][$localeName][$selectedAttributesCacheKey]);
133116
}
134117

135-
/**
136-
* @param array $selectedAttributes
137-
*
138-
* @return string
139-
*/
140118
protected function createSelectedAttributesCacheKey(array $selectedAttributes = []): string
141119
{
142120
$selectedAttributesCacheKey = '';
@@ -196,13 +174,6 @@ protected function getProductSelectedAttributes(array $productData, array $selec
196174
return $selectedAttributes[$this->getProductDataProductId($productData)] ?? [];
197175
}
198176

199-
/**
200-
* @param \Generated\Shared\Transfer\ProductViewTransfer $productViewTransfer
201-
* @param string $localeName
202-
* @param array $selectedAttributes
203-
*
204-
* @return void
205-
*/
206177
protected function cacheProductViewTransfer(ProductViewTransfer $productViewTransfer, string $localeName, array $selectedAttributes = []): void
207178
{
208179
$selectedAttributesCacheKey = $this->createSelectedAttributesCacheKey($selectedAttributes);
@@ -225,11 +196,6 @@ protected function sortProductViewTransfersByProductIds(array $productViewTransf
225196
return $productViewTransfers;
226197
}
227198

228-
/**
229-
* @param \Generated\Shared\Transfer\ProductViewTransfer $productViewTransfer
230-
*
231-
* @return int
232-
*/
233199
abstract protected function getProductId(ProductViewTransfer $productViewTransfer): int;
234200

235201
/**

src/Spryker/Client/ProductStorage/Finder/ProductAbstractViewTransferFinder.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ class ProductAbstractViewTransferFinder extends AbstractProductViewTransferFinde
3434
*/
3535
protected $storeClient;
3636

37-
/**
38-
* @param \Spryker\Client\ProductStorage\Storage\ProductAbstractStorageReaderInterface $productAbstractStorage
39-
* @param \Spryker\Client\ProductStorage\Mapper\ProductStorageDataMapperInterface $productStorageDataMapper
40-
* @param \Spryker\Client\ProductStorage\Dependency\Client\ProductStorageToStoreClientInterface $storeClient
41-
*/
4237
public function __construct(
4338
ProductAbstractStorageReaderInterface $productAbstractStorage,
4439
ProductStorageDataMapperInterface $productStorageDataMapper,
@@ -75,11 +70,6 @@ protected function getBulkProductStorageData(array $productIds, string $localeNa
7570
->getBulkProductAbstractStorageDataByProductAbstractIdsForLocaleNameAndStore($productIds, $localeName, $storeName);
7671
}
7772

78-
/**
79-
* @param \Generated\Shared\Transfer\ProductViewTransfer $productViewTransfer
80-
*
81-
* @return int
82-
*/
8373
protected function getProductId(ProductViewTransfer $productViewTransfer): int
8474
{
8575
return $productViewTransfer->getIdProductAbstract();

src/Spryker/Client/ProductStorage/Finder/ProductConcreteViewTransferFinder.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ class ProductConcreteViewTransferFinder extends AbstractProductViewTransferFinde
2828
*/
2929
protected static $productViewTransfersCache = [];
3030

31-
/**
32-
* @param \Spryker\Client\ProductStorage\Storage\ProductConcreteStorageReaderInterface $productConcreteStorage
33-
* @param \Spryker\Client\ProductStorage\Mapper\ProductStorageDataMapperInterface $productStorageDataMapper
34-
*/
3531
public function __construct(ProductConcreteStorageReaderInterface $productConcreteStorage, ProductStorageDataMapperInterface $productStorageDataMapper)
3632
{
3733
parent::__construct($productStorageDataMapper);
@@ -62,11 +58,6 @@ protected function getBulkProductStorageData(array $productIds, string $localeNa
6258
->getBulkProductConcreteStorageDataByProductConcreteIdsAndLocaleName($productIds, $localeName);
6359
}
6460

65-
/**
66-
* @param \Generated\Shared\Transfer\ProductViewTransfer $productViewTransfer
67-
*
68-
* @return int
69-
*/
7061
protected function getProductId(ProductViewTransfer $productViewTransfer): int
7162
{
7263
return $productViewTransfer->getIdProductConcrete();

src/Spryker/Client/ProductStorage/Finder/ProductViewTransferFinderInterface.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@
1111

1212
interface ProductViewTransferFinderInterface
1313
{
14-
/**
15-
* @param int $idProduct
16-
* @param string $localeName
17-
* @param array $selectedAttributes
18-
*
19-
* @return \Generated\Shared\Transfer\ProductViewTransfer|null
20-
*/
2114
public function findProductViewTransfer(int $idProduct, string $localeName, array $selectedAttributes = []): ?ProductViewTransfer;
2215

2316
/**

0 commit comments

Comments
 (0)