Passed
Pull Request — main (#6)
by
unknown
03:18
created
src/SuperCacheManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         // Usa pipeline solo se non è un cluster
94 94
         $isCluster = config('database.redis.clusters.' . ($connection_name ?? 'default')) !== null;
95 95
         if (!$isCluster) {
96
-            $this->redis->pipeline(function ($pipe) use ($finalKey, $finalTags, $value, $tags, $ttl) {
96
+            $this->redis->pipeline(function($pipe) use ($finalKey, $finalTags, $value, $tags, $ttl) {
97 97
                 // Qui devo mettere le {} perchè così mi assicuro che la chiave e i suoi tags stiano nello stesso has
98 98
                 if ($ttl !== null) {
99 99
                     $pipe->setEx('{' . $finalKey . '}', $ttl, $this->serializeForRedis($value));
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         $tags = $this->redis->getRedisConnection($connection_name)->smembers($finalTags);
187 187
         $isCluster = config('database.redis.clusters.' . ($connection_name ?? 'default')) !== null;
188 188
         if (!$isCluster) {
189
-            $this->redis->pipeline(function ($pipe) use ($isWithTags, $onlyTags, $tags, $finalKey, $finalTags) {
189
+            $this->redis->pipeline(function($pipe) use ($isWithTags, $onlyTags, $tags, $finalKey, $finalTags) {
190 190
                 foreach ($tags as $tag) {
191 191
                     $shard = $this->getShardNameForTag($tag, ($isWithTags ? ('{' . $finalKey . '}') : $finalKey));
192 192
                     $pipe->srem($shard, ($isWithTags ? ('{' . $finalKey . '}') : $finalKey));
Please login to merge, or discard this patch.
src/Console/ListenerCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@
 block discarded – undo
198 198
             $async_connection = $this->redis->getNativeRedisConnection($this->option('connection_name'), $this->option('host'), $this->option('port'));
199 199
             $pattern = '__keyevent@' . $async_connection['database'] . '__:expired';
200 200
             // La psubscribe è BLOCCANTE, il command resta attivo finchè non cade la connessione
201
-            $async_connection['connection']->psubscribe([$pattern], function ($redis, $channel, $message, $key) {
201
+            $async_connection['connection']->psubscribe([$pattern], function($redis, $channel, $message, $key) {
202 202
                 $this->onExpireEvent($key);
203 203
 
204 204
                 // Verifica se è necessario processare il batch
Please login to merge, or discard this patch.