Code Duplication    Length = 9-9 lines in 2 locations

src/Mixins/DelayingTrait.php 1 location

@@ 40-48 (lines=9) @@
37
        return $this->storage->zSetCount($this->delayedKey());
38
    }
39
    
40
    public function listDelayed($converted = false): array
41
    {
42
        $list = $this->storage->zSetItems($this->delayedKey());
43
        if ($converted === false || empty($list)) {
44
            return $list;
45
        } else {
46
            return array_map([$this->converter, 'toPayload'], $list);
47
        }
48
    }
49
    
50
    public function resumeAllDelayed()
51
    {

src/SimpleCircularQueue.php 1 location

@@ 69-77 (lines=9) @@
66
        return $this->storage->listCount($this->queueKey());
67
    }
68
    
69
    public function listQueued($converted = false): array
70
    {
71
        $list = $this->storage->listItems($this->queueKey());
72
        if ($converted === false || empty($list)) {
73
            return $list;
74
        } else {
75
            return array_map([$this->converter, 'toPayload'], $list);
76
        }
77
    }
78
    
79
    public function next()
80
    {