Code Duplication    Length = 7-8 lines in 30 locations

src/Redis/Command/Compose/ApiChannelTrait.php 1 location

@@ 46-53 (lines=8) @@
43
     * @override
44
     * @inheritDoc
45
     */
46
    public function publish($channel, $message)
47
    {
48
        // TODO: Implement publish() method.
49
        $command = Enum::PUBLISH;
50
        $args = [$channel, $message];
51
52
        return $this->dispatch(Builder::build($command, $args));
53
    }
54
55
    /**
56
     * @override

src/Redis/Command/Compose/ApiClusterTrait.php 1 location

@@ 112-119 (lines=8) @@
109
     * @override
110
     * @inheritDoc
111
     */
112
    public function clusterKeySlot($key)
113
    {
114
        // TODO: Implement clusterKeySlot() method.
115
        $command = Enum::CLUSTER_KEYSLOT;
116
        $args = [$key];
117
118
        return $this->dispatch(Builder::build($command, $args));
119
    }
120
121
    /**
122
     * @override

src/Redis/Command/Compose/ApiConnTrait.php 1 location

@@ 33-39 (lines=7) @@
30
     * @override
31
     * @inheritDoc
32
     */
33
    public function ping($message = 'PING')
34
    {
35
        $command = Enum::PING;
36
        $args = [$message];
37
38
        return $this->dispatch(Builder::build($command, $args));
39
    }
40
41
    /**
42
     * @override

src/Redis/Command/Compose/ApiCoreTrait.php 1 location

@@ 135-142 (lines=8) @@
132
     * @override
133
     * @inheritDoc
134
     */
135
    public function slaveOf($host, $port)
136
    {
137
        // TODO: Implement slaveOf() method.
138
        $command = Enum::SLAVEOF;
139
        $args = [$host, $port];
140
141
        return $this->dispatch(Builder::build($command, $args));
142
    }
143
144
    /**
145
     * @override

src/Redis/Command/Compose/ApiKeyValTrait.php 10 locations

@@ 108-115 (lines=8) @@
105
     * @override
106
     * @inheritDoc
107
     */
108
    public function decr($key)
109
    {
110
        // TODO: Implement decr() method.
111
        $command = Enum::DECR;
112
        $args = [$key];
113
114
        return $this->dispatch(Builder::build($command, $args));
115
    }
116
117
    /**
118
     * @override
@@ 134-140 (lines=7) @@
131
     * @override
132
     * @inheritDoc
133
     */
134
    public function get($key)
135
    {
136
        $command = Enum::GET;
137
        $args = [$key];
138
139
        return $this->dispatch(Builder::build($command, $args));
140
    }
141
142
    /**
143
     * @override
@@ 185-191 (lines=7) @@
182
     * @override
183
     * @inheritDoc
184
     */
185
    public function incr($key)
186
    {
187
        $command = Enum::INCR;
188
        $args = [$key];
189
190
        return $this->dispatch(Builder::build($command, $args));
191
    }
192
193
    /**
194
     * @override
@@ 337-343 (lines=7) @@
334
     * @override
335
     * @inheritDoc
336
     */
337
    public function strLen($key)
338
    {
339
        // TODO: Implement strLen() method.
340
        $command = Enum::STRLEN;
341
        $args = [$key];
342
343
        return $this->dispatch(Builder::build($command, $args));
344
    }
345
346
    /**
@@ 350-357 (lines=8) @@
347
     * @override
348
     * @inheritDoc
349
     */
350
    public function del($key,...$keys)
351
    {
352
        $command = Enum::DEL;
353
        $keys[] = $key;
354
        $args = $keys;
355
356
        return $this->dispatch(Builder::build($command, $args));
357
    }
358
359
    /**
360
     * @override
@@ 363-370 (lines=8) @@
360
     * @override
361
     * @inheritDoc
362
     */
363
    public function dump($key)
364
    {
365
        // TODO: Implement dump() method.
366
        $command = Enum::DUMP;
367
        $args = [$key];
368
369
        return $this->dispatch(Builder::build($command, $args));
370
    }
