@@ -31,7 +31,7 @@ |
||
31 | 31 | public function handleError(MvcEvent $event): void |
32 | 32 | { |
33 | 33 | $exception = $event->getParam('exception'); |
34 | - if (! $exception instanceof \Throwable) { |
|
34 | + if (!$exception instanceof \Throwable) { |
|
35 | 35 | return; |
36 | 36 | } |
37 | 37 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | $options = \array_filter( |
18 | 18 | $config['options'] ?? [], |
19 | - static function ($value) { |
|
19 | + static function($value) { |
|
20 | 20 | return null !== $value; |
21 | 21 | } |
22 | 22 | ); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $options = \array_merge( |
30 | 30 | $options, |
31 | 31 | \array_map( |
32 | - static function (string $value) use ($container): callable { |
|
32 | + static function(string $value) use ($container): callable { |
|
33 | 33 | return $container->get($value); |
34 | 34 | }, |
35 | 35 | \array_intersect_key($options, \array_flip($resolves)) |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $config = $appConfig['sentry']['javascript'] ?? []; |
35 | 35 | $options = $config['options'] ?? []; |
36 | 36 | |
37 | - if (! ($config['inject_script'] ?? false)) { |
|
37 | + if (!($config['inject_script'] ?? false)) { |
|
38 | 38 | return; |
39 | 39 | } |
40 | 40 |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | $hub = $options['hub'] ?? null; |
57 | 57 | |
58 | - if (null !== $hub && ! $hub instanceof HubInterface) { |
|
58 | + if (null !== $hub && !$hub instanceof HubInterface) { |
|
59 | 59 | throw new Exception\InvalidArgumentException('Invalid Sentry Hub'); |
60 | 60 | } |
61 | 61 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | if ($context instanceof Traversable) { |
77 | 77 | $context = \iterator_to_array($context); |
78 | - } elseif (! \is_array($context)) { |
|
78 | + } elseif (!\is_array($context)) { |
|
79 | 79 | $context = []; |
80 | 80 | } |
81 | 81 | |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | unset($context['exception']); |
92 | 92 | } |
93 | 93 | |
94 | - $hub->withScope(static function (Scope $scope) use ($hub, $event, $context, $payload): void { |
|
94 | + $hub->withScope(static function(Scope $scope) use ($hub, $event, $context, $payload): void { |
|
95 | 95 | $scope->setExtra('laminas.priority', $event['priority']); |
96 | 96 | |
97 | 97 | foreach ($context as $key => $value) { |