@@ -1,6 +1,6 @@ |
||
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 |
@@ -1,6 +1,6 @@ |
||
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 |
@@ -1,6 +1,6 @@ |
||
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 |
@@ -1,6 +1,6 @@ |
||
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 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Facile\SentryModule\ServiceFactory; |
6 | 6 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | |
70 | 70 | $pattern = '/^%s\.(?P<serviceType>[a-z0-9_]+)\.(?P<serviceName>[a-z0-9_]+)$/'; |
71 | 71 | $pattern = sprintf($pattern, $this->configKey.'.sentry'); |
72 | - if (! preg_match($pattern, $name, $matches)) { |
|
72 | + if (!preg_match($pattern, $name, $matches)) { |
|
73 | 73 | return false; |
74 | 74 | } |
75 | 75 | /** @var array $config */ |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $moduleConfig = $config[$this->configKey]['sentry']; |
81 | 81 | $factoryConfig = $config[$this->configKey]['sentry_factories']; |
82 | 82 | |
83 | - if (! isset($factoryConfig[$serviceType], $moduleConfig[$serviceType][$serviceName])) { |
|
83 | + if (!isset($factoryConfig[$serviceType], $moduleConfig[$serviceType][$serviceName])) { |
|
84 | 84 | return false; |
85 | 85 | } |
86 | 86 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | { |
109 | 109 | $mappings = $this->getFactoryMapping($container, $requestedName); |
110 | 110 | |
111 | - if (! $mappings) { |
|
111 | + if (!$mappings) { |
|
112 | 112 | throw new ServiceNotFoundException(); |
113 | 113 | } |
114 | 114 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Facile\SentryModule\Log\Writer; |
6 | 6 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $options = iterator_to_array($options); |
52 | 52 | } |
53 | 53 | |
54 | - if (! is_array($options) || ! array_key_exists('client', $options) || ! $options['client'] instanceof ClientInterface) { |
|
54 | + if (!is_array($options) || !array_key_exists('client', $options) || !$options['client'] instanceof ClientInterface) { |
|
55 | 55 | throw new Exception\InvalidArgumentException('No client specified in options'); |
56 | 56 | } |
57 | 57 | |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $extra = $event['extra']; |
71 | 71 | if ($extra instanceof Traversable) { |
72 | 72 | $extra = iterator_to_array($extra); |
73 | - } elseif (! is_array($extra)) { |
|
73 | + } elseif (!is_array($extra)) { |
|
74 | 74 | $extra = []; |
75 | 75 | } |
76 | 76 | |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | */ |
160 | 160 | protected function contextContainsException(array $context): bool |
161 | 161 | { |
162 | - if (! array_key_exists('exception', $context)) { |
|
162 | + if (!array_key_exists('exception', $context)) { |
|
163 | 163 | return false; |
164 | 164 | } |
165 | 165 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Facile\SentryModule\Log\Writer; |
6 | 6 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | { |
44 | 44 | $options = $options ?: []; |
45 | 45 | |
46 | - if (! array_key_exists('client', $options)) { |
|
46 | + if (!array_key_exists('client', $options)) { |
|
47 | 47 | throw new Exception\InvalidArgumentException('No client specified'); |
48 | 48 | } |
49 | 49 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Facile\SentryModule\Listener; |
6 | 6 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | public function handleError(MvcEvent $event) |
75 | 75 | { |
76 | 76 | $exception = $event->getParam('exception'); |
77 | - if (! $exception instanceof \Throwable) { |
|
77 | + if (!$exception instanceof \Throwable) { |
|
78 | 78 | return; |
79 | 79 | } |
80 | 80 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Facile\SentryModule\Exception; |
6 | 6 |