Code Duplication    Length = 11-11 lines in 2 locations

src/RedisProxy.php 2 locations

@@ 471-481 (lines=11) @@
468
     * @return boolean true on success
469
     * @throws RedisProxyException if number of arguments is wrong
470
     */
471
    public function mset(...$dictionary)
472
    {
473
        $this->init();
474
        if (is_array($dictionary[0])) {
475
            $result = $this->driver->mset(...$dictionary);
476
            return $this->transformResult($result);
477
        }
478
        $dictionary = $this->prepareKeyValue($dictionary, 'mset');
479
        $result = $this->driver->mset($dictionary);
480
        return $this->transformResult($result);
481
    }
482
483
    /**
484
     * Multi get
@@ 579-589 (lines=11) @@
576
     * @return boolean true on success
577
     * @throws RedisProxyException if number of arguments is wrong
578
     */
579
    public function hmset($key, ...$dictionary)
580
    {
581
        $this->init();
582
        if (is_array($dictionary[0])) {
583
            $result = $this->driver->hmset($key, ...$dictionary);
584
            return $this->transformResult($result);
585
        }
586
        $dictionary = $this->prepareKeyValue($dictionary, 'hmset');
587
        $result = $this->driver->hmset($key, $dictionary);
588
        return $this->transformResult($result);
589
    }
590
591
    /**
592
     * Multi hash get