@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | protected function validateRedisInstance($redis) |
| 42 | 42 | { |
| 43 | - if (! $redis instanceof Redis && ! $redis instanceof RedisCluster) { |
|
| 43 | + if (!$redis instanceof Redis && !$redis instanceof RedisCluster) { |
|
| 44 | 44 | throw new \InvalidArgumentException('Redis is not a valid instance.'); |
| 45 | 45 | } |
| 46 | 46 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | { |
| 85 | 85 | $serviceName = $this->makeNamespace($service) . ':failures'; |
| 86 | 86 | |
| 87 | - if (! $this->redis->get($serviceName)) { |
|
| 87 | + if (!$this->redis->get($serviceName)) { |
|
| 88 | 88 | $this->redis->multi(); |
| 89 | 89 | $this->redis->incr($serviceName); |
| 90 | 90 | $this->redis->expire($serviceName, CircuitBreaker::getServiceSetting($service, 'timeWindow')); |