Code Duplication    Length = 6-7 lines in 2 locations

src/Request/Execute.php 1 location

@@ 54-60 (lines=7) @@
51
	 * @param int $consistency
52
	 * @param array $options
53
	 */
54
	public function __construct($queryId, array $values, $consistency = null, $options = []) {
55
		$this->_queryId = $queryId;
56
		$this->_values = $values;
57
		 
58
		$this->_consistency = $consistency === null ? Request::CONSISTENCY_ONE : $consistency;
59
		$this->_options = $options;
60
	}
61
	
62
	public function getBody(){
63
		$body = pack('n', strlen($this->_queryId)) . $this->_queryId;

src/Request/Query.php 1 location

@@ 58-63 (lines=6) @@
55
	 * @param int $consistency
56
	 * @param array $options
57
	 */
58
	public function __construct($cql, $values = [], $consistency = null, $options = []) {
59
		$this->_cql = $cql;
60
		$this->_values = $values;
61
		$this->_consistency = $consistency === null ? Request::CONSISTENCY_ONE : $consistency;
62
		$this->_options = $options;
63
	}
64
	
65
	public function getBody(){
66
		$body = pack('N', strlen($this->_cql)) . $this->_cql;