evseevnn/php-cassandra-binary

View on GitHub
src/Protocol/BinaryData.php

Summary

Maintainability
C
7 hrs
Test Coverage

Method __toString has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function __toString() {
        switch($this->type) {
            case DataTypeEnum::CUSTOM:
            case DataTypeEnum::BLOB:
                return $this->getBlob();
Severity: Minor
Found in src/Protocol/BinaryData.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

                    return $this->getBoolean();
    Severity: Major
    Found in src/Protocol/BinaryData.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                      return $this->getInet();
      Severity: Major
      Found in src/Protocol/BinaryData.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return $this->getInt();
        Severity: Major
        Found in src/Protocol/BinaryData.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return $this->getText();
          Severity: Major
          Found in src/Protocol/BinaryData.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                    return '';
            Severity: Major
            Found in src/Protocol/BinaryData.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              return $this->getMap();
              Severity: Major
              Found in src/Protocol/BinaryData.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return $this->getDouble();
                Severity: Major
                Found in src/Protocol/BinaryData.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return $this->getDecimal();
                  Severity: Major
                  Found in src/Protocol/BinaryData.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return $this->getUUID();
                    Severity: Major
                    Found in src/Protocol/BinaryData.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return $this->getList();
                      Severity: Major
                      Found in src/Protocol/BinaryData.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return $this->getFloat();
                        Severity: Major
                        Found in src/Protocol/BinaryData.php - About 30 mins to fix

                          There are no issues that match your filters.

                          Category
                          Status