Code Duplication    Length = 8-8 lines in 2 locations

src/Framing/Frame.php 2 locations

@@ 307-314 (lines=8) @@
304
                        $header['channel']
305
                    );
306
                }
307
                if ($method === "\x00\x1E") {
308
                    return new Method\QueuePurge(
309
                        $header['channel'],
310
                        Value\ShortValue::decode($data),
311
                        Value\ShortStringValue::decode($data),
312
                        Value\BooleanValue::decode($data)
313
                    );
314
                }
315
                if ($method === "\x00\x1F") {
316
                    return new Method\QueuePurgeOk(
317
                        $header['channel'],
@@ 414-421 (lines=8) @@
411
                        Value\ShortStringValue::decode($data)
412
                    );
413
                }
414
                if ($method === "\x00\x46") {
415
                    return new Method\BasicGet(
416
                        $header['channel'],
417
                        Value\ShortValue::decode($data),
418
                        Value\ShortStringValue::decode($data),
419
                        Value\BooleanValue::decode($data)
420
                    );
421
                }
422
                if ($method === "\x00\x47") {
423
                    return new Method\BasicGetOk(
424
                        $header['channel'],