371
372
    /**
373
     * @override
@@ 416-422 (lines=7) @@
413
     * @override
414
     * @inheritDoc
415
     */
416
    public function persist($key)
417
    {
418
        $command = Enum::PERSIST;
419
        $args = [$key];
420
421
        return $this->dispatch(Builder::build($command, $args));
422
    }
423
424
    /**
425
     * @override
@@ 467-473 (lines=7) @@
464
     * @override
465
     * @inheritDoc
466
     */
467
    public function ttl($key)
468
    {
469
        // TODO: Implement ttl() method.
470
        $command = Enum::TTL;
471
        $args = [$key];
472
473
        return $this->dispatch(Builder::build($command, $args));
474
    }
475
476
    /**
@@ 480-486 (lines=7) @@
477
     * @override
478
     * @inheritDoc
479
     */
480
    public function type($key)
481
    {
482
        $command = Enum::TYPE;
483
        $args = [$key];
484
485
        return $this->dispatch(Builder::build($command, $args));
486
    }
487
488
    /**
489
     * @override
@@ 567-573 (lines=7) @@
564
     * @override
565
     * @inheritDoc
566
     */
567
    public function pTtl($key)
568
    {
569
        $command = Enum::PTTL;
570
        $args = [$key];
571
572
        return $this->dispatch(Builder::build($command, $args));
573
    }
574
575
    /**
576
     * @override

src/Redis/Command/Compose/ApiListTrait.php 4 locations

@@ 114-120 (lines=7) @@
111
     * @override
112
     * @inheritDoc
113
     */
114
    public function lLen($key)
115
    {
116
        // TODO: Implement lLen() method.
117
        $command = Enum::LLEN;
118
        $args = [$key];
119
120
        return $this->dispatch(Builder::build($command, $args));
121
    }
122
123
    /**
@@ 127-134 (lines=8) @@
124
     * @override
125
     * @inheritDoc
126
     */
127
    public function lPop($key)
128
    {
129
        // TODO: Implement lPop() method.
130
        $command = Enum::LPOP;
131
        $args = [$key];
132
133
        return $this->dispatch(Builder::build($command, $args));
134
    }
135
136
    /**
137
     * @override
@@ 211-218 (lines=8) @@
208
     * @override
209
     * @inheritDoc
210
     */
211
    public function rPop($key)
212
    {
213
        $command = Enum::RPOP;
214
        $args = [$key];
215
216
        return $this->dispatch(Builder::build($command, $args));
217
    }
218
219
    /**
220
     * @override
221
     * @inheritDoc
@@ 223-230 (lines=8) @@
220
     * @override
221
     * @inheritDoc
222
     */
223
    public function rPopLPush($src, $dst)
224
    {
225
        // TODO: Implement rPopLPush() method.
226
        $command = Enum::RPOPLPUSH;
227
        $args = [$src, $dst];
228
229
        return $this->dispatch(Builder::build($command, $args));
230
    }
231
232
    /**
233
     * @override

src/Redis/Command/Compose/ApiSetHashTrait.php 3 locations

@@ 95-101 (lines=7) @@
92
     * @override
93
     * @inheritDoc
94
     */
95
    public function hKeys($key)
96
    {
97
        $command = Enum::HKEYS;
98
        $args = [$key];
99
100
        return $this->dispatch(Builder::build($command, $args));
101
    }
102
103
    /**
104
     * @override
@@ 107-114 (lines=8) @@
104
     * @override
105
     * @inheritDoc
106
     */
107
    public function hLen($key)
108
    {
109
        $command = Enum::HLEN;
110
        $args = [$key];
111
112
        return $this->dispatch(Builder::build($command, $args));
113
    }
114
115
    /**
116
     * @override
117
     * @inheritDoc
@@ 188-195 (lines=8) @@
185
     * @override
186
     * @inheritDoc
187
     */
188
    public function hVals($key)
