Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
Removed unused connection property, added PHPMD.UnusedFormalParameter…
Browse files Browse the repository at this point in the history
… directive
  • Loading branch information
maxalmonte14 committed Oct 30, 2018
1 parent ac90f7a commit 6789eb4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions app/code/Magento/DownloadableImportExport/Helper/Uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ class Uploader extends \Magento\Framework\App\Helper\AbstractHelper
*/
protected $parameters = [];

/**
* Connection resource.
*
* @var \Magento\Framework\DB\Adapter\AdapterInterface
*/
protected $connection = [];

/**
* Construct
*
Expand All @@ -53,6 +46,8 @@ class Uploader extends \Magento\Framework\App\Helper\AbstractHelper
* @param \Magento\CatalogImportExport\Model\Import\UploaderFactory $uploaderFactory
* @param \Magento\Framework\App\ResourceConnection $resource
* @param \Magento\Framework\Filesystem $filesystem
*
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function __construct(
\Magento\Framework\App\Helper\Context $context,
Expand All @@ -67,7 +62,6 @@ public function __construct(
$this->fileUploader->init();
$this->fileUploader->setAllowedExtensions($this->getAllowedExtensions());
$this->fileUploader->removeValidateCallback('catalog_product_image');
$this->connection = $resource->getConnection('write');
$this->mediaDirectory = $filesystem->getDirectoryWrite(DirectoryList::ROOT);
}

Expand Down

0 comments on commit 6789eb4

Please sign in to comment.