Skip to content

Commit f7e9830

Browse files
authored
Correct variable names
1 parent a156298 commit f7e9830

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/MediaGalleryMetadata/Model/Png/Segment

1 file changed

+3
-3
lines changed

app/code/Magento/MediaGalleryMetadata/Model/Png/Segment/WriteIptc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ public function execute(FileInterface $file, MetadataInterface $metadata): FileI
9191
* Insert IPTC segment to image png segments before IEND chunk
9292
*
9393
* @param SegmentInterface[] $segments
94-
* @param SegmentInterface $xmpSegment
94+
* @param SegmentInterface $iptcSegment
9595
* @return SegmentInterface[]
9696
*/
97-
private function insertPngIptcSegment(array $segments, SegmentInterface $xmpSegment): array
97+
private function insertPngIptcSegment(array $segments, SegmentInterface $iptcSegment): array
9898
{
9999
return array_merge(
100100
array_slice($segments, 0, count($segments) - 1),
101-
[$xmpSegment],
101+
[$iptcSegment],
102102
array_slice($segments, count($segments) - 1)
103103
);
104104
}

0 commit comments

Comments
 (0)