Skip to content

Commit 3a2a057

Browse files
authored
Fix whitespace
1 parent 346df3f commit 3a2a057

File tree

1 file changed

+10
-10
lines changed
  • app/code/Magento/Catalog/Model/Product/Option/Type

1 file changed

+10
-10
lines changed

app/code/Magento/Catalog/Model/Product/Option/Type/File.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -472,15 +472,7 @@ public function copyQuoteToOrder()
472472
}
473473
$quotePath = $value['quote_path'];
474474
$orderPath = $value['order_path'];
475-
476-
if (!$this->_mediaDirectory->isFile($quotePath) || !$this->_mediaDirectory->isReadable($quotePath)) {
477-
throw new \Exception();
478-
}
479-
480-
if ($this->_coreFileStorageDatabase->checkDbUsage()) {
481-
$this->_coreFileStorageDatabase->copyFile(
482-
$this->_mediaDirectory->getAbsolutePath($quotePath),
483-
$this->_mediaDirectory->getAbsolutePath($orderPath)
475+
$this->_mediaDirectory->getAbsolutePath($orderPath)
484476
);
485477
} else {
486478
$this->_mediaDirectory->copyFile($quotePath, $orderPath);
@@ -497,7 +489,15 @@ public function copyQuoteToOrder()
497489
* @param string $url
498490
* @return $this
499491
*/
500-
public function setCustomOptionDownloadUrl($url)
492+
public function setCustomOp
493+
if (!$this->_mediaDirectory->isFile($quotePath) || !$this->_mediaDirectory->isReadable($quotePath)) {
494+
throw new \Exception();
495+
}
496+
497+
if ($this->_coreFileStorageDatabase->checkDbUsage()) {
498+
$this->_coreFileStorageDatabase->copyFile(
499+
$this->_mediaDirectory->getAbsolutePath($quotePath),
500+
tionDownloadUrl($url)
501501
{
502502
$this->_customOptionDownloadUrl = $url;
503503
return $this;

0 commit comments

Comments
 (0)