Code Duplication    Length = 9-9 lines in 2 locations

app/Drivers/Redis/RedisDataManager.php 2 locations

@@ 100-108 (lines=9) @@
97
            $type = $this->connection->type($key);
98
            if ($type === RedisProxy::TYPE_STRING) {
99
                $tables[RedisDriver::TYPE_KEY]['list_of_all_keys']['number_of_keys']++;
100
            } elseif ($type === RedisProxy::TYPE_HASH) {
101
                $result = $this->connection->hlen($key);
102
                $ttl = $this->connection->ttl($key);
103
                $tables[RedisDriver::TYPE_HASH][$key] = [
104
                    'key' => $key,
105
                    'number_of_fields' => $result,
106
                    'ttl' => $ttl > 0 ? $ttl : null,
107
                ];
108
            } elseif ($type === RedisProxy::TYPE_SET) {
109
                $result = $this->connection->scard($key);
110
                $ttl = $this->connection->ttl($key);
111
                $tables[RedisDriver::TYPE_SET][$key] = [
@@ 116-124 (lines=9) @@
113
                    'number_of_members' => $result,
114
                    'ttl' => $ttl > 0 ? $ttl : null,
115
                ];
116
            } elseif ($type === RedisProxy::TYPE_LIST) {
117
                $result = $this->connection->llen($key);
118
                $ttl = $this->connection->ttl($key);
119
                $tables[RedisDriver::TYPE_LIST][$key] = [
120
                    'key' => $key,
121
                    'number_of_elements' => $result,
122
                    'ttl' => $ttl > 0 ? $ttl : null,
123
                ];
124
            } elseif ($type === RedisProxy::TYPE_SORTED_SET) {
125
                $result = $this->connection->zcard($key);
126
                $ttl = $this->connection->ttl($key);
127
                $tables[RedisDriver::TYPE_SORTED_SET][$key] = [