189
    {
190
        $command = Enum::HVALS;
191
        $args = [$key];
192
193
        return $this->dispatch(Builder::build($command, $args));
194
    }
195
196
    /**
197
     * @override
198
     * @inheritDoc

src/Redis/Command/Compose/ApiSetSortedTrait.php 5 locations

@@ 35-42 (lines=8) @@
32
     * @override
33
     * @inheritDoc
34
     */
35
    public function zCard($key)
36
    {
37
        // TODO: Implement zCard() method.
38
        $command = Enum::ZCARD;
39
        $args = [$key];
40
41
        return $this->dispatch(Builder::build($command, $args));
42
    }
43
44
    /**
45
     * @override
@@ 48-55 (lines=8) @@
45
     * @override
46
     * @inheritDoc
47
     */
48
    public function zCount($key, $min, $max)
49
    {
50
        // TODO: Implement zCount() method.
51
        $command = Enum::ZCOUNT;
52
        $args = [$key, $min, $max];
53
54
        return $this->dispatch(Builder::build($command, $args));
55
    }
56
57
    /**
58
     * @override
@@ 87-94 (lines=8) @@
84
     * @override
85
     * @inheritDoc
86
     */
87
    public function zLexCount($key, $min, $max)
88
    {
89
        // TODO: Implement zLexCount() method.
90
        $command = Enum::ZLEXCOUNT;
91
        $args = [$key, $min, $max];
92
93
        return $this->dispatch(Builder::build($command, $args));
94
    }
95
96
    /**
97
     * @override
@@ 183-190 (lines=8) @@
180
     * @override
181
     * @inheritDoc
182
     */
183
    public function zRemRangeByLex($key, $min, $max)
184
    {
185
        // TODO: Implement zRemRangeByLex() method.
186
        $command = Enum::ZREMRANGEBYLEX;
187
        $args = [$key, $min, $max];
188
189
        return $this->dispatch(Builder::build($command, $args));
190
    }
191
192
    /**
193
     * @override
@@ 209-216 (lines=8) @@
206
     * @override
207
     * @inheritDoc
208
     */
209
    public function zRemRangeByScore($key, $min, $max)
210
    {
211
        // TODO: Implement zRemRangeByScore() method.
212
        $command = Enum::ZREMRANGEBYSCORE;
213
        $args = [$key, $min, $max];
214
215
        return $this->dispatch(Builder::build($command, $args));
216
    }
217
218
    /**
219
     * @override

src/Redis/Command/Compose/ApiSetTrait.php 4 locations

@@ 88-95 (lines=8) @@
85
     * @override
86
     * @inheritDoc
87
     */
88
    public function sMembers($key)
89
    {
90
        // TODO: Implement sMembers() method.
91
        $command = Enum::SMEMBERS;
92
        $args = [$key];
93
94
        return $this->dispatch(Builder::build($command, $args));
95
    }
96
97
    /**
98
     * @override
@@ 115-122 (lines=8) @@
112
     * @override
113
     * @inheritDoc
114
     */
115
    public function sPop($key, $count)
116
    {
117
        // TODO: Implement sPop() method.
118
        $command = Enum::SPOP;
119
        $args = [$key, $count];
120
121
        return $this->dispatch(Builder::build($command, $args));
122
    }
123
124
    /**
125
     * @override
@@ 128-135 (lines=8) @@
125
     * @override
126
     * @inheritDoc
127
     */
128
    public function sRandMember($key, $count)
129
    {
130
        // TODO: Implement sRandMember() method.
131
        $command = Enum::SRANDMEMBER;
132
        $args = [$key, $count];
133
134
        return $this->dispatch(Builder::build($command, $args));
135
    }
136
137
    /**
138
     * @override
@@ 210-217 (lines=8) @@
207
     * @override
208
     * @inheritDoc
209
     */
210
    public function sCard($key)
211
    {
212
        // TODO: Implement sCard() method.
213
        $command = Enum::SCARD;
214
        $args = [$key];
215
216
        return $this->dispatch(Builder::build($command, $args));
217
    }
218
219
    /**
220
     * @override