@@ -32,11 +32,11 @@ |
||
| 32 | 32 | |
| 33 | 33 | public function provideDependencies(Container $container): void |
| 34 | 34 | { |
| 35 | - $container->register(\Micro\Plugin\Redis\Facade\RedisFacadeInterface::class, function (): Facade\RedisFacadeInterface { |
|
| 35 | + $container->register(\Micro\Plugin\Redis\Facade\RedisFacadeInterface::class, function(): Facade\RedisFacadeInterface { |
|
| 36 | 36 | return $this->createRedisFacade(); |
| 37 | 37 | }); |
| 38 | 38 | |
| 39 | - $container->register(RedisFacadeInterface::class, function (Container $container) { // Deprecation support |
|
| 39 | + $container->register(RedisFacadeInterface::class, function(Container $container) { // Deprecation support |
|
| 40 | 40 | return $container->get(\Micro\Plugin\Redis\Facade\RedisFacadeInterface::class); |
| 41 | 41 | }); |
| 42 | 42 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | */ |
| 77 | 77 | public function port(): int |
| 78 | 78 | { |
| 79 | - return (int) $this->get(self::CFG_CONNECTION_PORT, self::PORT_DEFAULT); |
|
| 79 | + return (int)$this->get(self::CFG_CONNECTION_PORT, self::PORT_DEFAULT); |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
@@ -84,12 +84,12 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | public function connectionTimeout(): float |
| 86 | 86 | { |
| 87 | - return (float) $this->get(self::CFG_CONNECTION_TIMEOUT, self::CONNECTION_TIMEOUT_DEFAULT); |
|
| 87 | + return (float)$this->get(self::CFG_CONNECTION_TIMEOUT, self::CONNECTION_TIMEOUT_DEFAULT); |
|
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | public function readTimeout(): float |
| 91 | 91 | { |
| 92 | - return (float) $this->get(self::CFG_READ_TIMEOUT, self::READ_TIMEOUT_DEFAULT); |
|
| 92 | + return (float)$this->get(self::CFG_READ_TIMEOUT, self::READ_TIMEOUT_DEFAULT); |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | */ |
| 122 | 122 | public function retryInterval(): int |
| 123 | 123 | { |
| 124 | - return (int) $this->get(self::CFG_CONNECTION_RETRY_INTERVAL, self::CONNECTION_RETRY_INTERNAL_DEFAULT); |
|
| 124 | + return (int)$this->get(self::CFG_CONNECTION_RETRY_INTERVAL, self::CONNECTION_RETRY_INTERNAL_DEFAULT); |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | /** |