Code Duplication    Length = 4-6 lines in 2 locations

src/Handler/SentryRavenHandler.php 2 locations

@@ 61-64 (lines=4) @@
58
            unset($record['extra']['tags']);
59
        }
60
        
61
        if (!empty($record['context']['tags'])) {
62
            $options['tags'] = array_merge($options['tags'], $record['context']['tags']);
63
            unset($record['context']['tags']);
64
        }
65
        
66
        if (!empty($record['context']['fingerprint'])) {
67
            $options['fingerprint'] = $record['context']['fingerprint'];
@@ 71-76 (lines=6) @@
68
            unset($record['context']['fingerprint']);
69
        }
70
        
71
        if (!empty($record['context']['logger'])) {
72
            $options['logger'] = $record['context']['logger'];
73
            unset($record['context']['logger']);
74
        } else {
75
            $options['logger'] = $record['channel'];
76
        }
77
        
78
        foreach ($this->getExtraParameters() as $key) {
79
            foreach (['extra', 'context'] as $source) {