Code Duplication    Length = 8-8 lines in 2 locations

src/Adaptor/SentryAdaptor.php 2 locations

@@ 79-86 (lines=8) @@
76
                $options->setEnvironment($data);
77
                $this->context['env'] = $data;
78
                break;
79
            case 'tags':
80
                Hub::getCurrent()->configureScope(function (Scope $scope) use($data) : void {
81
                    foreach ($data as $tagName => $tagData) {
82
                        $scope->setTag($tagName, $tagData);
83
                        $this->context['tags'][$tagName] = $tagData;
84
                    }
85
                });
86
                break;
87
            case 'user':
88
                Hub::getCurrent()->configureScope(function (Scope $scope) use($data) : void {
89
                    $scope->setUser($data);
@@ 93-100 (lines=8) @@
90
                    $this->context['user'] = $data;
91
                });
92
                break;
93
            case 'extra':
94
                Hub::getCurrent()->configureScope(function (Scope $scope) use($data) : void {
95
                    foreach ($data as $extraKey => $extraData) {
96
                        $scope->setExtra($extraKey, $extraData);
97
                        $this->context['extra'][$extraKey] = $extraData;
98
                    }
99
                });
100
                break;
101
            case 'level':
102
                Hub::getCurrent()->configureScope(function (Scope $scope) use($data) : void {
103
                    $scope->setLevel(new Severity(SentrySeverity::process_severity($level = $data)));