Code Duplication    Length = 3-3 lines in 2 locations

Classes/RedisLockStrategy.php 1 location

@@ 90-92 (lines=3) @@
87
    {
88
        $config = null;
89
90
        if (\array_key_exists('redis_lock', $GLOBALS['TYPO3_CONF_VARS']['SYS'])) {
91
            $config = $GLOBALS['TYPO3_CONF_VARS']['SYS']['redis_lock'];
92
        }
93
94
        if (!\is_array($config)) {
95
            throw new LockCreateException('no configuration for redis lock strategy found');

Tests/test.php 1 location

@@ 94-96 (lines=3) @@
91
    {
92
        $config = null;
93
94
        if (\array_key_exists('redis_lock', $GLOBALS['TYPO3_CONF_VARS']['SYS'])) {
95
            $config = $GLOBALS['TYPO3_CONF_VARS']['SYS']['redis_lock'];
96
        }
97
98
        if (!\is_array($config)) {
99
            //throw new LockCreateException('no configuration for redis lock strategy found');