@@ -152,7 +152,7 @@ |
||
152 | 152 | */ |
153 | 153 | if(!empty($server[ 'path' ]) && !$this->instance->addServer($server[ 'path' ], 0)){ |
154 | 154 | $this->fallback = true; |
155 | - }else if (!empty($server[ 'host' ]) && !$this->instance->addServer($server[ 'host' ], $server[ 'port' ])) { |
|
155 | + } else if (!empty($server[ 'host' ]) && !$this->instance->addServer($server[ 'host' ], $server[ 'port' ])) { |
|
156 | 156 | $this->fallback = true; |
157 | 157 | } |
158 | 158 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | 'scheme' => 'unix', |
61 | 61 | 'path' => $this->config->getOption('path') |
62 | 62 | ]); |
63 | - }else{ |
|
63 | + } else{ |
|
64 | 64 | var_dump($this->getConfig()->getPredisConfigArray()); |
65 | 65 | $this->instance = new PredisClient($this->getConfig()->getPredisConfigArray()); |
66 | 66 | } |
@@ -134,7 +134,7 @@ |
||
134 | 134 | if ($item instanceof Item) { |
135 | 135 | try{ |
136 | 136 | return (bool)$this->getBucket()->remove($item->getEncodedKey()); |
137 | - }catch (\Couchbase\Exception $e){ |
|
137 | + } catch (\Couchbase\Exception $e){ |
|
138 | 138 | return $e->getCode() === COUCHBASE_KEY_ENOENT; |
139 | 139 | } |
140 | 140 | } |
@@ -152,7 +152,7 @@ |
||
152 | 152 | */ |
153 | 153 | if(!empty($server[ 'path' ]) && !$this->instance->addServer($server[ 'path' ], 0)){ |
154 | 154 | $this->fallback = true; |
155 | - }else if (!empty($server[ 'host' ]) && !$this->instance->addServer($server[ 'host' ], $server[ 'port' ])) { |
|
155 | + } else if (!empty($server[ 'host' ]) && !$this->instance->addServer($server[ 'host' ], $server[ 'port' ])) { |
|
156 | 156 | $this->fallback = true; |
157 | 157 | } |
158 | 158 |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | |
105 | 105 | if(array_key_exists($property, $array)){ |
106 | 106 | $this->$property = &$array[ $property ]; |
107 | - }else{ |
|
107 | + } else{ |
|
108 | 108 | $array[ $property ] = &$this->$property; |
109 | 109 | } |
110 | 110 | } |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | */ |
122 | 122 | $value = $this->{lcfirst(substr($method, 3))}; |
123 | 123 | $this->{$method}($value); |
124 | - }catch(\TypeError $e){ |
|
124 | + } catch(\TypeError $e){ |
|
125 | 125 | $typeHintGot = \is_object($value) ? \get_class($value) : \gettype($value); |
126 | 126 | $reflectionMethod = new \ReflectionMethod($this, $method); |
127 | 127 | $parameter = $reflectionMethod->getParameters()[0] ?? null; |
@@ -186,7 +186,7 @@ |
||
186 | 186 | public function exceptionHandler(\Throwable $exception) { |
187 | 187 | if($exception instanceof phpFastCacheDriverCheckException){ |
188 | 188 | $this->printSkipText('A driver could not be initialized due to missing requirement: ' . $exception->getMessage()); |
189 | - }else{ |
|
189 | + } else{ |
|
190 | 190 | $this->printFailText(sprintf( |
191 | 191 | 'Uncaught exception "%s" in "%s" line %d with message: "%s"', |
192 | 192 | \get_class($exception), |
@@ -102,9 +102,9 @@ |
||
102 | 102 | 'The CacheManager will drops the support of primitive configuration arrays, use a "\Phpfastcache\Config\ConfigurationOption" object instead', |
103 | 103 | E_USER_DEPRECATED |
104 | 104 | ); |
105 | - }elseif ($config === null){ |
|
105 | + } elseif ($config === null){ |
|
106 | 106 | $config = self::getDefaultConfig(); |
107 | - }else if(!($config instanceof ConfigurationOption)){ |
|
107 | + } else if(!($config instanceof ConfigurationOption)){ |
|
108 | 108 | throw new phpFastCacheInvalidArgumentException(sprintf('Unsupported config type: %s', gettype($config))); |
109 | 109 | } |
110 | 110 |