@@ -236,8 +236,7 @@ |
||
| 236 | 236 | |
| 237 | 237 | if (defined('TRUSTED_PROXY')) { |
| 238 | 238 | $headers = (defined('SS_TRUSTED_PROXY_IP_HEADER')) ? |
| 239 | - [SS_TRUSTED_PROXY_IP_HEADER] : |
|
| 240 | - null; |
|
| 239 | + [SS_TRUSTED_PROXY_IP_HEADER] : null; |
|
| 241 | 240 | |
| 242 | 241 | if (!$headers) { |
| 243 | 242 | // Backwards compatible defaults |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | $this->context['env'] = $data; |
| 82 | 82 | break; |
| 83 | 83 | case 'tags': |
| 84 | - $hub->configureScope(function (Scope $scope) use($data) : void { |
|
| 84 | + $hub->configureScope(function(Scope $scope) use($data) : void { |
|
| 85 | 85 | foreach ($data as $tagName => $tagData) { |
| 86 | 86 | $scope->setTag($tagName, $tagData); |
| 87 | 87 | $this->context['tags'][$tagName] = $tagData; |
@@ -89,13 +89,13 @@ discard block |
||
| 89 | 89 | }); |
| 90 | 90 | break; |
| 91 | 91 | case 'user': |
| 92 | - $hub->configureScope(function (Scope $scope) use($data) : void { |
|
| 92 | + $hub->configureScope(function(Scope $scope) use($data) : void { |
|
| 93 | 93 | $scope->setUser($data, true); |
| 94 | 94 | $this->context['user'] = $data; |
| 95 | 95 | }); |
| 96 | 96 | break; |
| 97 | 97 | case 'extra': |
| 98 | - $hub->configureScope(function (Scope $scope) use($data) : void { |
|
| 98 | + $hub->configureScope(function(Scope $scope) use($data) : void { |
|
| 99 | 99 | foreach ($data as $extraKey => $extraData) { |
| 100 | 100 | $scope->setExtra($extraKey, $extraData); |
| 101 | 101 | $this->context['extra'][$extraKey] = $extraData; |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | }); |
| 104 | 104 | break; |
| 105 | 105 | case 'level': |
| 106 | - $hub->configureScope(function (Scope $scope) use($data) : void { |
|
| 106 | + $hub->configureScope(function(Scope $scope) use($data) : void { |
|
| 107 | 107 | $scope->setLevel(new Severity(SentrySeverity::process_severity($level = $data))); |
| 108 | 108 | }); |
| 109 | 109 | break; |