File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed
Controller/Adminhtml/System/Design/Theme Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 4
4
* Copyright © Magento, Inc. All rights reserved.
5
5
* See COPYING.txt for license details.
6
6
*/
7
+
7
8
namespace Magento \Theme \Controller \Adminhtml \System \Design \Theme ;
8
9
10
+ use Magento \Framework \App \Action \HttpGetActionInterface ;
11
+
9
12
/**
10
13
* Class UploadJs
11
14
* @deprecated
12
15
*/
13
- class UploadJs extends \Magento \Theme \Controller \Adminhtml \System \Design \Theme
16
+ class UploadJs extends \Magento \Theme \Controller \Adminhtml \System \Design \Theme implements HttpGetActionInterface
14
17
{
15
18
/**
16
19
* Upload js file
@@ -49,6 +52,7 @@ public function execute()
49
52
\Magento \Framework \View \Design \Theme \Customization \File \Js::TYPE
50
53
);
51
54
$ result = ['error ' => false , 'files ' => $ customization ->generateFileInfo ($ customJsFiles )];
55
+ // phpcs:disable Magento2.Exceptions.ThrowCatch
52
56
} catch (\Magento \Framework \Exception \LocalizedException $ e ) {
53
57
$ result = ['error ' => true , 'message ' => $ e ->getMessage ()];
54
58
} catch (\Exception $ e ) {
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+
6
7
namespace Magento \Theme \Model \Design \Backend ;
7
8
8
9
use Magento \Config \Model \Config \Backend \File \RequestData \RequestDataInterface ;
@@ -109,9 +110,7 @@ public function beforeSave()
109
110
}
110
111
111
112
/**
112
- * @return $this
113
- *
114
- * @throws LocalizedException
113
+ * @inheritDoc
115
114
*/
116
115
public function afterLoad ()
117
116
{
Original file line number Diff line number Diff line change 18
18
use Magento \Store \Model \StoreManagerInterface ;
19
19
20
20
/**
21
+ * Design file processor.
22
+ *
21
23
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
22
24
*/
23
25
class FileProcessor
Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- /**
8
- * Theme wysiwyg storage model
9
- */
10
7
namespace Magento \Theme \Model \Wysiwyg ;
11
8
12
9
use Magento \Framework \App \Filesystem \DirectoryList ;
13
10
14
11
/**
15
- * Class Storage
16
- *
17
- * @package Magento\Theme\Model\Wysiwyg
12
+ * Theme wysiwyg storage model
18
13
*/
19
14
class Storage
20
15
{
@@ -271,7 +266,7 @@ public function getFilesCollection()
271
266
if (self ::TYPE_IMAGE == $ storageType ) {
272
267
$ requestParams ['file ' ] = $ fileName ;
273
268
$ file ['thumbnailParams ' ] = $ requestParams ;
274
-
269
+ //phpcs:ignore Generic.PHP.NoSilencedErrors
275
270
$ size = @getimagesize ($ path );
276
271
if (is_array ($ size )) {
277
272
$ file ['width ' ] = $ size [0 ];
You can’t perform that action at this time.
0 commit comments