Code Duplication    Length = 7-7 lines in 2 locations

typo3/sysext/core/Classes/Utility/GeneralUtility.php 2 locations

@@ 3806-3812 (lines=7) @@
3803
            self::initSysLog();
3804
        }
3805
        // Do custom logging; avoid calling debug_backtrace if there are no custom loggers.
3806
        if (!empty($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_div.php']['systemLog'])) {
3807
            $params = ['msg' => $msg, 'extKey' => $extKey, 'backTrace' => debug_backtrace(), 'severity' => $severity];
3808
            $fakeThis = false;
3809
            foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_div.php']['systemLog'] as $hookMethod) {
3810
                self::callUserFunction($hookMethod, $params, $fakeThis);
3811
            }
3812
        }
3813
        // TYPO3 logging enabled?
3814
        if (!$GLOBALS['TYPO3_CONF_VARS']['SYS']['systemLog']) {
3815
            return;
@@ 3838-3844 (lines=7) @@
3835
    public static function devLog($msg, $extKey, $severity = 0, $dataVar = false)
3836
    {
3837
        trigger_error('Method devLog() is deprecated since v9 and will be removed with v10', E_USER_DEPRECATED);
3838
        if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_div.php']['devLog'])) {
3839
            $params = ['msg' => $msg, 'extKey' => $extKey, 'severity' => $severity, 'dataVar' => $dataVar];
3840
            $fakeThis = false;
3841
            foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_div.php']['devLog'] as $hookMethod) {
3842
                self::callUserFunction($hookMethod, $params, $fakeThis);
3843
            }
3844
        }
3845
    }
3846
3847
    /**