Skip to content

Commit 716adef

Browse files
adiati98escopecz
andauthored
update code
Co-authored-by: John Linhart <jan@linhart.email>
1 parent 4541cee commit 716adef

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docs/plugin_extensions/reports.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)