Passed
Push — master ( d61b01...5e2bb2 )
by Thomas Mauro
02:08
created
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.
src/PluginFactory/LoggerFactory.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 createPlugin(array $config = []): Plugin
24 24
     {
25
-        if (! class_exists(CachePlugin::class)) {
25
+        if (!class_exists(CachePlugin::class)) {
26 26
             throw new \LogicException('To use the logger plugin you need to install the "php-http/logger-plugin" package.');
27 27
         }
28 28
 
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/PluginFactory/VcrReplayFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 {
13 13
     public function createPlugin(array $config = []): Plugin
14 14
     {
15
-        if (! class_exists(ReplayPlugin::class)) {
15
+        if (!class_exists(ReplayPlugin::class)) {
16 16
             throw new LogicException('To use the vcr replay plugin you need to install the "php-http/vcr-plugin" package.');
17 17
         }
18 18
 
Please login to merge, or discard this patch.
src/PluginFactory/CacheFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     public function createPlugin(array $config = []): Plugin
22 22
     {
23
-        if (! class_exists(CachePlugin::class)) {
23
+        if (!class_exists(CachePlugin::class)) {
24 24
             throw new \LogicException('To use the cache plugin you need to install the "php-http/cache-plugin" package.');
25 25
         }
26 26
 
Please login to merge, or discard this patch.