Code Duplication    Length = 11-11 lines in 2 locations

src/RedisProxy.php 2 locations

@@ 478-488 (lines=11) @@
475
     * @return boolean true on success
476
     * @throws RedisProxyException if number of arguments is wrong
477
     */
478
    public function mset(...$dictionary)
479
    {
480
        $this->init();
481
        if (is_array($dictionary[0])) {
482
            $result = $this->driver->mset(...$dictionary);
483
            return $this->transformResult($result);
484
        }
485
        $dictionary = $this->prepareKeyValue($dictionary, 'mset');
486
        $result = $this->driver->mset($dictionary);
487
        return $this->transformResult($result);
488
    }
489
490
    /**
491
     * Multi get
@@ 586-596 (lines=11) @@
583
     * @return boolean true on success
584
     * @throws RedisProxyException if number of arguments is wrong
585
     */
586
    public function hmset($key, ...$dictionary)
587
    {
588
        $this->init();
589
        if (is_array($dictionary[0])) {
590
            $result = $this->driver->hmset($key, ...$dictionary);
591
            return $this->transformResult($result);
592
        }
593
        $dictionary = $this->prepareKeyValue($dictionary, 'hmset');
594
        $result = $this->driver->hmset($key, $dictionary);
595
        return $this->transformResult($result);
596
    }
597
598
    /**
599
     * Multi hash get