chdemko/php-sorted-collections

View on GitHub

Showing 69 of 69 total issues

Method create has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public static function create(SortedMap $map, $fromKey, $toKey, $fromInclusive = true, $toInclusive = false)
Severity: Minor
Found in src/SortedCollection/SubMap.php - About 35 mins to fix

    Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        protected function __construct(SortedMap $map, $fromKey, $fromOption, $toKey, $toOption)
    Severity: Minor
    Found in src/SortedCollection/SubMap.php - About 35 mins to fix

      Method create has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public static function create(SortedSet $set, $from, $to, $fromInclusive = true, $toInclusive = false)
      Severity: Minor
      Found in src/SortedCollection/SubSet.php - About 35 mins to fix

        Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            protected function __construct(SortedSet $set, $from, $fromOption, $to, $toOption)
        Severity: Minor
        Found in src/SortedCollection/SubSet.php - About 35 mins to fix

          Avoid too many return statements within this method.
          Open

                          return $this->count();
          Severity: Major
          Found in src/SortedCollection/TreeNode.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return null;
            Severity: Major
            Found in src/SortedCollection/TreeNode.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                                      return null;
              Severity: Major
              Found in src/SortedCollection/TreeNode.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                return false;
                Severity: Major
                Found in src/SortedCollection/SubSet.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return $this->set;
                  Severity: Major
                  Found in src/SortedCollection/SubSet.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return $this->last();
                    Severity: Major
                    Found in src/SortedCollection/AbstractMap.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return parent::__get($property);
                      Severity: Major
                      Found in src/SortedCollection/SubSet.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        return $this->lastValue();
                        Severity: Major
                        Found in src/SortedCollection/AbstractMap.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return $node->successor;
                          Severity: Major
                          Found in src/SortedCollection/TreeNode.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                                    return $right;
                            Severity: Major
                            Found in src/SortedCollection/TreeNode.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return $node->right;
                              Severity: Major
                              Found in src/SortedCollection/TreeNode.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                return $this->first();
                                Severity: Major
                                Found in src/SortedCollection/AbstractMap.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                                  return parent::__get($property);
                                  Severity: Major
                                  Found in src/SortedCollection/SubMap.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                                    return $this->values();
                                    Severity: Major
                                    Found in src/SortedCollection/AbstractMap.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      return $this->count();
                                      Severity: Major
                                      Found in src/SortedCollection/AbstractMap.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        return $node->predecessor;
                                        Severity: Major
                                        Found in src/SortedCollection/TreeNode.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language