Completed
Pull Request — master (#7)
by Thomas Mauro
05:04
created
src/Service/ErrorHandlerRegisterInterface.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/Client.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/ConfigurationOptionsFactory.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/ClientAwareInterface.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/ServiceFactory/AbstractServiceFactory.php 1 patch
Spacing   +4 added lines, -4 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\ServiceFactory;
6 6
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Log/Writer/Sentry.php 1 patch
Spacing   +4 added lines, -4 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\Log\Writer;
6 6
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Log/Writer/SentryFactory.php 1 patch
Spacing   +2 added lines, -2 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\Log\Writer;
6 6
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Listener/ErrorHandlerListener.php 1 patch
Spacing   +2 added lines, -2 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\Listener;
6 6
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Exception/InvalidArgumentException.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\Exception;
6 6
 
Please login to merge, or discard this patch.