Passed
Push — master ( 6223b9...5fd62f )
by Thomas Mauro
07:54
created
src/DIFactory/FlexibleClientAbstractFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function canCreate(ContainerInterface $container, $requestedName): bool
27 27
     {
28
-        if (! preg_match('/^httplug\.clients\.[^.]+\.flexible$/', $requestedName)) {
28
+        if (!preg_match('/^httplug\.clients\.[^.]+\.flexible$/', $requestedName)) {
29 29
             return false;
30 30
         }
31 31
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function __invoke(ContainerInterface $container, $requestedName, array $options = null): FlexibleHttpClient
51 51
     {
52
-        if (! preg_match('/^httplug\.clients\.[^.]+\.flexible$/', $requestedName)) {
52
+        if (!preg_match('/^httplug\.clients\.[^.]+\.flexible$/', $requestedName)) {
53 53
             throw new InvalidArgumentException('Invalid service name');
54 54
         }
55 55
 
Please login to merge, or discard this patch.
src/DIFactory/ClientAbstractFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
     public function canCreate(ContainerInterface $container, $requestedName): bool
28 28
     {
29
-        if (! preg_match('/^httplug\.clients\.[^.]+$/', $requestedName)) {
29
+        if (!preg_match('/^httplug\.clients\.[^.]+$/', $requestedName)) {
30 30
             throw new InvalidArgumentException('Invalid service name');
31 31
         }
32 32
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function __invoke(ContainerInterface $container, $requestedName, array $options = null): HttpClient
54 54
     {
55
-        if (! preg_match('/^httplug\.clients\.[^.]+$/', $requestedName)) {
55
+        if (!preg_match('/^httplug\.clients\.[^.]+$/', $requestedName)) {
56 56
             throw new InvalidArgumentException('Invalid service name');
57 57
         }
58 58
 
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
 
61 61
         $config = $container->get('config')['httplug']['clients'][$clientName] ?? null;
62 62
 
63
-        if (! is_array($config)) {
63
+        if (!is_array($config)) {
64 64
             throw new InvalidArgumentException('Invalid service name');
65 65
         }
66 66
 
67
-        if (! empty($config['service'])) {
67
+        if (!empty($config['service'])) {
68 68
             $client = $container->get($config['service']);
69 69
         } else {
70 70
             /** @var ClientFactory $factory */
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                 continue;
98 98
             }
99 99
 
100
-            if (! is_array($nameOrConfig) || ! is_string($nameOrConfig['name'] ?? null)) {
100
+            if (!is_array($nameOrConfig) || !is_string($nameOrConfig['name'] ?? null)) {
101 101
                 throw new InvalidArgumentException('Invalid client plugin');
102 102
             }
103 103
 
Please login to merge, or discard this patch.
src/DIFactory/HttpMethodsClientAbstractFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function canCreate(ContainerInterface $container, $requestedName): bool
27 27
     {
28
-        if (! preg_match('/^httplug\.clients\.[^.]+\.http_methods$/', $requestedName)) {
28
+        if (!preg_match('/^httplug\.clients\.[^.]+\.http_methods$/', $requestedName)) {
29 29
             return false;
30 30
         }
31 31
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function __invoke(ContainerInterface $container, $requestedName, array $options = null): HttpMethodsClient
51 51
     {
52
-        if (! preg_match('/^httplug\.clients\.[^.]+\.http_methods$/', $requestedName)) {
52
+        if (!preg_match('/^httplug\.clients\.[^.]+\.http_methods$/', $requestedName)) {
53 53
             throw new InvalidArgumentException('Invalid service name');
54 54
         }
55 55
 
Please login to merge, or discard this patch.