File tree Expand file tree Collapse file tree 9 files changed +11
-21
lines changed
Controller/Adminhtml/Config
dev/tests/static/testsuite/Magento/Test Expand file tree Collapse file tree 9 files changed +11
-21
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.
5
+ */
3
6
declare (strict_types=1 );
4
7
5
8
namespace Magento \AdminAnalytics \Controller \Adminhtml \Config ;
6
9
7
10
use Magento \Backend \App \Action ;
8
- use Magento \Catalog \Helper \Catalog ;
9
11
use Magento \Framework \App \Action \HttpPostActionInterface ;
10
- use Magento \Framework \App \ObjectManager ;
11
12
use Magento \Framework \Controller \ResultFactory ;
12
13
use Magento \AdminAnalytics \Model \ResourceModel \Viewer \Logger as NotificationLogger ;
13
14
use Magento \Framework \App \ProductMetadataInterface ;
@@ -52,7 +53,6 @@ public function __construct(
52
53
$ this ->configFactory = $ configFactory ;
53
54
$ this ->productMetadata = $ productMetadata ;
54
55
$ this ->notificationLogger = $ notificationLogger ;
55
- $ something = ObjectManager::getInstance ()->get (Catalog::class);
56
56
}
57
57
58
58
/**
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 9
9
<type name =" Magento\Framework\Notification\NotifierList" >
10
10
<arguments >
11
11
<argument name =" notifiers" xsi : type =" array" >
12
- <item key = " " name =" adminnotification" xsi : type =" string" >Magento\AdminNotification\Model\Inbox</item >
12
+ <item name =" adminnotification" xsi : type =" string" >Magento\AdminNotification\Model\Inbox</item >
13
13
</argument >
14
14
</arguments >
15
15
</type >
Original file line number Diff line number Diff line change 6
6
*/
7
7
-->
8
8
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:Module/etc/module.xsd" >
9
- <module version = " 1 " name =" Magento_AdminNotification" >
9
+ <module name =" Magento_AdminNotification" >
10
10
<sequence >
11
11
<module name =" Magento_Store" />
12
12
</sequence >
Original file line number Diff line number Diff line change 7
7
-->
8
8
<widgets xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
9
xsi : noNamespaceSchemaLocation =" urn:magento:module:Magento_Widget:etc/widget.xsd" >
10
- <widget type =" /Deprecated" >
11
- <label translate =" true" >Catalog New Products List</label >
12
- <description translate =" true" >List of Products that are set as New</description >
13
- <supported_blocks >Deprecated
14
- <block >
15
- <block_name >Deprecated</block_name >
16
- </block >
17
- </supported_blocks >
18
- </widget >
19
10
<widget id =" new_products" class =" Magento\Catalog\Block\Product\Widget\NewWidget" is_email_compatible =" true"
20
11
placeholder_image =" Magento_Catalog::images/product_widget_new.png" ttl =" 86400" >
21
12
<label translate =" true" >Catalog New Products List</label >
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ $wishlistHelper = $block->getData('wishlistHelper');
12
12
?>
13
13
<?php if ($ block ->getLink ()): ?>
14
14
<p id="wishlist-rss-email-link">
15
- <h2>{{escapehtml "H2"}}</h2>
16
15
<?= $ block ->escapeHtml (__ ("RSS link to %1's wishlist " , $ wishlistHelper ->getCustomerName ())) ?>
17
16
<br />
18
17
<a href="<?= $ block ->escapeUrl ($ block ->getLink ()) ?> "><?= $ block ->escapeUrl ($ block ->getLink ()) ?> </a>
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ public function testObsoleteDirectives()
15
15
{
16
16
$ invoker = new \Magento \Framework \App \Utility \AggregateInvoker ($ this );
17
17
$ invoker (
18
- /**
19
- * @param string $file
20
- */
18
+ /**
19
+ * @param string $file
20
+ */
21
21
function ($ file ) {
22
22
$ this ->assertDoesNotMatchRegularExpression (
23
23
'/\{\{htmlescape.*?\}\}/i ' ,
Original file line number Diff line number Diff line change @@ -285,6 +285,7 @@ function ($path) use ($ignoreListPattern) {
285
285
}
286
286
);
287
287
}
288
+
288
289
$ result = $ codeSniffer ->run ($ fileList );
289
290
$ report = file_get_contents ($ reportFile );
290
291
$ this ->assertEquals (
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public static function setUpBeforeClass(): void
39
39
}
40
40
41
41
/**
42
- * Run the magento specific coding standards on the code
42
+ * Run the magento specific coding standards on the codedata/UpgradeData.php
43
43
*
44
44
* @return void
45
45
*/
You can’t perform that action at this time.
0 commit comments