Passed
Branch 1.6.0 (f40346)
by Stanislau
13:45
created
Category
src/RedisPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Configuration/RedisClientConfiguration.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.