Code Duplication    Length = 11-11 lines in 2 locations

src/RedisProxy.php 2 locations

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