Skip to content

Commit 6a8fadf

Browse files
committed
Adding params types
1 parent 2be962d commit 6a8fadf

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -734,11 +734,11 @@ private function getMediaGalleryProcessor()
734734
}
735735

736736
/**
737-
* @param $existingMediaGallery
738-
* @param $entriesById
739-
* @return mixed
737+
* @param array $existingMediaGallery
738+
* @param array $entriesById
739+
* @return array
740740
*/
741-
private function processingExistingImages($existingMediaGallery, $entriesById)
741+
private function processingExistingImages(array $existingMediaGallery, array $entriesById)
742742
{
743743
foreach ($existingMediaGallery as $key => &$existingEntry) {
744744
if (isset($entriesById[$existingEntry['value_id']])) {
@@ -757,14 +757,15 @@ private function processingExistingImages($existingMediaGallery, $entriesById)
757757
}
758758

759759
/**
760-
* @param $newEntries
761-
* @param $product
762-
* @param $entriesById
760+
* @param array $newEntries
761+
* @param ProductInterface $product
762+
* @param array $entriesById
763+
* @return void
763764
* @throws InputException
764765
* @throws LocalizedException
765766
* @throws StateException
766767
*/
767-
private function processingNewEntries($newEntries, $product, $entriesById)
768+
private function processingNewEntries(array $newEntries, ProductInterface $product, array $entriesById)
768769
{
769770
foreach ($newEntries as $newEntry) {
770771
if (!isset($newEntry['content'])) {

0 commit comments

Comments
 (0)