@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $this->context['env'] = $data; |
71 | 71 | break; |
72 | 72 | case 'tags': |
73 | - $hub->configureScope(function (Scope $scope) use ($data): void { |
|
73 | + $hub->configureScope(function(Scope $scope) use ($data): void { |
|
74 | 74 | foreach ($data as $tagName => $tagData) { |
75 | 75 | $tagName = SentryHelper::normalise_tag_name($tagName); |
76 | 76 | $scope->setTag($tagName, $tagData); |
@@ -79,13 +79,13 @@ discard block |
||
79 | 79 | }); |
80 | 80 | break; |
81 | 81 | case 'user': |
82 | - $hub->configureScope(function (Scope $scope) use ($data): void { |
|
82 | + $hub->configureScope(function(Scope $scope) use ($data): void { |
|
83 | 83 | $scope->setUser($data); |
84 | 84 | $this->context['user'] = $data; |
85 | 85 | }); |
86 | 86 | break; |
87 | 87 | case 'extra': |
88 | - $hub->configureScope(function (Scope $scope) use ($data): void { |
|
88 | + $hub->configureScope(function(Scope $scope) use ($data): void { |
|
89 | 89 | foreach ($data as $extraKey => $extraData) { |
90 | 90 | $extraKey = SentryHelper::normalise_extras_name($extraKey); |
91 | 91 | $scope->setExtra($extraKey, $extraData); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | }); |
95 | 95 | break; |
96 | 96 | case 'level': |
97 | - $hub->configureScope(function (Scope $scope) use ($data): void { |
|
97 | + $hub->configureScope(function(Scope $scope) use ($data): void { |
|
98 | 98 | $scope->setLevel(new Severity(SentrySeverity::process_severity($level = $data))); |
99 | 99 | }); |
100 | 100 | break; |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | ]; |
238 | 238 | |
239 | 239 | // If we have nothing to show, then show a meaningful default |
240 | - $filtered = array_filter($data, function ($item): bool { |
|
240 | + $filtered = array_filter($data, function($item): bool { |
|
241 | 241 | return $item == self::SLW_NOOP; |
242 | 242 | }); |
243 | 243 | |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | 'PhpTek\\Sentry\\Logger\\SentryLogger::backtrace', |
338 | 338 | ]); |
339 | 339 | |
340 | - return array_map(function ($item) { |
|
340 | + return array_map(function($item) { |
|
341 | 341 | return new Frame( |
342 | 342 | $item['function'] ?? self::DEFAULT_FRAME_VAL, |
343 | 343 | $item['file'] ?? self::DEFAULT_FRAME_VAL, |
@@ -105,7 +105,7 @@ |
||
105 | 105 | // Ref #65: For some reason, throwing an exception finds its way into both exception + non-exception |
106 | 106 | // conditions below. |
107 | 107 | if ($isException) { |
108 | - static::$counter ++; |
|
108 | + static::$counter++; |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | $record = array_merge($record->toArray(), [ |