Code Duplication    Length = 9-10 lines in 2 locations

src/Framing/Frame.php 2 locations

@@ 57-66 (lines=10) @@
54
            $method = $data->read(2);
55
56
            if ($class === "\x00\x0A") {
57
                if ($method === "\x00\x0A") {
58
                    return new Method\ConnectionStart(
59
                        $header['channel'],
60
                        Value\OctetValue::decode($data),
61
                        Value\OctetValue::decode($data),
62
                        Value\TableValue::decode($data),
63
                        Value\LongStringValue::decode($data),
64
                        Value\LongStringValue::decode($data)
65
                    );
66
                }
67
                if ($method === "\x00\x0B") {
68
                    return new Method\ConnectionStartOk(
69
                        $header['channel'],
@@ 67-75 (lines=9) @@
64
                        Value\LongStringValue::decode($data)
65
                    );
66
                }
67
                if ($method === "\x00\x0B") {
68
                    return new Method\ConnectionStartOk(
69
                        $header['channel'],
70
                        Value\TableValue::decode($data),
71
                        Value\ShortStringValue::decode($data),
72
                        Value\LongStringValue::decode($data),
73
                        Value\ShortStringValue::decode($data)
74
                    );
75
                }
76
                if ($method === "\x00\x14") {
77
                    return new Method\ConnectionSecure(
78
                        $header['channel'],