Code Duplication    Length = 4-6 lines in 2 locations

Handler/Raven.php 2 locations

@@ 117-120 (lines=4) @@
114
            unset($record['extra']['tags']);
115
        }
116
117
        if (!empty($record['context']['tags'])) {
118
            $options['tags'] = array_merge($options['tags'], $record['context']['tags']);
119
            unset($record['context']['tags']);
120
        }
121
122
        if (!empty($record['context']['fingerprint'])) {
123
            $options['fingerprint'] = $record['context']['fingerprint'];
@@ 127-132 (lines=6) @@
124
            unset($record['context']['fingerprint']);
125
        }
126
127
        if (!empty($record['context']['logger'])) {
128
            $options['logger'] = $record['context']['logger'];
129
            unset($record['context']['logger']);
130
        } else {
131
            $options['logger'] = $record['channel'];
132
        }
133
134
        foreach ($this->getExtraParameters() as $key) {
135
            foreach (['extra', 'context'] as $source) {