Completed
Push — master ( 1a030a...6f5481 )
by Thomas Mauro
17s queued 11s
created
src/ClientFactory/MockFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
     public function __construct(HttpClient $client = null)
18 18
     {
19
-        if (! class_exists(Client::class)) {
19
+        if (!class_exists(Client::class)) {
20 20
             throw new LogicException('To use the mock adapter you need to install the "php-http/mock-client" package.');
21 21
         }
22 22
 
Please login to merge, or discard this patch.
src/DIFactory/PluginAbstractFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
         $config = $container->get('config')['httplug']['plugins'][$pluginName][$serviceName] ?? null;
41 41
 
42
-        if (! is_array($config)) {
42
+        if (!is_array($config)) {
43 43
             return null;
44 44
         }
45 45
 
Please login to merge, or discard this patch.
src/PluginFactoryManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     {
46 46
         $factory = $this->factories[$alias] ?? null;
47 47
 
48
-        if (! $factory) {
48
+        if (!$factory) {
49 49
             throw new InvalidArgumentException('Unable to find a plugin factory for alias ' . $alias);
50 50
         }
51 51
 
Please login to merge, or discard this patch.
src/PluginFactory/CookieFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,13 +24,13 @@
 block discarded – undo
24 24
     {
25 25
         $cookieJarName = $config['cookie_jar'] ?? null;
26 26
 
27
-        if (! \is_string($cookieJarName)) {
27
+        if (!\is_string($cookieJarName)) {
28 28
             throw new InvalidArgumentException('Invalid "cookie_jar" parameter');
29 29
         }
30 30
 
31 31
         $cookieJar = $this->container->get($cookieJarName);
32 32
 
33
-        if (! $cookieJar instanceof CookieJar) {
33
+        if (!$cookieJar instanceof CookieJar) {
34 34
             throw new InvalidArgumentException('Invalid "cookie_jar" service');
35 35
         }
36 36
 
Please login to merge, or discard this patch.
src/PluginFactory/AuthenticationFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         /** @var null|Authentication\AuthenticationFactory $authFactory */
31 31
         $authFactory = $this->factories[$type] ?? null;
32 32
 
33
-        if (! $authFactory instanceof Authentication\AuthenticationFactory) {
33
+        if (!$authFactory instanceof Authentication\AuthenticationFactory) {
34 34
             throw new InvalidArgumentException('Unsupported authentication type');
35 35
         }
36 36
 
Please login to merge, or discard this patch.
src/PluginFactory/HistoryFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,13 +24,13 @@
 block discarded – undo
24 24
     {
25 25
         $journalServiceName = $config['journal'] ?? null;
26 26
 
27
-        if (! \is_string($journalServiceName)) {
27
+        if (!\is_string($journalServiceName)) {
28 28
             throw new InvalidArgumentException('Invalid "journal" parameter');
29 29
         }
30 30
 
31 31
         $journal = $this->container->get($journalServiceName);
32 32
 
33
-        if (! $journal instanceof Journal) {
33
+        if (!$journal instanceof Journal) {
34 34
             throw new InvalidArgumentException('Invalid "journal" service');
35 35
         }
36 36
 
Please login to merge, or discard this patch.
src/PluginFactory/RequestMatcherFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
     {
36 36
         $requestMatcherName = $config['request_matcher'] ?? null;
37 37
 
38
-        if (! is_string($requestMatcherName)) {
38
+        if (!is_string($requestMatcherName)) {
39 39
             throw new InvalidArgumentException('Invalid request matcher name');
40 40
         }
41 41
 
42 42
         $requestMatcher = $this->container->get($requestMatcherName);
43 43
 
44
-        if (! $requestMatcher instanceof RequestMatcher) {
44
+        if (!$requestMatcher instanceof RequestMatcher) {
45 45
             throw new InvalidArgumentException('Invalid request matcher');
46 46
         }
47 47
 
@@ -61,13 +61,13 @@  discard block
 block discarded – undo
61 61
             return $this->container->get($plugin);
62 62
         }
63 63
 
64
-        if (! \is_array($plugin)) {
64
+        if (!\is_array($plugin)) {
65 65
             throw new InvalidArgumentException('Invalid plugin');
66 66
         }
67 67
 
68 68
         $name = $plugin['name'] ?? null;
69 69
 
70
-        if (! is_string($name)) {
70
+        if (!is_string($name)) {
71 71
             throw new InvalidArgumentException('Invalid plugin name');
72 72
         }
73 73
 
Please login to merge, or discard this patch.
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/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.