File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed
app/code/Magento/CatalogWidget Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * Copyright © Magento, Inc. All rights reserved.
4
- * See COPYING.txt for license details .
3
+ * Copyright 2014 Adobe
4
+ * All Rights Reserved .
5
5
*/
6
6
7
7
namespace Magento \CatalogWidget \Block \Product ;
@@ -621,4 +621,12 @@ private function decodeConditions(string $encodedConditions): array
621
621
{
622
622
return $ this ->conditionsHelper ->decode (htmlspecialchars_decode ($ encodedConditions ));
623
623
}
624
+
625
+ /**
626
+ * @inheritdoc
627
+ */
628
+ protected function _afterToHtml ($ html )
629
+ {
630
+ return trim ($ html );
631
+ }
624
632
}
Original file line number Diff line number Diff line change 1
1
<?php
2
2
/**
3
- * Copyright © Magento, Inc. All rights reserved.
4
- * See COPYING.txt for license details .
3
+ * Copyright 2014 Adobe
4
+ * All Rights Reserved .
5
5
*/
6
6
declare (strict_types=1 );
7
7
29
29
use Magento \Rule \Model \Condition \Sql \Builder ;
30
30
use Magento \Store \Model \Store ;
31
31
use Magento \Store \Model \StoreManagerInterface ;
32
-
33
32
use Magento \Widget \Helper \Conditions ;
34
33
use PHPUnit \Framework \MockObject \MockObject ;
35
34
use PHPUnit \Framework \TestCase ;
@@ -137,7 +136,7 @@ protected function setUp(): void
137
136
'conditionsHelper ' => $ this ->widgetConditionsHelper ,
138
137
'storeManager ' => $ this ->storeManager ,
139
138
'design ' => $ this ->design ,
140
- 'json ' => $ this ->serializer
139
+ 'json ' => $ this ->serializer ,
141
140
]
142
141
);
143
142
$ this ->request = $ arguments ['context ' ]->getRequest ();
You can’t perform that action at this time.
0 commit comments