Code Duplication    Length = 11-11 lines in 2 locations

src/RedisProxy.php 2 locations

@@ 343-353 (lines=11) @@
340
     * @return boolean true on success
341
     * @throws RedisProxyException if number of arguments is wrong
342
     */
343
    public function mset(...$dictionary)
344
    {
345
        $this->init();
346
        if (is_array($dictionary[0])) {
347
            $result = $this->driver->mset(...$dictionary);
348
            return $this->transformResult($result);
349
        }
350
        $dictionary = $this->prepareKeyValue($dictionary, 'mset');
351
        $result = $this->driver->mset($dictionary);
352
        return $this->transformResult($result);
353
    }
354
355
    /**
356
     * Multi get
@@ 451-461 (lines=11) @@
448
     * @return boolean true on success
449
     * @throws RedisProxyException if number of arguments is wrong
450
     */
451
    public function hmset($key, ...$dictionary)
452
    {
453
        $this->init();
454
        if (is_array($dictionary[0])) {
455
            $result = $this->driver->hmset($key, ...$dictionary);
456
            return $this->transformResult($result);
457
        }
458
        $dictionary = $this->prepareKeyValue($dictionary, 'hmset');
459
        $result = $this->driver->hmset($key, $dictionary);
460
        return $this->transformResult($result);
461
    }
462
463
    /**
464
     * Multi hash get