Code Duplication    Length = 11-11 lines in 2 locations

src/RedisProxy.php 2 locations

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