From 3aa4847d33543687b34e6d31208f4c09f9427903 Mon Sep 17 00:00:00 2001 From: Markus Lilienberg Date: Sat, 12 Feb 2022 12:08:20 +0100 Subject: [PATCH] Always return '$this' in 'registerStatisticsCollector' (#292) --- app/Server/Factory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Server/Factory.php b/app/Server/Factory.php index c3e834d..b5cf50c 100644 --- a/app/Server/Factory.php +++ b/app/Server/Factory.php @@ -310,7 +310,7 @@ class Factory protected function registerStatisticsCollector() { if (config('expose.admin.statistics.enable_statistics', true) === false) { - return; + return $this; } app()->singleton(StatisticsRepository::class, function () {