Skip to content

Commit dce3f7d

Browse files
committed
ACPT-1052: Some Luma Storefront Scenarios Are Broken
- fix failed tests
1 parent 0b071e1 commit dce3f7d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

app/code/Magento/Catalog/Model/Indexer/Category/Product/AbstractAction.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@
2323
* @api
2424
*
2525
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
26-
* phpcs:disable Magento2.Classes.AbstractApi
27-
* phpcs:disable Magento2.Annotation.MethodAnnotationStructure
2826
* @since 100.0.2
27+
* phpcs:disable Magento2.Classes.AbstractApi
2928
*/
3029
abstract class AbstractAction implements ResetAfterRequestInterface
3130
{
@@ -46,7 +45,8 @@ abstract class AbstractAction implements ResetAfterRequestInterface
4645

4746
/**
4847
* Suffix for table to show it is temporary
49-
* @deprecated see getIndexTable
48+
* @deprecated
49+
* @see getIndexTable
5050
*/
5151
public const TEMPORARY_TABLE_SUFFIX = '_tmp';
5252

app/code/Magento/Catalog/Model/Product.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ public function getUpdatedAt()
633633
* @param bool $calculate
634634
* @return void
635635
* @deprecated 102.0.4
636-
* @see we don't recommend this approach anymore
636+
* @see we don't recommend this approach anymore
637637
*/
638638
public function setPriceCalculation($calculate = true)
639639
{

app/code/Magento/Catalog/Model/ProductRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@
3838
/**
3939
* @inheritdoc
4040
*
41-
* phpcs:disable Magento2.Annotation.ClassPropertyPHPDocFormatting
42-
* phpcs:disable Magento2.Annotation.MethodAnnotationStructure
4341
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
4442
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
4543
* @SuppressWarnings(PHPMD.TooManyFields)
44+
* phpcs:disable Magento2.Annotation.ClassPropertyPHPDocFormatting
4645
*/
4746
class ProductRepository implements \Magento\Catalog\Api\ProductRepositoryInterface, ResetAfterRequestInterface
4847
{
@@ -797,6 +796,7 @@ private function getMediaGalleryProcessor()
797796
/**
798797
* Retrieve collection processor
799798
*
799+
* phpcs:disable Magento2.Annotation.MethodAnnotationStructure
800800
* @deprecated 102.0.0
801801
* @return CollectionProcessorInterface
802802
*/

app/code/Magento/Customer/Helper/Address.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
* @api
2121
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2222
* @since 100.0.2
23-
* phpcs:disable Magento2.Annotation.ClassPropertyPHPDocFormatting
2423
* phpcs:disable Generic.CodeAnalysis.EmptyStatement.DetectedFunction
2524
*/
2625
class Address extends \Magento\Framework\App\Helper\AbstractHelper implements ResetAfterRequestInterface
@@ -86,6 +85,7 @@ class Address extends \Magento\Framework\App\Helper\AbstractHelper implements Re
8685
* @var CustomerMetadataInterface
8786
*
8887
* @deprecated 101.0.0
88+
* phpcs:disable Magento2.Annotation.ClassPropertyPHPDocFormatting
8989
*/
9090
protected $_customerMetadataService;
9191

@@ -285,7 +285,7 @@ public function getAttributeValidationClass($attributeCode)
285285
: $this->_addressMetadataService->getAttributeMetadata($attributeCode);
286286

287287
$class = $attribute ? $attribute->getFrontendClass() : '';
288-
} catch (NoSuchEntityException $e) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedCATCH
288+
} catch (NoSuchEntityException $e) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedCatch
289289
// the attribute does not exist so just return an empty string
290290
}
291291

0 commit comments

Comments
 (0)