meyfa/php-svg

View on GitHub
src/Rasterization/Path/ArcApproximator.php

Summary

Maintainability
B
4 hrs
Test Coverage
A
100%

Method endpointToCenter has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static function endpointToCenter(
        array $start,
        array $end,
        bool $large,
        bool $sweep,
Severity: Minor
Found in src/Rasterization/Path/ArcApproximator.php - About 1 hr to fix

    Method approximate has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function approximate(
            array $start,
            array $end,
            bool $large,
            bool $sweep,
    Severity: Minor
    Found in src/Rasterization/Path/ArcApproximator.php - About 1 hr to fix

      Method approximate has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              array $start,
              array $end,
              bool $large,
              bool $sweep,
              float $radiusX,
      Severity: Major
      Found in src/Rasterization/Path/ArcApproximator.php - About 1 hr to fix

        Method endpointToCenter has 8 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                array $start,
                array $end,
                bool $large,
                bool $sweep,
                float $radiusX,
        Severity: Major
        Found in src/Rasterization/Path/ArcApproximator.php - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status