Passed
Pull Request — master (#677)
by Georges
01:36
created
lib/Phpfastcache/Drivers/Memcache/Config.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -108,16 +108,16 @@
 block discarded – undo
108 108
     public function setServers(array $servers): self
109 109
     {
110 110
         foreach ($servers as $server) {
111
-            if($diff = \array_diff(['host', 'port', 'saslUser', 'saslPassword'], \array_keys($server))){
112
-                throw new PhpfastcacheInvalidConfigurationException('Missing keys for memcached server: '. \implode(', ', $diff));
111
+            if ($diff = \array_diff(['host', 'port', 'saslUser', 'saslPassword'], \array_keys($server))) {
112
+                throw new PhpfastcacheInvalidConfigurationException('Missing keys for memcached server: ' . \implode(', ', $diff));
113 113
             }
114
-            if($diff = \array_diff( \array_keys($server), ['host', 'port', 'saslUser', 'saslPassword'])){
115
-                throw new PhpfastcacheInvalidConfigurationException('Unknown keys for memcached server: '. \implode(', ', $diff));
114
+            if ($diff = \array_diff(\array_keys($server), ['host', 'port', 'saslUser', 'saslPassword'])) {
115
+                throw new PhpfastcacheInvalidConfigurationException('Unknown keys for memcached server: ' . \implode(', ', $diff));
116 116
             }
117
-            if(!\is_string($server['host'])){
117
+            if (!\is_string($server['host'])) {
118 118
                 throw new PhpfastcacheInvalidConfigurationException('Host must be a valid string in "$server" configuration array');
119 119
             }
120
-            if(!\is_int($server['port'])){
120
+            if (!\is_int($server['port'])) {
121 121
                 throw new PhpfastcacheInvalidConfigurationException('Port must be a valid integer in "$server" configuration array');
122 122
             }
123 123
         }
Please login to merge, or discard this patch.
lib/Phpfastcache/Drivers/Memcached/Config.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -108,16 +108,16 @@
 block discarded – undo
108 108
     public function setServers(array $servers): self
109 109
     {
110 110
         foreach ($servers as $server) {
111
-            if($diff = \array_diff(['host', 'port', 'saslUser', 'saslPassword'], \array_keys($server))){
112
-                throw new PhpfastcacheInvalidConfigurationException('Missing keys for memcached server: '. \implode(', ', $diff));
111
+            if ($diff = \array_diff(['host', 'port', 'saslUser', 'saslPassword'], \array_keys($server))) {
112
+                throw new PhpfastcacheInvalidConfigurationException('Missing keys for memcached server: ' . \implode(', ', $diff));
113 113
             }
114
-            if($diff = \array_diff( \array_keys($server), ['host', 'port', 'saslUser', 'saslPassword'])){
115
-                throw new PhpfastcacheInvalidConfigurationException('Unknown keys for memcached server: '. \implode(', ', $diff));
114
+            if ($diff = \array_diff(\array_keys($server), ['host', 'port', 'saslUser', 'saslPassword'])) {
115
+                throw new PhpfastcacheInvalidConfigurationException('Unknown keys for memcached server: ' . \implode(', ', $diff));
116 116
             }
117
-            if(!\is_string($server['host'])){
117
+            if (!\is_string($server['host'])) {
118 118
                 throw new PhpfastcacheInvalidConfigurationException('Host must be a valid string in "$server" configuration array');
119 119
             }
120
-            if(!\is_int($server['port'])){
120
+            if (!\is_int($server['port'])) {
121 121
                 throw new PhpfastcacheInvalidConfigurationException('Port must be a valid integer in "$server" configuration array');
122 122
             }
123 123
         }
Please login to merge, or discard this patch.