Skip to content

Commit

Permalink
Adding params types
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard13 committed Aug 31, 2018
1 parent 2be962d commit 6a8fadf
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions app/code/Magento/Catalog/Model/ProductRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -734,11 +734,11 @@ private function getMediaGalleryProcessor()
}

/**
* @param $existingMediaGallery
* @param $entriesById
* @return mixed
* @param array $existingMediaGallery
* @param array $entriesById
* @return array
*/
private function processingExistingImages($existingMediaGallery, $entriesById)
private function processingExistingImages(array $existingMediaGallery, array $entriesById)
{
foreach ($existingMediaGallery as $key => &$existingEntry) {
if (isset($entriesById[$existingEntry['value_id']])) {
Expand All @@ -757,14 +757,15 @@ private function processingExistingImages($existingMediaGallery, $entriesById)
}

/**
* @param $newEntries
* @param $product
* @param $entriesById
* @param array $newEntries
* @param ProductInterface $product
* @param array $entriesById
* @return void
* @throws InputException
* @throws LocalizedException
* @throws StateException
*/
private function processingNewEntries($newEntries, $product, $entriesById)
private function processingNewEntries(array $newEntries, ProductInterface $product, array $entriesById)
{
foreach ($newEntries as $newEntry) {
if (!isset($newEntry['content'])) {
Expand Down

0 comments on commit 6a8fadf

Please sign in to comment.