Skip to content

Commit e7da3c2

Browse files
authored
ENGCOM-4784: Correct spelling #22420
2 parents db91138 + e880197 commit e7da3c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function execute($product, $arguments = [])
206206
}
207207

208208
/**
209-
* Returns media gallery atribute instance
209+
* Returns media gallery attribute instance
210210
*
211211
* @return \Magento\Catalog\Api\Data\ProductAttributeInterface
212212
* @since 101.0.0
@@ -420,6 +420,7 @@ protected function copyImage($file)
420420
$destinationFile = $this->getUniqueFileName($file);
421421

422422
if (!$this->mediaDirectory->isFile($this->mediaConfig->getMediaPath($file))) {
423+
// phpcs:ignore Magento2.Exceptions.DirectThrow
423424
throw new \Exception();
424425
}
425426

@@ -437,6 +438,7 @@ protected function copyImage($file)
437438
}
438439

439440
return str_replace('\\', '/', $destinationFile);
441+
// phpcs:ignore Magento2.Exceptions.ThrowCatch
440442
} catch (\Exception $e) {
441443
$file = $this->mediaConfig->getMediaPath($file);
442444
throw new \Magento\Framework\Exception\LocalizedException(

0 commit comments

Comments
 (0)