Code Duplication    Length = 7-8 lines in 2 locations

src/Framing/Frame.php 2 locations

@@ 104-111 (lines=8) @@
101
                        Value\ShortValue::decode($data)
102
                    );
103
                }
104
                if ($method === "\x00\x28") {
105
                    return new Method\ConnectionOpen(
106
                        $header['channel'],
107
                        Value\ShortStringValue::decode($data),
108
                        Value\ShortStringValue::decode($data),
109
                        Value\BooleanValue::decode($data)
110
                    );
111
                }
112
                if ($method === "\x00\x29") {
113
                    return new Method\ConnectionOpenOk(
114
                        $header['channel'],
@@ 372-378 (lines=7) @@
369
                        Value\ShortStringValue::decode($data)
370
                    );
371
                }
372
                if ($method === "\x00\x1E") {
373
                    return new Method\BasicCancel(
374
                        $header['channel'],
375
                        Value\ShortStringValue::decode($data),
376
                        Value\BooleanValue::decode($data)
377
                    );
378
                }
379
                if ($method === "\x00\x1F") {
380
                    return new Method\BasicCancelOk(
381
                        $header['channel'],