chdemko/php-sorted-collections

View on GitHub
src/SortedCollection/AbstractMap.php

Summary

Maintainability
B
5 hrs
Test Coverage

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

abstract class AbstractMap implements SortedMap
{
    /**
     * Magic get method
     *
Severity: Minor
Found in src/SortedCollection/AbstractMap.php - About 2 hrs 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 $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 $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 $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 $this->keys();
              Severity: Major
              Found in src/SortedCollection/AbstractMap.php - About 30 mins to fix

                There are no issues that match your filters.

                Category
                Status