@@ -35,9 +35,9 @@ To add and render custom Reports in Mautic, your Plugin needs to listen to the f
3535 use Mautic\CoreBundle\Helper\Chart\ChartQuery;
3636 use Mautic\CoreBundle\Helper\Chart\LineChart;
3737
38- class ReportSubscriber extends CommonSubscriber
38+ final class ReportSubscriber extends CommonSubscriber
3939 {
40- public static function getSubscribedEvents()
40+ public static function getSubscribedEvents(): array
4141 {
4242 return [
4343 ReportEvents::REPORT_ON_BUILD => ['onReportBuilder', 0],
@@ -46,7 +46,7 @@ To add and render custom Reports in Mautic, your Plugin needs to listen to the f
4646 ];
4747 }
4848
49- public function onReportBuilder(ReportBuilderEvent $event)
49+ public function onReportBuilder(ReportBuilderEvent $event): void
5050 {
5151 if ($event->checkContext(['worlds'])) {
5252 $prefix = 'w.';
@@ -83,7 +83,7 @@ To add and render custom Reports in Mautic, your Plugin needs to listen to the f
8383 }
8484 }
8585
86- public function onReportGenerate(ReportGeneratorEvent $event)
86+ public function onReportGenerate(ReportGeneratorEvent $event): void
8787 {
8888 $context = $event->getContext();
8989 if ($context == 'worlds') {
@@ -94,7 +94,7 @@ To add and render custom Reports in Mautic, your Plugin needs to listen to the f
9494 }
9595 }
9696
97- public function onReportGraphGenerate(ReportGraphEvent $event)
97+ public function onReportGraphGenerate(ReportGraphEvent $event): void
9898 {
9999 if (!$event->checkContext('worlds')) {
100100 return;
0 commit comments