@@ -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 |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | if($ttl <= 0){ |
82 | 82 | return $this->instance->expire($item->getKey(), 0); |
83 | - }else{ |
|
83 | + } else{ |
|
84 | 84 | return $this->instance->setex($item->getKey(), $ttl, $this->encode($this->driverPreWrap($item))); |
85 | 85 | } |
86 | 86 | } else { |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | 'scheme' => 'unix', |
154 | 154 | 'path' => $path |
155 | 155 | ]); |
156 | - }else{ |
|
156 | + } else{ |
|
157 | 157 | $this->instance = new PredisClient($config); |
158 | 158 | } |
159 | 159 |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | if($ttl <= 0){ |
78 | 78 | return $this->instance->expire($item->getKey(), 0); |
79 | - }else{ |
|
79 | + } else{ |
|
80 | 80 | return $this->instance->setex($item->getKey(), $ttl, $this->encode($this->driverPreWrap($item))); |
81 | 81 | } |
82 | 82 | } else { |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | */ |
147 | 147 | if($path){ |
148 | 148 | $isConnected = $this->instance->connect($path); |
149 | - }else{ |
|
149 | + } else{ |
|
150 | 150 | $isConnected = $this->instance->connect($host, (int)$port, (int)$timeout); |
151 | 151 | } |
152 | 152 |
@@ -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 |