Completed
Pull Request — master (#7)
by Thomas Mauro
05:04
created
src/SendCallback/CallbackInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Facile\SentryModule\SendCallback;
6 6
 
Please login to merge, or discard this patch.
src/SendCallback/CallbackChain.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Facile\SentryModule\SendCallback;
6 6
 
Please login to merge, or discard this patch.
src/Processor/SanitizeDataProcessor.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Facile\SentryModule\Processor;
6 6
 
@@ -60,26 +60,26 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $this->previous->process($data);
62 62
 
63
-        if (! empty($data['exception'])) {
63
+        if (!empty($data['exception'])) {
64 64
             $data['exception'] = $this->sanitizeException($data['exception']);
65 65
         }
66
-        if (! empty($data['stacktrace'])) {
66
+        if (!empty($data['stacktrace'])) {
67 67
             $data['stacktrace'] = $this->sanitizeStacktrace($data['stacktrace']);
68 68
         }
69
-        if (! empty($data['extra'])) {
69
+        if (!empty($data['extra'])) {
70 70
             array_walk_recursive($data['extra'], [$this, 'sanitize']);
71 71
         }
72 72
     }
73 73
 
74 74
     public function sanitizeException(array $data): array
75 75
     {
76
-        if (! array_key_exists('values', $data) || ! is_array($data['values'])) {
76
+        if (!array_key_exists('values', $data) || !is_array($data['values'])) {
77 77
             return $data;
78 78
         }
79 79
 
80 80
         $values = $data['values'] ?? [];
81 81
 
82
-        if (! count($values)) {
82
+        if (!count($values)) {
83 83
             return $data;
84 84
         }
85 85
 
@@ -94,22 +94,22 @@  discard block
 block discarded – undo
94 94
 
95 95
     public function sanitizeStacktrace(array $data): array
96 96
     {
97
-        if (! array_key_exists('frames', $data) || ! is_array($data['frames'])) {
97
+        if (!array_key_exists('frames', $data) || !is_array($data['frames'])) {
98 98
             return $data;
99 99
         }
100 100
 
101 101
         $frames = $data['frames'] ?? [];
102 102
 
103
-        if (! count($frames)) {
103
+        if (!count($frames)) {
104 104
             return $data;
105 105
         }
106 106
 
107 107
         foreach ($frames as $key => $frame) {
108
-            if (! is_array($frame)) {
108
+            if (!is_array($frame)) {
109 109
                 continue;
110 110
             }
111 111
 
112
-            if (! array_key_exists('vars', $frame) || ! is_array($frame['vars'])) {
112
+            if (!array_key_exists('vars', $frame) || !is_array($frame['vars'])) {
113 113
                 continue;
114 114
             }
115 115
 
Please login to merge, or discard this patch.
src/Options/ClientOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Facile\SentryModule\Options;
6 6
 
Please login to merge, or discard this patch.
src/Options/ConfigurationOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Facile\SentryModule\Options;
6 6
 
Please login to merge, or discard this patch.
src/Service/ClientInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Facile\SentryModule\Service;
6 6
 
Please login to merge, or discard this patch.
src/Service/ClientAwareTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Facile\SentryModule\Service;
6 6
 
Please login to merge, or discard this patch.
src/Service/ClientFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Facile\SentryModule\Service;
6 6
 
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
62 62
 
63 63
         $ravenOptions = $clientOptions->getOptions();
64 64
 
65
-        if (! array_key_exists('processors', $ravenOptions)) {
65
+        if (!array_key_exists('processors', $ravenOptions)) {
66 66
             $ravenOptions['processors'] = [SanitizeDataProcessor::class];
67 67
         }
68 68
 
69
-        if (! array_key_exists('logger', $ravenOptions)) {
69
+        if (!array_key_exists('logger', $ravenOptions)) {
70 70
             $ravenOptions['logger'] = 'SentryModule';
71 71
         }
72 72
 
Please login to merge, or discard this patch.
src/Service/ErrorHandlerRegister.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Facile\SentryModule\Service;
6 6
 
Please login to merge, or discard this patch.