Code Duplication    Length = 8-9 lines in 3 locations

src/Response/Error.php 3 locations

@@ 48-55 (lines=8) @@
45
				$data['message'] = "Bad credentials: " . $this->_stream->readString();
46
				break;
47
48
			case self::UNAVAILABLE_EXCEPTION:
49
				$data['message'] = "Unavailable exception. Error data: " . var_export([
50
                        'error'=>$this->_stream->readString(),
51
                        'consistency' => $this->_stream->readShort(),
52
                        'node' => $this->_stream->readInt(),
53
						'replica' => $this->_stream->readInt()
54
					], true);
55
				break;
56
57
			case self::OVERLOADED:
58
				$data['message'] = "Overloaded: " . $this->_stream->readString();
@@ 69-77 (lines=9) @@
66
				$data['message'] = "Truncate_error: " . $this->_stream->readString();
67
				break;
68
69
			case self::WRITE_TIMEOUT:
70
				$data['message'] = "Write_timeout. Error data: " . var_export([
71
                        'error'=>$this->_stream->readString(),
72
                        'consistency' => $this->_stream->readShort(),
73
						'node' => $this->_stream->readInt(),
74
						'replica' => $this->_stream->readInt(),
75
						'writeType' => $this->_stream->readString()
76
					], true);
77
				break;
78
79
			case self::READ_TIMEOUT:
80
				$data['message'] = "Read_timeout. Error data: " . var_export([
@@ 79-87 (lines=9) @@
76
					], true);
77
				break;
78
79
			case self::READ_TIMEOUT:
80
				$data['message'] = "Read_timeout. Error data: " . var_export([
81
                        'error'=>$this->_stream->readString(),
82
                        'consistency' => $this->_stream->readShort(),
83
						'node' => $this->_stream->readInt(),
84
						'replica' => $this->_stream->readInt(),
85
						'dataPresent' => $this->_stream->readChar()
86
					], true);
87
				break;
88
89
			case self::SYNTAX_ERROR:
90
				$data['message'] = "Syntax_error: " . $this->_stream->readString();