File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
lib/internal/Magento/Framework/Image Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- // @codingStandardsIgnoreFile
8
-
9
7
namespace Magento \Framework \Image ;
10
8
11
9
use Magento \Framework \ObjectManagerInterface ;
@@ -26,8 +24,10 @@ class Factory
26
24
* @param ObjectManagerInterface $objectManager
27
25
* @param AdapterFactory $adapterFactory
28
26
*/
29
- public function __construct (ObjectManagerInterface $ objectManager , AdapterFactory $ adapterFactory )
30
- {
27
+ public function __construct (
28
+ ObjectManagerInterface $ objectManager ,
29
+ AdapterFactory $ adapterFactory
30
+ ) {
31
31
$ this ->objectManager = $ objectManager ;
32
32
$ this ->adapterFactory = $ adapterFactory ;
33
33
}
@@ -43,6 +43,8 @@ public function create($fileName = null, $adapterName = null)
43
43
{
44
44
$ adapter = $ this ->adapterFactory ->create ($ adapterName );
45
45
return $ this ->objectManager ->create (
46
- \Magento \Framework \Image::class, ['adapter ' => $ adapter , 'fileName ' => $ fileName ]);
46
+ \Magento \Framework \Image::class,
47
+ ['adapter ' => $ adapter , 'fileName ' => $ fileName ]
48
+ );
47
49
}
48
50
}
You can’t perform that action at this time.
0 commit comments