Test Failed
Push — master ( 64e257...5218bb )
by
unknown
23:17 queued 13:24
created
vendor/phpfastcache/phpfastcache/lib/Phpfastcache/Drivers/Files/Driver.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,8 @@  discard block
 block discarded – undo
67 67
 
68 68
         try {
69 69
             $content = $this->readFile($filePath);
70
-        } catch (PhpfastcacheIOException) {
70
+        }
71
+        catch (PhpfastcacheIOException) {
71 72
             return null;
72 73
         }
73 74
 
@@ -89,7 +90,8 @@  discard block
 block discarded – undo
89 90
 
90 91
         try {
91 92
             return $this->writeFile($filePath, $data, $this->getConfig()->isSecureFileManipulation());
92
-        } catch (Exception) {
93
+        }
94
+        catch (Exception) {
93 95
             return false;
94 96
         }
95 97
     }
Please login to merge, or discard this patch.
vendor/phpfastcache/phpfastcache/lib/Phpfastcache/Drivers/Predis/Driver.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,13 +121,15 @@
 block discarded – undo
121 121
                 ],
122 122
                 $options
123 123
             );
124
-        } else {
124
+        }
125
+        else {
125 126
             $this->instance = new PredisClient($this->getConfig()->getPredisConfigArray(), $options);
126 127
         }
127 128
 
128 129
         try {
129 130
             $this->instance->connect();
130
-        } catch (PredisConnectionException $e) {
131
+        }
132
+        catch (PredisConnectionException $e) {
131 133
             throw new PhpfastcacheDriverException(
132 134
                 'Failed to connect to predis server. Check the Predis documentation: https://github.com/nrk/predis/tree/v1.1#how-to-install-and-use-predis',
133 135
                 0,
Please login to merge, or discard this patch.
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.