Code Duplication    Length = 3-3 lines in 2 locations

typo3/sysext/frontend/Classes/Http/RequestHandler.php 1 location

@@ 309-311 (lines=3) @@
306
    protected function initializeOutputCompression()
307
    {
308
        if ($GLOBALS['TYPO3_CONF_VARS']['FE']['compressionLevel'] && extension_loaded('zlib')) {
309
            if (MathUtility::canBeInterpretedAsInteger($GLOBALS['TYPO3_CONF_VARS']['FE']['compressionLevel'])) {
310
                @ini_set('zlib.output_compression_level', $GLOBALS['TYPO3_CONF_VARS']['FE']['compressionLevel']);
311
            }
312
            ob_start([GeneralUtility::makeInstance(CompressionUtility::class), 'compressionOutputHandler']);
313
        }
314
    }

typo3/sysext/core/Classes/Core/Bootstrap.php 1 location

@@ 953-955 (lines=3) @@
950
    public function initializeOutputCompression()
951
    {
952
        if (extension_loaded('zlib') && $GLOBALS['TYPO3_CONF_VARS']['BE']['compressionLevel']) {
953
            if (MathUtility::canBeInterpretedAsInteger($GLOBALS['TYPO3_CONF_VARS']['BE']['compressionLevel'])) {
954
                @ini_set('zlib.output_compression_level', $GLOBALS['TYPO3_CONF_VARS']['BE']['compressionLevel']);
955
            }
956
            ob_start('ob_gzhandler');
957
        }
958
        return $this;