Passed
Push — master ( bd20ef...9d3ba6 )
by Thomas Mauro
15:32 queued 13:44
created
src/ClientFactory/Guzzle5Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
     public function createClient(array $config = []): HttpClient
25 25
     {
26
-        if (! class_exists('Http\Adapter\Guzzle5\Client')) {
26
+        if (!class_exists('Http\Adapter\Guzzle5\Client')) {
27 27
             throw new LogicException('To use the Guzzle5 adapter you need to install the "php-http/guzzle5-adapter" package.');
28 28
         }
29 29
 
Please login to merge, or discard this patch.
src/ClientFactory/CurlFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,14 +33,14 @@
 block discarded – undo
33 33
 
34 34
     public function createClient(array $config = []): HttpClient
35 35
     {
36
-        if (! class_exists(Client::class)) {
36
+        if (!class_exists(Client::class)) {
37 37
             throw new LogicException('To use the Curl client you need to install the "php-http/curl-client" package.');
38 38
         }
39 39
 
40 40
         // Try to resolve curl constant names
41 41
         foreach ($config as $key => $value) {
42 42
             // If the $key is a string we assume it is a constant
43
-            if (! is_string($key)) {
43
+            if (!is_string($key)) {
44 44
                 continue;
45 45
             }
46 46
 
Please login to merge, or discard this patch.
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/ClientFactory/BuzzFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     public function createClient(array $config = []): HttpClient
24 24
     {
25
-        if (! class_exists('Http\Adapter\Buzz\Client')) {
25
+        if (!class_exists('Http\Adapter\Buzz\Client')) {
26 26
             throw new \LogicException('To use the Buzz adapter you need to install the "php-http/buzz-adapter" package.');
27 27
         }
28 28
 
Please login to merge, or discard this patch.
src/ClientFactory/Guzzle6Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 {
14 14
     public function createClient(array $config = []): HttpClient
15 15
     {
16
-        if (! class_exists(Client::class)) {
16
+        if (!class_exists(Client::class)) {
17 17
             throw new LogicException('To use the Guzzle6 adapter you need to install the "php-http/guzzle6-adapter" package.');
18 18
         }
19 19
 
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/StopwatchFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     public function createPlugin(array $config = []): Plugin
23 23
     {
24
-        if (! class_exists(CachePlugin::class)) {
24
+        if (!class_exists(CachePlugin::class)) {
25 25
             throw new \LogicException('To use the stopwatch plugin you need to install the "php-http/stopwatch-plugin" package.');
26 26
         }
27 27
 
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.