Skip to content

Commit 15dc79b

Browse files
authored
ENGCOM-3421: Magento 2.3 Fix Notice and Exception while adding image to product programmatically #18952
- Fixed docblocks
1 parent 10e64f2 commit 15dc79b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ public function __construct(
8888
}
8989

9090
/**
91+
* Return media_gallery attribute
92+
*
9193
* @return \Magento\Catalog\Api\Data\ProductAttributeInterface
9294
* @since 101.0.0
9395
*/
@@ -383,7 +385,8 @@ public function setMediaAttribute(\Magento\Catalog\Model\Product $product, $medi
383385
}
384386

385387
/**
386-
* get media attribute codes
388+
* Get media attribute codes
389+
*
387390
* @return array
388391
* @since 101.0.0
389392
*/
@@ -393,6 +396,8 @@ public function getMediaAttributeCodes()
393396
}
394397

395398
/**
399+
* Trim .tmp ending from filename
400+
*
396401
* @param string $file
397402
* @return string
398403
* @since 101.0.0
@@ -514,7 +519,6 @@ public function getAffectedFields($object)
514519
/**
515520
* Attribute value is not to be saved in a conventional way, separate table is used to store the complex value
516521
*
517-
* {@inheritdoc}
518522
* @since 101.0.0
519523
*/
520524
public function isScalar()

0 commit comments

Comments
 (0)