Skip to content

Commit c3b3864

Browse files
committed
MAGETWO-90021: [Catalog] ProductAttributeMediaGalleryManagementInterface removes product from index, impossible to restore
- Fix statics.
1 parent 1c7c6fb commit c3b3864

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76

87
namespace Magento\Catalog\Model\Product\Gallery;
98

109
use Magento\Catalog\Api\Data\ProductAttributeMediaGalleryEntryInterface;
11-
use Magento\Catalog\Api\Data\ProductInterface as Product;
1210
use Magento\Framework\Exception\InputException;
1311
use Magento\Framework\Exception\NoSuchEntityException;
1412
use Magento\Framework\Exception\StateException;
1513
use Magento\Framework\Api\ImageContentValidatorInterface;
1614

1715
/**
16+
* Class GalleryManagement
17+
* Provides implementation of api interface ProductAttributeMediaGalleryManagementInterface
18+
*
1819
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1920
*/
2021
class GalleryManagement implements \Magento\Catalog\Api\ProductAttributeMediaGalleryManagementInterface
@@ -44,7 +45,7 @@ public function __construct(
4445
}
4546

4647
/**
47-
* {@inheritdoc}
48+
* @inheritdoc
4849
*/
4950
public function create($sku, ProductAttributeMediaGalleryEntryInterface $entry)
5051
{
@@ -84,7 +85,7 @@ public function create($sku, ProductAttributeMediaGalleryEntryInterface $entry)
8485
}
8586

8687
/**
87-
* {@inheritdoc}
88+
* @inheritdoc
8889
*/
8990
public function update($sku, ProductAttributeMediaGalleryEntryInterface $entry)
9091
{
@@ -125,7 +126,7 @@ public function update($sku, ProductAttributeMediaGalleryEntryInterface $entry)
125126
}
126127

127128
/**
128-
* {@inheritdoc}
129+
* @inheritdoc
129130
*/
130131
public function remove($sku, $entryId)
131132
{
@@ -155,7 +156,7 @@ public function remove($sku, $entryId)
155156
}
156157

157158
/**
158-
* {@inheritdoc}
159+
* @inheritdoc
159160
*/
160161
public function get($sku, $entryId)
161162
{
@@ -176,7 +177,7 @@ public function get($sku, $entryId)
176177
}
177178

178179
/**
179-
* {@inheritdoc}
180+
* @inheritdoc
180181
*/
181182
public function getList($sku)
182183
{

0 commit comments

Comments
 (0)