duoshuo/php-cassandra

View on GitHub
src/Response/StreamReader.php

Summary

Maintainability
B
5 hrs
Test Coverage

StreamReader has 24 functions (exceeds 20 allowed). Consider refactoring.
Open

class StreamReader {

    /**
     * @var string
     */
Severity: Minor
Found in src/Response/StreamReader.php - About 2 hrs to fix

    Method readType has 44 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function readType(){
            $type = $this->readShort();
            switch ($type) {
                case Type\Base::CUSTOM:
                    return [
    Severity: Minor
    Found in src/Response/StreamReader.php - About 1 hr to fix

      Avoid too many return statements within this method.
      Open

                      return $data;
      Severity: Major
      Found in src/Response/StreamReader.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        return $type;
        Severity: Major
        Found in src/Response/StreamReader.php - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status