Skip to content

Commit 4e0cb00

Browse files
committed
ACPT-1224: Fix Magento Health Index for application-server PR
1 parent aa4577d commit 4e0cb00

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

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

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@
77

88
namespace Magento\Catalog\Model\Product\Option\Type\File;
99

10+
use Magento\Framework\App\Config\ScopeConfigInterface;
1011
use Magento\Framework\App\ObjectManager;
1112
use Magento\Framework\App\Request\Http as Request;
13+
use Magento\Framework\Exception\FileSystemException;
14+
use Magento\Framework\File\Size;
15+
use Magento\Framework\Filesystem;
16+
use Magento\Framework\HTTP\Adapter\FileTransferFactory;
1217
use Magento\Framework\Math\Random;
18+
use Magento\Framework\Validator\File\IsImage;
1319

1420
/**
1521
* Request Aware Validator to replace use of $_SERVER super global.
@@ -24,21 +30,21 @@ class RequestAwareValidatorFile extends ValidatorFile
2430
/**
2531
* Constructor method
2632
*
27-
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
28-
* @param \Magento\Framework\Filesystem $filesystem
29-
* @param \Magento\Framework\File\Size $fileSize
30-
* @param \Magento\Framework\HTTP\Adapter\FileTransferFactory $httpFactory
31-
* @param \Magento\Framework\Validator\File\IsImage $isImageValidator
33+
* @param ScopeConfigInterface $scopeConfig
34+
* @param Filesystem $filesystem
35+
* @param Size $fileSize
36+
* @param FileTransferFactory $httpFactory
37+
* @param IsImage $isImageValidator
3238
* @param Random|null $random
3339
* @param Request|null $request
34-
* @throws \Magento\Framework\Exception\FileSystemException
40+
* @throws FileSystemException
3541
*/
3642
public function __construct(
37-
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
38-
\Magento\Framework\Filesystem $filesystem,
39-
\Magento\Framework\File\Size $fileSize,
40-
\Magento\Framework\HTTP\Adapter\FileTransferFactory $httpFactory,
41-
\Magento\Framework\Validator\File\IsImage $isImageValidator,
43+
ScopeConfigInterface $scopeConfig,
44+
Filesystem $filesystem,
45+
Size $fileSize,
46+
FileTransferFactory $httpFactory,
47+
IsImage $isImageValidator,
4248
Random $random = null,
4349
Request $request = null
4450
) {

0 commit comments

Comments
 (0)