Passed
Push — master ( bd20ef...9d3ba6 )
by Thomas Mauro
15:32 queued 13:44
created
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
             return false;
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.