Skip to content

Commit 7b73412

Browse files
committed
MAGETWO-97161: Static tests failed on mainline
1 parent 3fb288e commit 7b73412

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

app/code/Magento/Customer/Model/Customer/DataProvider.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ class DataProvider extends \Magento\Ui\DataProvider\AbstractDataProvider
160160
* @param bool $allowToShowHiddenAttributes
161161
* @param FileUploaderDataResolver|null $fileUploaderDataResolver
162162
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
163+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
163164
*/
164165
public function __construct(
165166
$name,
@@ -182,7 +183,6 @@ public function __construct(
182183
$this->collection->addAttributeToSelect('*');
183184
$this->eavConfig = $eavConfig;
184185
$this->filterPool = $filterPool;
185-
$this->fileProcessorFactory = $fileProcessorFactory ?: $this->getFileProcessorFactory();
186186
$this->context = $context ?: ObjectManager::getInstance()->get(ContextInterface::class);
187187
$this->allowToShowHiddenAttributes = $allowToShowHiddenAttributes;
188188
$this->fileUploaderDataResolver = $fileUploaderDataResolver
@@ -453,19 +453,4 @@ protected function prepareAddressData($addressId, array &$addresses, array $cust
453453
}
454454
}
455455
}
456-
457-
/**
458-
* Get FileProcessorFactory instance
459-
*
460-
* @return FileProcessorFactory
461-
* @deprecated 100.1.3
462-
*/
463-
private function getFileProcessorFactory()
464-
{
465-
if ($this->fileProcessorFactory === null) {
466-
$this->fileProcessorFactory = ObjectManager::getInstance()
467-
->get(\Magento\Customer\Model\FileProcessorFactory::class);
468-
}
469-
return $this->fileProcessorFactory;
470-
}
471456
}

0 commit comments

Comments
 (0)