howardjones/network-weathermap

View on GitHub
lib/Weathermap/Core/ImageUtility.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method createColorizePalette has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function createColorizePalette($red, $green, $blue)
    {
        // We will create a monochromatic palette based on the input color
        // which will go from black to white

Severity: Minor
Found in lib/Weathermap/Core/ImageUtility.php - About 1 hr to fix

    Method imageRoundedRectangle has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public static function imageRoundedRectangle($imageRef, $left, $top, $right, $bottom, $radius, $color)
    Severity: Major
    Found in lib/Weathermap/Core/ImageUtility.php - About 50 mins to fix

      Method imageFilledRoundedRectangle has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public static function imageFilledRoundedRectangle($imageRef, $left, $top, $right, $bottom, $radius, $color)
      Severity: Major
      Found in lib/Weathermap/Core/ImageUtility.php - About 50 mins to fix

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

            public static function drawMarkerPolygon($gdImage, $colour, $point, $size, $relativeMoves)
        Severity: Minor
        Found in lib/Weathermap/Core/ImageUtility.php - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status