Code Duplication    Length = 11-11 lines in 2 locations

src/RedisProxy.php 2 locations

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