Test Failed
Push — master ( 0f2ecd...7d85b5 )
by
unknown
16:30 queued 14s
created
phpfastcache/phpfastcache/lib/Phpfastcache/Drivers/Memcached/Driver.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@  discard block
 block discarded – undo
58 58
      * @throws PhpfastcacheDriverCheckException
59 59
      * @throws PhpfastcacheIOException
60 60
      */
61
-    public function __construct(ConfigurationOption $config, string $instanceId, EventManagerInterface $em)
62
-    {
61
+    public function __construct(ConfigurationOption $config, string $instanceId, EventManagerInterface $em) {
63 62
         self::checkCollision('Memcached');
64 63
         $this->__parentConstruct($config, $instanceId, $em);
65 64
     }
@@ -112,7 +111,8 @@  discard block
 block discarded – undo
112 111
              */
113 112
             if (!empty($server['path'])) {
114 113
                 $connected = $this->instance->addServer($server['path'], 0);
115
-            } elseif (!empty($server['host'])) {
114
+            }
115
+            elseif (!empty($server['host'])) {
116 116
                 $connected = $this->instance->addServer($server['host'], $server['port']);
117 117
             }
118 118
             if (!empty($server['saslUser']) && !empty($server['saslPassword'])) {
@@ -185,7 +185,8 @@  discard block
 block discarded – undo
185 185
 
186 186
         if (is_iterable($keys)) {
187 187
             return $keys;
188
-        } else {
188
+        }
189
+        else {
189 190
             return [];
190 191
         }
191 192
     }
Please login to merge, or discard this patch.
vendor/phpfastcache/phpfastcache/lib/Phpfastcache/Drivers/Ssdb/Driver.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,8 @@
 block discarded – undo
83 83
             $this->instance->ping();
84 84
 
85 85
             return true;
86
-        } catch (SSDBException $e) {
86
+        }
87
+        catch (SSDBException $e) {
87 88
             throw new PhpfastcacheDriverCheckException('Ssdb failed to connect with error: ' . $e->getMessage(), 0, $e);
88 89
         }
89 90
     }
Please login to merge, or discard this patch.
phpfastcache/phpfastcache/lib/Phpfastcache/Drivers/Cassandra/Driver.php 1 patch
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -66,7 +66,8 @@  discard block
 block discarded – undo
66 66
             $sslBuilder = Cassandra::ssl();
67 67
             if (!empty($clientConfig->isSslVerify())) {
68 68
                 $sslBuilder->withVerifyFlags(Cassandra::VERIFY_PEER_CERT);
69
-            } else {
69
+            }
70
+            else {
70 71
                 $sslBuilder->withVerifyFlags(Cassandra::VERIFY_NONE);
71 72
             }
72 73
 
@@ -145,7 +146,8 @@  discard block
 block discarded – undo
145 146
             }
146 147
 
147 148
             return null;
148
-        } catch (Exception $e) {
149
+        }
150
+        catch (Exception $e) {
149 151
             return null;
150 152
         }
151 153
     }
@@ -198,7 +200,8 @@  discard block
 block discarded – undo
198 200
              * been really upserted
199 201
              */
200 202
             return $result instanceof Cassandra\Rows;
201
-        } catch (InvalidArgumentException $e) {
203
+        }
204
+        catch (InvalidArgumentException $e) {
202 205
             throw new PhpfastcacheInvalidArgumentException($e->getMessage(), 0, $e);
203 206
         }
204 207
     }
@@ -236,7 +239,8 @@  discard block
 block discarded – undo
236 239
              * been really deleted
237 240
              */
238 241
             return $result instanceof Cassandra\Rows;
239
-        } catch (Exception $e) {
242
+        }
243
+        catch (Exception $e) {
240 244
             return false;
241 245
         }
242 246
     }
@@ -259,7 +263,8 @@  discard block
 block discarded – undo
259 263
             );
260 264
 
261 265
             return true;
262
-        } catch (Exception) {
266
+        }
267
+        catch (Exception) {
263 268
             return false;
264 269
         }
265 270
     }
