Skip to content

Commit c4ac9ef

Browse files
committed
Revert "Fix whitespace"
This reverts commit 3a2a057. This was a very broken commit.
1 parent 3a2a057 commit c4ac9ef

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,7 +472,15 @@ public function copyQuoteToOrder()
472472
}
473473
$quotePath = $value['quote_path'];
474474
$orderPath = $value['order_path'];
475-
$this->_mediaDirectory->getAbsolutePath($orderPath)
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)
476484
);
477485
} else {
478486
$this->_mediaDirectory->copyFile($quotePath, $orderPath);
@@ -489,15 +497,7 @@ public function copyQuoteToOrder()
489497
* @param string $url
490498
* @return $this
491499
*/
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)
500+
public function setCustomOptionDownloadUrl($url)
501501
{
502502
$this->_customOptionDownloadUrl = $url;
503503
return $this;

0 commit comments

Comments
 (0)