src/Protocol/BinaryData.php
Method __toString
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __toString() {
switch($this->type) {
case DataTypeEnum::CUSTOM:
case DataTypeEnum::BLOB:
return $this->getBlob();
Avoid too many return
statements within this method. Open
Open
return $this->getBoolean();
Avoid too many return
statements within this method. Open
Open
return $this->getInet();
Avoid too many return
statements within this method. Open
Open
return $this->getInt();
Avoid too many return
statements within this method. Open
Open
return $this->getText();
Avoid too many return
statements within this method. Open
Open
return '';
Avoid too many return
statements within this method. Open
Open
return $this->getMap();
Avoid too many return
statements within this method. Open
Open
return $this->getDouble();
Avoid too many return
statements within this method. Open
Open
return $this->getDecimal();
Avoid too many return
statements within this method. Open
Open
return $this->getUUID();
Avoid too many return
statements within this method. Open
Open
return $this->getList();
Avoid too many return
statements within this method. Open
Open
return $this->getFloat();