Please login to merge, or discard this patch.
phpfastcache/phpfastcache/lib/Phpfastcache/Drivers/Leveldb/Driver.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@
 block discarded – undo
47 47
     /**
48 48
      * Close connection on destruct
49 49
      */
50
-    public function __destruct()
51
-    {
50
+    public function __destruct() {
52 51
         if ($this->instance instanceof LeveldbClient) {
53 52
             $this->instance->close();
54 53
             $this->instance = null;
Please login to merge, or discard this patch.
phpfastcache/phpfastcache/lib/Phpfastcache/Drivers/Memstatic/Item.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
  */
26 26
 class Item extends \Phpfastcache\Drivers\Memory\Item
27 27
 {
28
-    public function __construct(ExtendedCacheItemPoolInterface $driver, string $key, EventManagerInterface $em)
29
-    {
28
+    public function __construct(ExtendedCacheItemPoolInterface $driver, string $key, EventManagerInterface $em) {
30 29
         trigger_error('Memstatic driver has changed its name, it is now called "Memory"', E_USER_DEPRECATED);
31 30
         parent::__construct($driver, $key, $em);
32 31
     }
Please login to merge, or discard this patch.
phpfastcache/phpfastcache/lib/Phpfastcache/Drivers/Memstatic/Driver.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
  */
26 26
 class Driver extends \Phpfastcache\Drivers\Memory\Driver
27 27
 {
28
-    public function __construct(#[\SensitiveParameter] ConfigurationOptionInterface $config, string $instanceId, EventManagerInterface $em)
29
-    {
28
+    public function __construct(#[\SensitiveParameter] ConfigurationOptionInterface $config, string $instanceId, EventManagerInterface $em) {
30 29
         trigger_error('Memstatic driver has changed its name, it is now called "Memory"', E_USER_DEPRECATED);
31 30
         parent::__construct($config, $instanceId, $em);
32 31
     }
Please login to merge, or discard this patch.
phpfastcache/phpfastcache/lib/Phpfastcache/Drivers/Memstatic/Config.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@
 block discarded – undo
22 22
  */
23 23
 class Config extends \Phpfastcache\Drivers\Memory\Config
24 24
 {
25
-    public function __construct(array $parameters = [])
26
-    {
25
+    public function __construct(array $parameters = []) {
27 26
         trigger_error('Memstatic driver has changed its name, it is now called "Memory"', E_USER_DEPRECATED);
28 27
         parent::__construct($parameters);
29 28
     }
Please login to merge, or discard this patch.
phpfastcache/phpfastcache/lib/Phpfastcache/Drivers/Wincache/Config.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@
 block discarded – undo
23 23
  */
24 24
 class Config extends ConfigurationOption
25 25
 {
26
-    public function __construct(array $parameters = [])
27
-    {
26
+    public function __construct(array $parameters = []) {
28 27
         trigger_error(
29 28
             'Wincache is now deprecated and will be removed as of v10 due to the lack of updates to PHP8 as officially stated by PHP:
30 29
             https://www.php.net/manual/en/install.windows.recommended.php',
Please login to merge, or discard this patch.
vendor/phpfastcache/phpfastcache/lib/Phpfastcache/Drivers/Redis/Driver.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,8 @@  discard block
 block discarded – undo
97 97
          */
98 98
         if ($this->getConfig()->getPath()) {
99 99
             $isConnected = $this->instance->connect($this->getConfig()->getPath());
100
-        } else {
100
+        }
101
+        else {
101 102
             $isConnected = $this->instance->connect($this->getConfig()->getHost(), $this->getConfig()->getPort(), $this->getConfig()->getTimeout());
102 103
         }
103 104
 
@@ -129,7 +130,8 @@  discard block
 block discarded – undo
129 130
         $keys = $this->instance->scan($i, $pattern === '' ? '*' : $pattern, ExtendedCacheItemPoolInterface::MAX_ALL_KEYS_COUNT);
130 131
         if (is_iterable($keys)) {
131 132
             return $keys;
132
-        } else {
133
+        }
134
+        else {
133 135
             return [];
134 136
         }
135 137
     }
Please login to merge, or discard this patch.