Code Duplication    Length = 3-3 lines in 3 locations

typo3/sysext/backend/Classes/View/PageTreeView.php 1 location

@@ 85-87 (lines=3) @@
82
        // Call stats information hook
83
        $stat = '';
84
        $_params = ['pages', $row['uid']];
85
        foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['recStatInfoHooks'] ?? [] as $_funcRef) {
86
            $stat .= GeneralUtility::callUserFunction($_funcRef, $_params, $this);
87
        }
88
        return $dragDropIcon . $lockIcon . $pageIdStr . $stat;
89
    }
90

typo3/sysext/backend/Classes/View/PageLayoutView.php 1 location

@@ 2008-2010 (lines=3) @@
2005
        }
2006
        // Call stats information hook
2007
        $_params = ['tt_content', $row['uid'], &$row];
2008
        foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['recStatInfoHooks'] ?? [] as $_funcRef) {
2009
            $additionalIcons[] = GeneralUtility::callUserFunction($_funcRef, $_params, $this);
2010
        }
2011
2012
        // Wrap the whole header
2013
        // NOTE: end-tag for <div class="t3-page-ce-body"> is in getTable_tt_content()

typo3/sysext/backend/Classes/Tree/Pagetree/Commands.php 1 location

@@ 343-345 (lines=3) @@
340
341
        $_params = ['pages', $record['uid']];
342
        $fakeThis = null;
343
        foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['recStatInfoHooks'] ?? [] as $_funcRef) {
344
            $stat .= GeneralUtility::callUserFunction($_funcRef, $_params, $fakeThis);
345
        }
346
347
        $prefix .= htmlspecialchars(self::$addIdAsPrefix ? '[' . $record['uid'] . '] ' : '');
348
        $subNode->setEditableText($text);