Code Duplication    Length = 3-3 lines in 2 locations

Classes/RedisLockStrategy.php 1 location

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

Tests/concurrent/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');