diff --git a/module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatterFactory.php b/module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatterFactory.php
index e03388acb4dbb8e7d591f5fbb2d414a0e3d6f88f..13934824dfc4e281f661d70e842c568047e4d6bb 100644
--- a/module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatterFactory.php
+++ b/module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatterFactory.php
@@ -48,8 +48,9 @@ class RecordDataFormatterFactory
     public function __invoke()
     {
         $helper = new RecordDataFormatter();
-        $helper
-            ->setDefaults('collection-info', [$this, 'getDefaultCollectionInfoSpecs']);
+        $helper->setDefaults(
+            'collection-info', [$this, 'getDefaultCollectionInfoSpecs']
+        );
         $helper->setDefaults(
             'collection-record', [$this, 'getDefaultCollectionRecordSpecs']
         );