Completed
Pull Request — master (#79)
by Harry
37s
created
src/Handler/SentryHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
         // Ref #65: For some reason, throwing an exception finds its way into both exception + non-exception
102 102
         // conditions below.
103 103
         if ($isException) {
104
-            static::$counter ++;
104
+            static::$counter++;
105 105
         }
106 106
 
107 107
         $record = array_merge($record, [
Please login to merge, or discard this patch.
src/Log/SentryLogger.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
         ];
236 236
 
237 237
         // If we have nothing to show, then show a meaningful default
238
-        $filtered = array_filter($data, function ($item): bool {
238
+        $filtered = array_filter($data, function($item): bool {
239 239
             return $item == self::SLW_NOOP;
240 240
         });
241 241
 
@@ -258,8 +258,7 @@  discard block
 block discarded – undo
258 258
 
259 259
         if (defined('TRUSTED_PROXY')) {
260 260
             $headers = (defined('SS_TRUSTED_PROXY_IP_HEADER')) ?
261
-                [SS_TRUSTED_PROXY_IP_HEADER] :
262
-                null;
261
+                [SS_TRUSTED_PROXY_IP_HEADER] : null;
263 262
 
264 263
             if (!$headers) {
265 264
                 // Backwards compatible defaults
Please login to merge, or discard this patch.
src/Adaptor/SentryAdaptor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.