@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | Event::on( |
67 | 67 | UrlManager::class, |
68 | 68 | UrlManager::EVENT_REGISTER_SITE_URL_RULES, |
69 | - function (RegisterUrlRulesEvent $event) { |
|
69 | + function(RegisterUrlRulesEvent $event) { |
|
70 | 70 | $event->rules['siteActionTrigger1'] = 'webperf/metrics'; |
71 | 71 | } |
72 | 72 | ); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | Event::on( |
75 | 75 | UrlManager::class, |
76 | 76 | UrlManager::EVENT_REGISTER_CP_URL_RULES, |
77 | - function (RegisterUrlRulesEvent $event) { |
|
77 | + function(RegisterUrlRulesEvent $event) { |
|
78 | 78 | $event->rules['cpActionTrigger1'] = 'webperf/metrics/do-something'; |
79 | 79 | } |
80 | 80 | ); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | Event::on( |
83 | 83 | Dashboard::class, |
84 | 84 | Dashboard::EVENT_REGISTER_WIDGET_TYPES, |
85 | - function (RegisterComponentTypesEvent $event) { |
|
85 | + function(RegisterComponentTypesEvent $event) { |
|
86 | 86 | $event->types[] = MetricsWidget::class; |
87 | 87 | } |
88 | 88 | ); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | Event::on( |
91 | 91 | Plugins::class, |
92 | 92 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
93 | - function (PluginEvent $event) { |
|
93 | + function(PluginEvent $event) { |
|
94 | 94 | if ($event->plugin === $this) { |
95 | 95 | } |
96 | 96 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | return true; |
52 | 52 | } |
53 | 53 | |
54 | - /** |
|
54 | + /** |
|
55 | 55 | * @inheritdoc |
56 | 56 | */ |
57 | 57 | public function safeDown() |