File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
app/code/Magento/CatalogImportExport/Model/Import Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1720,7 +1720,7 @@ protected function _saveProducts()
1720
1720
) {
1721
1721
$ labelsForUpdate [] = [
1722
1722
'label ' => $ rowLabels [$ column ][$ columnImageKey ],
1723
- 'imageData ' => $ currentFileData
1723
+ 'imageData ' => $ currentFileData,
1724
1724
];
1725
1725
}
1726
1726
@@ -1729,7 +1729,7 @@ protected function _saveProducts()
1729
1729
) {
1730
1730
$ imagesForChangeVisibility [] = [
1731
1731
'disabled ' => $ imageHiddenStates [$ uploadedFile ],
1732
- 'imageData ' => $ currentFileData
1732
+ 'imageData ' => $ currentFileData,
1733
1733
];
1734
1734
}
1735
1735
} else {
@@ -1884,11 +1884,11 @@ protected function _saveProducts()
1884
1884
* @param array $rowData
1885
1885
* @return array
1886
1886
*/
1887
- private function getImagesHiddenStates ($ rowData )
1887
+ private function getImagesHiddenStates (array $ rowData ): array
1888
1888
{
1889
1889
$ statesArray = [];
1890
1890
$ mappingArray = [
1891
- '_media_is_disabled ' => '1 '
1891
+ '_media_is_disabled ' => '1 ' ,
1892
1892
];
1893
1893
1894
1894
foreach ($ mappingArray as $ key => $ value ) {
@@ -2834,7 +2834,7 @@ private function updateMediaGalleryLabels(array $labels)
2834
2834
* @param array $images
2835
2835
* @return $this
2836
2836
*/
2837
- private function updateMediaGalleryVisibility (array $ images )
2837
+ private function updateMediaGalleryVisibility (array $ images ): Product
2838
2838
{
2839
2839
if (!empty ($ images )) {
2840
2840
$ this ->mediaProcessor ->updateMediaGalleryVisibility ($ images );
You can’t perform that action at this time.
0 commit comments