| @@ 66-72 (lines=7) @@ | ||
| 63 | case 'env': |
|
| 64 | $options->setEnvironment($data); |
|
| 65 | break; |
|
| 66 | case 'tags': |
|
| 67 | Hub::getCurrent()->configureScope(function (Scope $scope) use($data) : void { |
|
| 68 | foreach ($data as $tagName => $tagData) { |
|
| 69 | $scope->setTag($tagName, $tagData); |
|
| 70 | } |
|
| 71 | }); |
|
| 72 | break; |
|
| 73 | case 'user': |
|
| 74 | Hub::getCurrent()->configureScope(function (Scope $scope) use($data) : void { |
|
| 75 | $scope->setUser($data); |
|
| @@ 78-84 (lines=7) @@ | ||
| 75 | $scope->setUser($data); |
|
| 76 | }); |
|
| 77 | break; |
|
| 78 | case 'extra': |
|
| 79 | Hub::getCurrent()->configureScope(function (Scope $scope) use($data) : void { |
|
| 80 | foreach ($data as $extraKey => $extraData) { |
|
| 81 | $scope->setExtra($extraKey, $extraData); |
|
| 82 | } |
|
| 83 | }); |
|
| 84 | break; |
|
| 85 | case 'level': |
|
| 86 | Hub::getCurrent()->configureScope(function (Scope $scope) use($data) : void { |
|
| 87 | $scope->setLevel(new Severity(strtolower($data))); |
|