HuasoFoundries/jpgraph

View on GitHub
src/plot/WindrosePlot.php

Summary

Maintainability
F
2 wks
Test Coverage

File WindrosePlot.php has 930 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

/**
 * JPGraph v4.0.3
 */
Severity: Major
Found in src/plot/WindrosePlot.php - About 2 days to fix

    Function _StrokeRegularRose has a Cognitive Complexity of 67 (exceeds 5 allowed). Consider refactoring.
    Open

        public function _StrokeRegularRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
        {
            // _StrokeRegularRose($dblImg,$xc,$yc,$r,$ri)
            // Plot radial grid lines and remember the end position
            // and the angle for later use when plotting the labels
    Severity: Minor
    Found in src/plot/WindrosePlot.php - About 1 day to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function _StrokeFreeRose has a Cognitive Complexity of 65 (exceeds 5 allowed). Consider refactoring.
    Open

        public function _StrokeFreeRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
        {
            // Plot radial grid lines and remember the end position
            // and the angle for later use when plotting the labels
            if ($this->iType != WINDROSE_TYPEFREE) {
    Severity: Minor
    Found in src/plot/WindrosePlot.php - About 1 day to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function SetAutoScaleAngle has a Cognitive Complexity of 63 (exceeds 5 allowed). Consider refactoring.
    Open

        public function SetAutoScaleAngle($aIsRegRose = true)
        {
            // If the user already has manually set an angle don't
            // trye to find a position
            if (is_numeric($this->scale->iAngle)) {
    Severity: Minor
    Found in src/plot/WindrosePlot.php - About 1 day to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Method _StrokeRegularRose has 140 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function _StrokeRegularRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
        {
            // _StrokeRegularRose($dblImg,$xc,$yc,$r,$ri)
            // Plot radial grid lines and remember the end position
            // and the angle for later use when plotting the labels
    Severity: Major
    Found in src/plot/WindrosePlot.php - About 5 hrs to fix

      WindrosePlot has 40 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class WindrosePlot
      {
          private $iAntiAlias          = true;
          private $iData               = [];
          public $iX                   = 0.5;
      Severity: Minor
      Found in src/plot/WindrosePlot.php - About 5 hrs to fix

        Method _StrokeFreeRose has 130 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function _StrokeFreeRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
            {
                // Plot radial grid lines and remember the end position
                // and the angle for later use when plotting the labels
                if ($this->iType != WINDROSE_TYPEFREE) {
        Severity: Major
        Found in src/plot/WindrosePlot.php - About 5 hrs to fix

          Method Stroke has 112 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function Stroke($aGraph)
              {
                  $aImg = $aGraph->img;
          
                  if ($this->iX > 0 && $this->iX < 1) {
          Severity: Major
          Found in src/plot/WindrosePlot.php - About 4 hrs to fix

            Method SetAutoScaleAngle has 108 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function SetAutoScaleAngle($aIsRegRose = true)
                {
                    // If the user already has manually set an angle don't
                    // trye to find a position
                    if (is_numeric($this->scale->iAngle)) {
            Severity: Major
            Found in src/plot/WindrosePlot.php - About 4 hrs to fix

              Function Stroke has a Cognitive Complexity of 29 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function Stroke($aGraph)
                  {
                      $aImg = $aGraph->img;
              
                      if ($this->iX > 0 && $this->iX < 1) {
              Severity: Minor
              Found in src/plot/WindrosePlot.php - About 4 hrs to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Method _StrokeLegend has 87 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function _StrokeLegend($aImg, $x, $y, $scaling = 1, $aReturnWidth = false)
                  {
                      if (!$this->legend->iShow) {
                          return 0;
                      }
              Severity: Major
              Found in src/plot/WindrosePlot.php - About 3 hrs to fix

                The class WindrosePlot has an overall complexity of 194 which is very high. The configured complexity threshold is 50.
                Open

                class WindrosePlot
                {
                    private $iAntiAlias          = true;
                    private $iData               = [];
                    public $iX                   = 0.5;
                Severity: Minor
                Found in src/plot/WindrosePlot.php by phpmd

                Function FixupIndexes has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function FixupIndexes($aDataArray, $num)
                    {
                        $ret  = [];
                        $keys = array_keys($aDataArray);
                        foreach ($aDataArray as $idx => $data) {
                Severity: Minor
                Found in src/plot/WindrosePlot.php - About 1 hr to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                The class WindrosePlot has 36 fields. Consider redesigning WindrosePlot to keep the number of fields under 15.
                Open

                class WindrosePlot
                {
                    private $iAntiAlias          = true;
                    private $iData               = [];
                    public $iX                   = 0.5;
                Severity: Minor
                Found in src/plot/WindrosePlot.php by phpmd

                TooManyFields

                Since: 0.1

                Classes that have too many fields could be redesigned to have fewer fields, possibly through some nested object grouping of some of the information. For example, a class with city/state/zip fields could instead have one Address field.

                Example

                class Person {
                   protected $one;
                   private $two;
                   private $three;
                   [... many more fields ...]
                }

                Source https://phpmd.org/rules/codesize.html#toomanyfields

                The class WindrosePlot has 49 public methods and attributes. Consider reducing the number of public items to less than 45.
                Open

                class WindrosePlot
                {
                    private $iAntiAlias          = true;
                    private $iData               = [];
                    public $iX                   = 0.5;
                Severity: Minor
                Found in src/plot/WindrosePlot.php by phpmd

                ExcessivePublicCount

                Since: 0.1

                A large number of public methods and attributes declared in a class can indicate the class may need to be broken up as increased effort will be required to thoroughly test it.

                Example

                public class Foo {
                    public $value;
                    public $something;
                    public $var;
                    // [... more more public attributes ...]
                
                    public function doWork() {}
                    public function doMoreWork() {}
                    public function doWorkAgain() {}
                    // [... more more public methods ...]
                }

                Source https://phpmd.org/rules/codesize.html#excessivepubliccount

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

                    public function getHeight($aImg)
                    {
                        $scaling = 1; //$this->iAntiAlias ? 2 : 1 ;
                        if ($this->iSize > 0 && $this->iSize < 1) {
                            $this->iSize *= min($aImg->width, $aImg->height);
                Severity: Minor
                Found in src/plot/WindrosePlot.php - About 1 hr to fix

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

                      public function _StrokeWindLeg($aImg, $xc, $yc, $a, $ri, $r, $weight, $color)
                  Severity: Major
                  Found in src/plot/WindrosePlot.php - About 1 hr to fix

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

                        public function _StrokeRegularRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                    Severity: Major
                    Found in src/plot/WindrosePlot.php - About 50 mins to fix

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

                          public function _StrokeFreeRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                      Severity: Major
                      Found in src/plot/WindrosePlot.php - About 50 mins to fix

                        Method _ThickCircle has 6 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            public function _ThickCircle($aImg, $aXC, $aYC, $aRad, $aWeight, $aColor)
                        Severity: Minor
                        Found in src/plot/WindrosePlot.php - About 45 mins to fix

                          Function _StrokeLegend has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                          Open

                              public function _StrokeLegend($aImg, $x, $y, $scaling = 1, $aReturnWidth = false)
                              {
                                  if (!$this->legend->iShow) {
                                      return 0;
                                  }
                          Severity: Minor
                          Found in src/plot/WindrosePlot.php - About 45 mins to fix

                          Cognitive Complexity

                          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                          A method's cognitive complexity is based on a few simple rules:

                          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                          • Code is considered more complex for each "break in the linear flow of the code"
                          • Code is considered more complex when "flow breaking structures are nested"

                          Further reading

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

                              public function _StrokeLegend($aImg, $x, $y, $scaling = 1, $aReturnWidth = false)
                          Severity: Minor
                          Found in src/plot/WindrosePlot.php - About 35 mins to fix

                            Function getWidth has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function getWidth($aImg)
                                {
                                    $scaling = 1; //$this->iAntiAlias ? 2 : 1 ;
                                    if ($this->iSize > 0 && $this->iSize < 1) {
                                        $this->iSize *= min($aImg->width, $aImg->height);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php - About 25 mins to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

                            Function getHeight has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                            Open

                                public function getHeight($aImg)
                                {
                                    $scaling = 1; //$this->iAntiAlias ? 2 : 1 ;
                                    if ($this->iSize > 0 && $this->iSize < 1) {
                                        $this->iSize *= min($aImg->width, $aImg->height);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php - About 25 mins to fix

                            Cognitive Complexity

                            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                            A method's cognitive complexity is based on a few simple rules:

                            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                            • Code is considered more complex for each "break in the linear flow of the code"
                            • Code is considered more complex when "flow breaking structures are nested"

                            Further reading

                            The method Stroke() has 162 lines of code. Current threshold is set to 100. Avoid really long methods.
                            Open

                                public function Stroke($aGraph)
                                {
                                    $aImg = $aGraph->img;
                            
                                    if ($this->iX > 0 && $this->iX < 1) {
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            The method _StrokeRegularRose() has an NPath complexity of 69300000. The configured NPath complexity threshold is 200.
                            Open

                                public function _StrokeRegularRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                                {
                                    // _StrokeRegularRose($dblImg,$xc,$yc,$r,$ri)
                                    // Plot radial grid lines and remember the end position
                                    // and the angle for later use when plotting the labels
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            NPathComplexity

                            Since: 0.1

                            The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

                            Example

                            class Foo {
                                function bar() {
                                    // lots of complicated code
                                }
                            }

                            Source https://phpmd.org/rules/codesize.html#npathcomplexity

                            The method SetAutoScaleAngle() has 140 lines of code. Current threshold is set to 100. Avoid really long methods.
                            Open

                                public function SetAutoScaleAngle($aIsRegRose = true)
                                {
                                    // If the user already has manually set an angle don't
                                    // trye to find a position
                                    if (is_numeric($this->scale->iAngle)) {
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            The method _StrokeFreeRose() has 176 lines of code. Current threshold is set to 100. Avoid really long methods.
                            Open

                                public function _StrokeFreeRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                                {
                                    // Plot radial grid lines and remember the end position
                                    // and the angle for later use when plotting the labels
                                    if ($this->iType != WINDROSE_TYPEFREE) {
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            The method _StrokeLegend() has 127 lines of code. Current threshold is set to 100. Avoid really long methods.
                            Open

                                public function _StrokeLegend($aImg, $x, $y, $scaling = 1, $aReturnWidth = false)
                                {
                                    if (!$this->legend->iShow) {
                                        return 0;
                                    }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            The method Stroke() has an NPath complexity of 456192. The configured NPath complexity threshold is 200.
                            Open

                                public function Stroke($aGraph)
                                {
                                    $aImg = $aGraph->img;
                            
                                    if ($this->iX > 0 && $this->iX < 1) {
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            NPathComplexity

                            Since: 0.1

                            The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

                            Example

                            class Foo {
                                function bar() {
                                    // lots of complicated code
                                }
                            }

                            Source https://phpmd.org/rules/codesize.html#npathcomplexity

                            The method SetAutoScaleAngle() has an NPath complexity of 36958. The configured NPath complexity threshold is 200.
                            Open

                                public function SetAutoScaleAngle($aIsRegRose = true)
                                {
                                    // If the user already has manually set an angle don't
                                    // trye to find a position
                                    if (is_numeric($this->scale->iAngle)) {
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            NPathComplexity

                            Since: 0.1

                            The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

                            Example

                            class Foo {
                                function bar() {
                                    // lots of complicated code
                                }
                            }

                            Source https://phpmd.org/rules/codesize.html#npathcomplexity

                            The method _StrokeRegularRose() has 180 lines of code. Current threshold is set to 100. Avoid really long methods.
                            Open

                                public function _StrokeRegularRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                                {
                                    // _StrokeRegularRose($dblImg,$xc,$yc,$r,$ri)
                                    // Plot radial grid lines and remember the end position
                                    // and the angle for later use when plotting the labels
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            The class WindrosePlot has 1186 lines of code. Current threshold is 1000. Avoid really long classes.
                            Open

                            class WindrosePlot
                            {
                                private $iAntiAlias          = true;
                                private $iData               = [];
                                public $iX                   = 0.5;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            The method _StrokeFreeRose() has an NPath complexity of 34437048. The configured NPath complexity threshold is 200.
                            Open

                                public function _StrokeFreeRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                                {
                                    // Plot radial grid lines and remember the end position
                                    // and the angle for later use when plotting the labels
                                    if ($this->iType != WINDROSE_TYPEFREE) {
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            NPathComplexity

                            Since: 0.1

                            The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

                            Example

                            class Foo {
                                function bar() {
                                    // lots of complicated code
                                }
                            }

                            Source https://phpmd.org/rules/codesize.html#npathcomplexity

                            The method SetAutoScaleAngle() has a Cyclomatic Complexity of 30. The configured cyclomatic complexity threshold is 10.
                            Open

                                public function SetAutoScaleAngle($aIsRegRose = true)
                                {
                                    // If the user already has manually set an angle don't
                                    // trye to find a position
                                    if (is_numeric($this->scale->iAngle)) {
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            CyclomaticComplexity

                            Since: 0.1

                            Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                            Example

                            // Cyclomatic Complexity = 11
                            class Foo {
                            1   public function example() {
                            2       if ($a == $b) {
                            3           if ($a1 == $b1) {
                                            fiddle();
                            4           } elseif ($a2 == $b2) {
                                            fiddle();
                                        } else {
                                            fiddle();
                                        }
                            5       } elseif ($c == $d) {
                            6           while ($c == $d) {
                                            fiddle();
                                        }
                            7        } elseif ($e == $f) {
                            8           for ($n = 0; $n < $h; $n++) {
                                            fiddle();
                                        }
                                    } else {
                                        switch ($z) {
                            9               case 1:
                                                fiddle();
                                                break;
                            10              case 2:
                                                fiddle();
                                                break;
                            11              case 3:
                                                fiddle();
                                                break;
                                            default:
                                                fiddle();
                                                break;
                                        }
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                            The method Stroke() has a Cyclomatic Complexity of 24. The configured cyclomatic complexity threshold is 10.
                            Open

                                public function Stroke($aGraph)
                                {
                                    $aImg = $aGraph->img;
                            
                                    if ($this->iX > 0 && $this->iX < 1) {
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            CyclomaticComplexity

                            Since: 0.1

                            Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                            Example

                            // Cyclomatic Complexity = 11
                            class Foo {
                            1   public function example() {
                            2       if ($a == $b) {
                            3           if ($a1 == $b1) {
                                            fiddle();
                            4           } elseif ($a2 == $b2) {
                                            fiddle();
                                        } else {
                                            fiddle();
                                        }
                            5       } elseif ($c == $d) {
                            6           while ($c == $d) {
                                            fiddle();
                                        }
                            7        } elseif ($e == $f) {
                            8           for ($n = 0; $n < $h; $n++) {
                                            fiddle();
                                        }
                                    } else {
                                        switch ($z) {
                            9               case 1:
                                                fiddle();
                                                break;
                            10              case 2:
                                                fiddle();
                                                break;
                            11              case 3:
                                                fiddle();
                                                break;
                                            default:
                                                fiddle();
                                                break;
                                        }
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                            The method _StrokeFreeRose() has a Cyclomatic Complexity of 34. The configured cyclomatic complexity threshold is 10.
                            Open

                                public function _StrokeFreeRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                                {
                                    // Plot radial grid lines and remember the end position
                                    // and the angle for later use when plotting the labels
                                    if ($this->iType != WINDROSE_TYPEFREE) {
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            CyclomaticComplexity

                            Since: 0.1

                            Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                            Example

                            // Cyclomatic Complexity = 11
                            class Foo {
                            1   public function example() {
                            2       if ($a == $b) {
                            3           if ($a1 == $b1) {
                                            fiddle();
                            4           } elseif ($a2 == $b2) {
                                            fiddle();
                                        } else {
                                            fiddle();
                                        }
                            5       } elseif ($c == $d) {
                            6           while ($c == $d) {
                                            fiddle();
                                        }
                            7        } elseif ($e == $f) {
                            8           for ($n = 0; $n < $h; $n++) {
                                            fiddle();
                                        }
                                    } else {
                                        switch ($z) {
                            9               case 1:
                                                fiddle();
                                                break;
                            10              case 2:
                                                fiddle();
                                                break;
                            11              case 3:
                                                fiddle();
                                                break;
                                            default:
                                                fiddle();
                                                break;
                                        }
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                            The method _StrokeRegularRose() has a Cyclomatic Complexity of 36. The configured cyclomatic complexity threshold is 10.
                            Open

                                public function _StrokeRegularRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                                {
                                    // _StrokeRegularRose($dblImg,$xc,$yc,$r,$ri)
                                    // Plot radial grid lines and remember the end position
                                    // and the angle for later use when plotting the labels
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            CyclomaticComplexity

                            Since: 0.1

                            Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                            Example

                            // Cyclomatic Complexity = 11
                            class Foo {
                            1   public function example() {
                            2       if ($a == $b) {
                            3           if ($a1 == $b1) {
                                            fiddle();
                            4           } elseif ($a2 == $b2) {
                                            fiddle();
                                        } else {
                                            fiddle();
                                        }
                            5       } elseif ($c == $d) {
                            6           while ($c == $d) {
                                            fiddle();
                                        }
                            7        } elseif ($e == $f) {
                            8           for ($n = 0; $n < $h; $n++) {
                                            fiddle();
                                        }
                                    } else {
                                        switch ($z) {
                            9               case 1:
                                                fiddle();
                                                break;
                            10              case 2:
                                                fiddle();
                                                break;
                            11              case 3:
                                                fiddle();
                                                break;
                                            default:
                                                fiddle();
                                                break;
                                        }
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                            Avoid using undefined variables such as '$data' which will lead to PHP notices.
                            Open

                                        $n     = safe_count($data);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            UndefinedVariable

                            Since: 2.8.0

                            Detects when a variable is used that has not been defined before.

                            Example

                            class Foo
                            {
                                private function bar()
                                {
                                    // $message is undefined
                                    echo $message;
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                            Avoid using undefined variables such as '$data' which will lead to PHP notices.
                            Open

                                                $data[$i] = $this->iData[$dtxt];
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            UndefinedVariable

                            Since: 2.8.0

                            Detects when a variable is used that has not been defined before.

                            Example

                            class Foo
                            {
                                private function bar()
                                {
                                    // $message is undefined
                                    echo $message;
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                            Avoid using undefined variables such as '$data' which will lead to PHP notices.
                            Open

                                        $c0    = array_sum($data[0]);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            UndefinedVariable

                            Since: 2.8.0

                            Detects when a variable is used that has not been defined before.

                            Example

                            class Foo
                            {
                                private function bar()
                                {
                                    // $message is undefined
                                    echo $message;
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                            Avoid using undefined variables such as '$data' which will lead to PHP notices.
                            Open

                                                $data[$i] = $this->iData[$i];
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            UndefinedVariable

                            Since: 2.8.0

                            Detects when a variable is used that has not been defined before.

                            Example

                            class Foo
                            {
                                private function bar()
                                {
                                    // $message is undefined
                                    echo $message;
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                            Avoid using undefined variables such as '$data' which will lead to PHP notices.
                            Open

                                            $data[round($dir)] = $leg;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            UndefinedVariable

                            Since: 2.8.0

                            Detects when a variable is used that has not been defined before.

                            Example

                            class Foo
                            {
                                private function bar()
                                {
                                    // $message is undefined
                                    echo $message;
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                            Avoid using undefined variables such as '$data' which will lead to PHP notices.
                            Open

                                        $keys = array_keys($data);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            UndefinedVariable

                            Since: 2.8.0

                            Detects when a variable is used that has not been defined before.

                            Example

                            class Foo
                            {
                                private function bar()
                                {
                                    // $message is undefined
                                    echo $message;
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                            Avoid using undefined variables such as '$data' which will lead to PHP notices.
                            Open

                                        $c1    = array_sum($data[1]);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            UndefinedVariable

                            Since: 2.8.0

                            Detects when a variable is used that has not been defined before.

                            Example

                            class Foo
                            {
                                private function bar()
                                {
                                    // $message is undefined
                                    echo $message;
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                            Avoid using undefined variables such as '$data' which will lead to PHP notices.
                            Open

                                            $c2 = array_sum($data[$i + 1]);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            UndefinedVariable

                            Since: 2.8.0

                            Detects when a variable is used that has not been defined before.

                            Example

                            class Foo
                            {
                                private function bar()
                                {
                                    // $message is undefined
                                    echo $message;
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                            Avoid using undefined variables such as '$data' which will lead to PHP notices.
                            Open

                                                $data[$i] = $this->iData[strtolower($dtxt)];
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            UndefinedVariable

                            Since: 2.8.0

                            Detects when a variable is used that has not been defined before.

                            Example

                            class Foo
                            {
                                private function bar()
                                {
                                    // $message is undefined
                                    echo $message;
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                            Avoid using undefined variables such as '$data' which will lead to PHP notices.
                            Open

                                                $data[$i] = [];
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            UndefinedVariable

                            Since: 2.8.0

                            Detects when a variable is used that has not been defined before.

                            Example

                            class Foo
                            {
                                private function bar()
                                {
                                    // $message is undefined
                                    echo $message;
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#undefinedvariable

                            The method SetAutoScaleAngle has a boolean flag argument $aIsRegRose, which is a certain sign of a Single Responsibility Principle violation.
                            Open

                                public function SetAutoScaleAngle($aIsRegRose = true)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            BooleanArgumentFlag

                            Since: 1.4.0

                            A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

                            Example

                            class Foo {
                                public function bar($flag = true) {
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

                            The method _StrokeLegend has a boolean flag argument $aReturnWidth, which is a certain sign of a Single Responsibility Principle violation.
                            Open

                                public function _StrokeLegend($aImg, $x, $y, $scaling = 1, $aReturnWidth = false)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            BooleanArgumentFlag

                            Since: 1.4.0

                            A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

                            Example

                            class Foo {
                                public function bar($flag = true) {
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

                            The method SetBox has a boolean flag argument $aShow, which is a certain sign of a Single Responsibility Principle violation.
                            Open

                                public function SetBox($aColor = 'black', $aWeight = 1, $aStyle = 'solid', $aShow = true)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            BooleanArgumentFlag

                            Since: 1.4.0

                            A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

                            Example

                            class Foo {
                                public function bar($flag = true) {
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

                            Avoid using static access to class '\Amenadiel\JpGraph\Util\JpGraphError' in method 'SetType'.
                            Open

                                        Util\JpGraphError::RaiseL(22006); //('Illegal windrose type specified.');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            StaticAccess

                            Since: 1.4.0

                            Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                            Example

                            class Foo
                            {
                                public function bar()
                                {
                                    Bar::baz();
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#staticaccess

                            The method _StrokeRegularRose uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                        } else {
                                            $dblImg->SetLineStyle($this->iRadialStyleArray[$i]);
                                        }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            The method getWidth uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                    } else {
                                        $value->Set('888.888'); // Dummy value to get width/height
                                        $maxw = $value->GetWidth($aImg);
                                    }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            The method getHeight uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                    } else {
                                        $value->Set('180.8'); // Dummy value to get width/height
                                        $maxh = $value->GetHeight($aImg);
                                    }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            Avoid using static access to class '\Amenadiel\JpGraph\Util\JpGraphError' in method 'SetCompassLabels'.
                            Open

                                        Util\JpGraphError::RaiseL(22004); //('Label specification for windrose directions must have 16 values (one for each compass direction).');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            StaticAccess

                            Since: 1.4.0

                            Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                            Example

                            class Foo
                            {
                                public function bar()
                                {
                                    Bar::baz();
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#staticaccess

                            The method _StrokeFreeRose uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                    } else {
                                        $value->SetAlign('center', 'center');
                                        $value->SetMargin(0);
                                    }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            The method _StrokeRegularRose uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                        } else {
                                            $dblImg->SetColor($this->iRadialColorArray[$i]);
                                        }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            The method _StrokeRegularRose uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                        } else {
                                            // LBLPOSIITON_EDGE
                                            if ($a >= 7 * M_PI / 4 || $a <= M_PI / 4) {
                                                $dx = 0;
                                            }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            Avoid using static access to class '\Amenadiel\JpGraph\Util\JpGraphError' in method '_StrokeRegularRose'.
                            Open

                                                Util\JpGraphError::RaiseL(22017); //('Windrose data contains a direction which is not enabled. Please adjust what labels are displayed.');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            StaticAccess

                            Since: 1.4.0

                            Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                            Example

                            class Foo
                            {
                                public function bar()
                                {
                                    Bar::baz();
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#staticaccess

                            The method Stroke uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                    } else {
                                        $dblImg = $aImg;
                                        // Make sure the ix and it coordinates correpond to the new top left center
                                        $dblImg->SetTranslation($this->iX - $w / 2, $this->iY - $h / 2);
                                    }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            The method Stroke uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                    } else {
                                        // Check if we need to re-code the interpretation of the ordinal
                                        // number in the data. Internally ordinal value 0 is East and then
                                        // counted anti-clockwise. The user might choose an encoding
                                        // that have 0 being the first axis to the right of the "N" axis and then
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            The method SetAutoScaleAngle uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                            } else {
                                                ++$l;
                                                $kl = $keys[$l];
                                                $d2 = abs($kl - $try_a);
                                            }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            The method _StrokeFreeRose uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                        } else {
                                            $dblImg->SetLineStyle($this->iRadialStyleArray[$dir]);
                                        }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            The method _StrokeFreeRose uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                        } else {
                                            $lbl = sprintf($this->iLabelFormatString, $da);
                                        }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            Avoid using static access to class '\Amenadiel\JpGraph\Util\JpGraphError' in method '_StrokeRegularRose'.
                            Open

                                                Util\JpGraphError::RaiseL(22016); //('Windrose leg index must be numeric or direction label.');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            StaticAccess

                            Since: 1.4.0

                            Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                            Example

                            class Foo
                            {
                                public function bar()
                                {
                                    Bar::baz();
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#staticaccess

                            The method SetAutoScaleAngle uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                    } else {
                                        $n = safe_count($this->iData);
                                        foreach ($this->iData as $dir => $leg) {
                                            if (!is_numeric($dir)) {
                                                $pos = array_search(strtoupper($dir), $this->iAllDirectionLabels, true);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            The method _StrokeFreeRose uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                        } else {
                                            Util\JpGraphError::RaiseL(22010); //('Direction must either be a numeric value or one of the 16 compass directions');
                                        }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            The method _StrokeLegend uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                        } else {
                                            $lbl = sprintf($fmt, $this->iRanges[$idx], $this->iRanges[$idx + 1]);
                                            ++$idx;
                                        }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            The method _StrokeRegularRose uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                        } else {
                                            $dblImg->SetLineWeight($this->iRadialWeightArray[$i]);
                                        }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            Avoid using static access to class '\Amenadiel\JpGraph\Util\JpGraphError' in method '_StrokeRegularRose'.
                            Open

                                                Util\JpGraphError::RaiseL(22018, $idx); //('You have specified data for the same compass direction twice, once with text and once with index (Index='.$idx.')');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            StaticAccess

                            Since: 1.4.0

                            Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                            Example

                            class Foo
                            {
                                public function bar()
                                {
                                    Bar::baz();
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#staticaccess

                            Avoid using static access to class '\Amenadiel\JpGraph\Util\JpGraphError' in method 'FixupIndexes'.
                            Open

                                                Util\JpGraphError::RaiseL(22012); //('Windrose radial axis specification contains a direction which is not enabled.');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            StaticAccess

                            Since: 1.4.0

                            Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                            Example

                            class Foo
                            {
                                public function bar()
                                {
                                    Bar::baz();
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#staticaccess

                            Avoid using static access to class '\Amenadiel\JpGraph\Util\JpGraphError' in method 'SetRadialGridStyle'.
                            Open

                                        Util\JpGraphError::RaiseL(22005); //("Line style for radial lines must be on of ('solid','dotted','dashed','longdashed') ");
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            StaticAccess

                            Since: 1.4.0

                            Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                            Example

                            class Foo
                            {
                                public function bar()
                                {
                                    Bar::baz();
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#staticaccess

                            The method _StrokeFreeRose uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                        } else {
                                            // LBLPOSIITON_EDGE
                                            if ($a >= 7 * M_PI / 4 || $a <= M_PI / 4) {
                                                $dx = 0;
                                            }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            Avoid using static access to class '\Amenadiel\JpGraph\Util\JpGraphError' in method '_StrokeRegularRose'.
                            Open

                                            Util\JpGraphError::RaiseL(22019); //('Index for direction must be between 0 and 15. You can\'t specify angles for a Regular Windplot, only index and compass directions.');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            StaticAccess

                            Since: 1.4.0

                            Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                            Example

                            class Foo
                            {
                                public function bar()
                                {
                                    Bar::baz();
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#staticaccess

                            The method SetAutoScaleAngle uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                            } else {
                                                --$j;
                                                $kj = $keys[$j];
                                                $d1 = abs($kj - $try_a);
                                            }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            Avoid using static access to class '\Amenadiel\JpGraph\Util\JpGraphError' in method 'FixupIndexes'.
                            Open

                                                Util\JpGraphError::RaiseL(22013, $idx); //('You have specified the look&feel for the same compass direction twice, once with text and once with index (Index='.$idx.')');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            StaticAccess

                            Since: 1.4.0

                            Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                            Example

                            class Foo
                            {
                                public function bar()
                                {
                                    Bar::baz();
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#staticaccess

                            The method Stroke uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                            } else {
                                                $const1 = 4;
                                                $const2 = 4;
                                            }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            Avoid using static access to class '\Amenadiel\JpGraph\Util\JpGraphError' in method '_StrokeFreeRose'.
                            Open

                                                Util\JpGraphError::RaiseL(22009, round($a * 180 / M_PI));
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            StaticAccess

                            Since: 1.4.0

                            Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                            Example

                            class Foo
                            {
                                public function bar()
                                {
                                    Bar::baz();
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#staticaccess

                            Avoid using static access to class '\Amenadiel\JpGraph\Util\JpGraphError' in method '_StrokeFreeRose'.
                            Open

                                            Util\JpGraphError::RaiseL(22010); //('Direction must either be a numeric value or one of the 16 compass directions');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            StaticAccess

                            Since: 1.4.0

                            Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                            Example

                            class Foo
                            {
                                public function bar()
                                {
                                    Bar::baz();
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#staticaccess

                            The method _StrokeRegularRose uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                    } else {
                                        $value->SetAlign('left', 'top');
                                        $value->SetMargin(0);
                                        $lr /= 2;
                                    }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            Avoid using static access to class '\Amenadiel\JpGraph\Util\JpGraphError' in method 'Stroke'.
                            Open

                                        Util\JpGraphError::RaiseL(22020);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            StaticAccess

                            Since: 1.4.0

                            Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                            Example

                            class Foo
                            {
                                public function bar()
                                {
                                    Bar::baz();
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#staticaccess

                            Avoid using static access to class '\Amenadiel\JpGraph\Util\JpGraphError' in method '_StrokeLegend'.
                            Open

                                        Util\JpGraphError::RaiseL(22007); //('To few values for the range legend.');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            StaticAccess

                            Since: 1.4.0

                            Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                            Example

                            class Foo
                            {
                                public function bar()
                                {
                                    Bar::baz();
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#staticaccess

                            Avoid using static access to class '\Amenadiel\JpGraph\Util\JpGraphError' in method '_StrokeRegularRose'.
                            Open

                                            Util\JpGraphError::RaiseL(22015); //('You have specified an undefined Windrose plot type.');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            StaticAccess

                            Since: 1.4.0

                            Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                            Example

                            class Foo
                            {
                                public function bar()
                                {
                                    Bar::baz();
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#staticaccess

                            The method _StrokeFreeRose uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                        } else {
                                            $dblImg->SetColor($this->iRadialColorArray[$dir]);
                                        }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            Avoid using static access to class '\Amenadiel\JpGraph\Util\JpGraphError' in method 'FixupIndexes'.
                            Open

                                                Util\JpGraphError::RaiseL(22011, $idx); //('Windrose index must be numeric or direction label. You have specified index='.$idx);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            StaticAccess

                            Since: 1.4.0

                            Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                            Example

                            class Foo
                            {
                                public function bar()
                                {
                                    Bar::baz();
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#staticaccess

                            Avoid using static access to class '\Amenadiel\JpGraph\Util\JpGraphError' in method 'FixupIndexes'.
                            Open

                                            Util\JpGraphError::RaiseL(22014); //('Index for copmass direction must be between 0 and 15.');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            StaticAccess

                            Since: 1.4.0

                            Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                            Example

                            class Foo
                            {
                                public function bar()
                                {
                                    Bar::baz();
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#staticaccess

                            Avoid using static access to class '\Amenadiel\JpGraph\Graph\SymChar' in method '__construct'.
                            Open

                                    $this->iLabelFormatString = '%.1f' . Graph\SymChar::Get('degree');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            StaticAccess

                            Since: 1.4.0

                            Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                            Example

                            class Foo
                            {
                                public function bar()
                                {
                                    Bar::baz();
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#staticaccess

                            The method SetAutoScaleAngle uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                            } else {
                                                $data[$i] = [];
                                            }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            Avoid using static access to class '\Amenadiel\JpGraph\Util\JpGraphError' in method '_StrokeFreeRose'.
                            Open

                                        Util\JpGraphError::RaiseL(22008); //('Internal error: Trying to plot free Windrose even though type is not a free windorose');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            StaticAccess

                            Since: 1.4.0

                            Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                            Example

                            class Foo
                            {
                                public function bar()
                                {
                                    Bar::baz();
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#staticaccess

                            The method _StrokeFreeRose uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                            Open

                                        } else {
                                            $dblImg->SetLineWeight($this->iRadialWeightArray[$dir]);
                                        }
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ElseExpression

                            Since: 1.4.0

                            An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                            Example

                            class Foo
                            {
                                public function bar($flag)
                                {
                                    if ($flag) {
                                        // one branch
                                    } else {
                                        // another branch
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/cleancode.html#elseexpression

                            Avoid unused local variables such as '$maxh'.
                            Open

                                        $maxh = 0;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            UnusedLocalVariable

                            Since: 0.2

                            Detects when a local variable is declared and/or assigned, but not used.

                            Example

                            class Foo {
                                public function doSomething()
                                {
                                    $i = 5; // Unused
                                }
                            }

                            Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

                            Avoid unused local variables such as '$key'.
                            Open

                                        foreach ($this->iLabels as $key => $lbl) {
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            UnusedLocalVariable

                            Since: 0.2

                            Detects when a local variable is declared and/or assigned, but not used.

                            Example

                            class Foo {
                                public function doSomething()
                                {
                                    $i = 5; // Unused
                                }
                            }

                            Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

                            Avoid unused local variables such as '$maxw'.
                            Open

                                        $maxw = 0;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            UnusedLocalVariable

                            Since: 0.2

                            Detects when a local variable is declared and/or assigned, but not used.

                            Example

                            class Foo {
                                public function doSomething()
                                {
                                    $i = 5; // Unused
                                }
                            }

                            Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

                            Avoid unused local variables such as '$key'.
                            Open

                                        foreach ($this->iLabels as $key => $lbl) {
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            UnusedLocalVariable

                            Since: 0.2

                            Detects when a local variable is declared and/or assigned, but not used.

                            Example

                            class Foo {
                                public function doSomething()
                                {
                                    $i = 5; // Unused
                                }
                            }

                            Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

                            Avoid unused local variables such as '$num'.
                            Open

                                    $num = 0;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            UnusedLocalVariable

                            Since: 0.2

                            Detects when a local variable is declared and/or assigned, but not used.

                            Example

                            class Foo {
                                public function doSomething()
                                {
                                    $i = 5; // Unused
                                }
                            }

                            Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

                            Identical blocks of code found in 2 locations. Consider refactoring.
                            Open

                                        if ($this->iLabelPositioning == LBLPOSITION_CENTER) {
                                            $dx = $dy = 0;
                                        } else {
                                            // LBLPOSIITON_EDGE
                                            if ($a >= 7 * M_PI / 4 || $a <= M_PI / 4) {
                            Severity: Major
                            Found in src/plot/WindrosePlot.php and 1 other location - About 2 days to fix
                            src/plot/WindrosePlot.php on lines 692..731

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 518.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Identical blocks of code found in 2 locations. Consider refactoring.
                            Open

                                        if ($this->iLabelPositioning == LBLPOSITION_CENTER) {
                                            $dx = $dy = 0;
                                        } else {
                                            // LBLPOSIITON_EDGE
                                            if ($a >= 7 * M_PI / 4 || $a <= M_PI / 4) {
                            Severity: Major
                            Found in src/plot/WindrosePlot.php and 1 other location - About 2 days to fix
                            src/plot/WindrosePlot.php on lines 888..927

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 518.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Identical blocks of code found in 2 locations. Consider refactoring.
                            Open

                                        for ($j = 0; $j < $nn; ++$j) {
                                            // We want the non scaled original radius
                                            $legr = $this->scale->RelTranslate($legdata[$j], $r / $scaling, $ri / $scaling);
                                            $this->_StrokeWindLeg(
                                                $dblImg,
                            Severity: Major
                            Found in src/plot/WindrosePlot.php and 1 other location - About 1 hr to fix
                            src/plot/WindrosePlot.php on lines 756..770

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 120.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Identical blocks of code found in 2 locations. Consider refactoring.
                            Open

                                        for ($j = 0; $j < $nn; ++$j) {
                                            // We want the non scaled original radius
                                            $legr = $this->scale->RelTranslate($legdata[$j], $r / $scaling, $ri / $scaling);
                                            $this->_StrokeWindLeg(
                                                $dblImg,
                            Severity: Major
                            Found in src/plot/WindrosePlot.php and 1 other location - About 1 hr to fix
                            src/plot/WindrosePlot.php on lines 970..984

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 120.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 2 locations. Consider refactoring.
                            Open

                                    if ($n > 0) {
                                        $maxh = 0;
                                        $maxw = 0;
                                        foreach ($this->iLabels as $key => $lbl) {
                                            $value->Set($lbl);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php and 1 other location - About 30 mins to fix
                            src/plot/WindrosePlot.php on lines 1044..1054

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 90.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 2 locations. Consider refactoring.
                            Open

                                    if ($n > 0) {
                                        $maxh = 0;
                                        $maxw = 0;
                                        foreach ($this->iLabels as $key => $lbl) {
                                            $value->Set($lbl);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php and 1 other location - About 30 mins to fix
                            src/plot/WindrosePlot.php on lines 1004..1014

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 90.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Avoid variables with short names like $kj. Configured minimum length is 3.
                            Open

                                                $kj = 0;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $rr. Configured minimum length is 3.
                            Open

                                    $rr = round(($r - $ri) / $n);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $y2. Configured minimum length is 3.
                            Open

                                        $y2 = $y + round($this->iLegweights[$i % $nlw] * $scaling);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $x2. Configured minimum length is 3.
                            Open

                                        $x2 = $x + $l;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $c1. Configured minimum length is 3.
                            Open

                                        $c1    = array_sum($data[1]);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $yc. Configured minimum length is 3.
                            Open

                                public function _StrokeFreeRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $r. Configured minimum length is 3.
                            Open

                                public function _StrokeFreeRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $lr. Configured minimum length is 3.
                            Open

                                    $lr = $scaling * $this->iLabelMargin;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $ri. Configured minimum length is 3.
                            Open

                                public function _StrokeRegularRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $x. Configured minimum length is 3.
                            Open

                                        $x   = round($xc + cos($a * $i) * $r);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $yt. Configured minimum length is 3.
                            Open

                                        $yt = round($y - $lr * sin($a)) - $dy * $th;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $n. Configured minimum length is 3.
                            Open

                                    $n = safe_count($this->iLabels);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $ww. Configured minimum length is 3.
                            Open

                                    $ww = $w / $scaling;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $hh. Configured minimum length is 3.
                            Open

                                    $hh = $h / $scaling;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $yc. Configured minimum length is 3.
                            Open

                                    $yc = round(($h - $legendheight) / 2);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $xc. Configured minimum length is 3.
                            Open

                                    $xc = $x;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $nn. Configured minimum length is 3.
                            Open

                                        $nn      = safe_count($legdata);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $xc. Configured minimum length is 3.
                            Open

                                public function _StrokeRegularRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $xt. Configured minimum length is 3.
                            Open

                                        $xt = round($lr * cos($a) + $x) - $dx * $tw;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $r. Configured minimum length is 3.
                            Open

                                public function _StrokeWindLeg($aImg, $xc, $yc, $a, $ri, $r, $weight, $color)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $d2. Configured minimum length is 3.
                            Open

                                                $d2 = abs($kl - $try_a);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $yc. Configured minimum length is 3.
                            Open

                                public function _StrokeRegularRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $w. Configured minimum length is 3.
                            Open

                                    $w = $scaling * $this->getWidth($aImg);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $l. Configured minimum length is 3.
                            Open

                                            $l = $n - 1;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $a. Configured minimum length is 3.
                            Open

                                        $a = $found * 22.5;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $yt. Configured minimum length is 3.
                            Open

                                    $yt  = $yc - sin($a) * $ri;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $y2. Configured minimum length is 3.
                            Open

                                    $y2 = $yyt - $weight * cos($a);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $y3. Configured minimum length is 3.
                            Open

                                    $y3 = $yyt + $weight * cos($a);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $tw. Configured minimum length is 3.
                            Open

                                        $tw = $value->GetWidth($dblImg);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $dy. Configured minimum length is 3.
                            Open

                                            $dx = $dy = 0;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $tw. Configured minimum length is 3.
                            Open

                                        $tw = $value->GetWidth($dblImg);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $y. Configured minimum length is 3.
                            Open

                                public function _StrokeLegend($aImg, $x, $y, $scaling = 1, $aReturnWidth = false)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $yt. Configured minimum length is 3.
                            Open

                                        $yt = round($y - $lr * sin($a)) - $dy * $th;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $a. Configured minimum length is 3.
                            Open

                                    $a      = 2 * M_PI / $num;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $xc. Configured minimum length is 3.
                            Open

                                public function _StrokeWindLeg($aImg, $xc, $yc, $a, $ri, $r, $weight, $color)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $x2. Configured minimum length is 3.
                            Open

                                    $x2 = $xxt - $weight * sin($a);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $r. Configured minimum length is 3.
                            Open

                                    $r   = $this->legend->iCircleRadius * $scaling;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $w. Configured minimum length is 3.
                            Open

                                            $w = $c0 + 3 * $c1 + $c2;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $x. Configured minimum length is 3.
                            Open

                                        $x   = round($xc + cos($a) * $r);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $dy. Configured minimum length is 3.
                            Open

                                            $dx = $dy = 0;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $th. Configured minimum length is 3.
                            Open

                                        $th = $value->GetHeight($dblImg);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $r. Configured minimum length is 3.
                            Open

                                public function _StrokeRegularRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $y. Configured minimum length is 3.
                            Open

                                        $y   = round($yc - sin($a * $i) * $r);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $w. Configured minimum length is 3.
                            Open

                                    $w        = round($this->iSize * $scaling + $valxmarg);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $y4. Configured minimum length is 3.
                            Open

                                    $y4 = $yt + $weight * cos($a);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $c0. Configured minimum length is 3.
                            Open

                                        $c0    = array_sum($data[0]);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $iX. Configured minimum length is 3.
                            Open

                                public $iX                   = 0.5;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $aY. Configured minimum length is 3.
                            Open

                                public function SetCenterPos($aX, $aY)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $aX. Configured minimum length is 3.
                            Open

                                public function SetPos($aX, $aY)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $a. Configured minimum length is 3.
                            Open

                                public function _StrokeWindLeg($aImg, $xc, $yc, $a, $ri, $r, $weight, $color)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $n. Configured minimum length is 3.
                            Open

                                        $n = safe_count($this->iData);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $xt. Configured minimum length is 3.
                            Open

                                    $xt  = $xc + cos($a) * $ri;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $kl. Configured minimum length is 3.
                            Open

                                                $kl = $keys[0];
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $da. Configured minimum length is 3.
                            Open

                                        $da = $a * 180 / M_PI;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $x1. Configured minimum length is 3.
                            Open

                                    $x1 = $xt - $weight * sin($a);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $y1. Configured minimum length is 3.
                            Open

                                    $y1 = $yt - $weight * cos($a);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $x3. Configured minimum length is 3.
                            Open

                                    $x3 = $xxt + $weight * sin($a);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $y. Configured minimum length is 3.
                            Open

                                        $y   = round($yc - sin($a) * $r);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $xt. Configured minimum length is 3.
                            Open

                                        $xt = round($lr * cos($a) + $x) - $dx * $tw;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $d1. Configured minimum length is 3.
                            Open

                                                $d1 = 0;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $th. Configured minimum length is 3.
                            Open

                                        $th = $value->GetHeight($dblImg);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $n. Configured minimum length is 3.
                            Open

                                    $n = safe_count($this->iLabels);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $h. Configured minimum length is 3.
                            Open

                                    $h = round($this->iSize * $scaling + $valymarg) + $legendheight;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $ri. Configured minimum length is 3.
                            Open

                                    $ri = $this->iCenterSize / 2;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $a. Configured minimum length is 3.
                            Open

                                public function NormAngle($a)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $lr. Configured minimum length is 3.
                            Open

                                    $lr = $scaling * $this->iLabelMargin;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $nn. Configured minimum length is 3.
                            Open

                                        $nn      = safe_count($legdata);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $aY. Configured minimum length is 3.
                            Open

                                public function SetPos($aX, $aY)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $ri. Configured minimum length is 3.
                            Open

                                public function _StrokeWindLeg($aImg, $xc, $yc, $a, $ri, $r, $weight, $color)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $c2. Configured minimum length is 3.
                            Open

                                            $c2 = array_sum($data[$i + 1]);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $ri. Configured minimum length is 3.
                            Open

                                public function _StrokeFreeRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $n. Configured minimum length is 3.
                            Open

                                    $n = safe_count($aWeights);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $aX. Configured minimum length is 3.
                            Open

                                public function SetCenterPos($aX, $aY)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $yc. Configured minimum length is 3.
                            Open

                                public function _StrokeWindLeg($aImg, $xc, $yc, $a, $ri, $r, $weight, $color)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $l. Configured minimum length is 3.
                            Open

                                    $l = round(max($this->legend->iLength * $scaling, $w * 1.5));
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $j. Configured minimum length is 3.
                            Open

                                            $j = 0;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $n. Configured minimum length is 3.
                            Open

                                    $n = $this->scale->GetNumCirc();
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $x. Configured minimum length is 3.
                            Open

                                    $x = $xc;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $x4. Configured minimum length is 3.
                            Open

                                    $x4 = $xt + $weight * sin($a);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $x. Configured minimum length is 3.
                            Open

                                public function _StrokeLegend($aImg, $x, $y, $scaling = 1, $aReturnWidth = false)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $w. Configured minimum length is 3.
                            Open

                                    $w = $value->GetWidth($aImg);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $yc. Configured minimum length is 3.
                            Open

                                    $yc = $y;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $xc. Configured minimum length is 3.
                            Open

                                public function _StrokeFreeRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $a. Configured minimum length is 3.
                            Open

                                            $a = $this->iStandardDirections[strtoupper($dir)];
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $dx. Configured minimum length is 3.
                            Open

                                            $dx = $dy = 0;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $iY. Configured minimum length is 3.
                            Open

                                public $iY                   = 0.5;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $dx. Configured minimum length is 3.
                            Open

                                            $dx = $dy = 0;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $r. Configured minimum length is 3.
                            Open

                                    $r = round($this->iSize / 2);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $i. Configured minimum length is 3.
                            Open

                                    $i   = 0;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $y1. Configured minimum length is 3.
                            Open

                                        $y1 = $y - round($this->iLegweights[$i % $nlw] * $scaling);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $h. Configured minimum length is 3.
                            Open

                                    $h = $scaling * $this->getHeight($aImg);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $xc. Configured minimum length is 3.
                            Open

                                    $xc = round($w / 2);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Avoid variables with short names like $y. Configured minimum length is 3.
                            Open

                                    $y = $h;
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpmd

                            ShortVariable

                            Since: 0.2

                            Detects when a field, local, or parameter has a very short name.

                            Example

                            class Something {
                                private $q = 15; // VIOLATION - Field
                                public static function main( array $as ) { // VIOLATION - Formal
                                    $r = 20 + $this->q; // VIOLATION - Local
                                    for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                        $r += $this->q;
                                    }
                                }
                            }

                            Source https://phpmd.org/rules/naming.html#shortvariable

                            Method name "WindrosePlot::SetCenterSize" is not in camel caps format
                            Open

                                public function SetCenterSize($aSize)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetFont" is not in camel caps format
                            Open

                                public function SetFont($aFFam, $aFStyle = FS_NORMAL, $aFSize = 10)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetRangeStyle" is not in camel caps format
                            Open

                                public function SetRangeStyle($aStyle)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetAntiAlias" is not in camel caps format
                            Open

                                public function SetAntiAlias($aFlag)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::_ThickCircle" is not in camel caps format
                            Open

                                public function _ThickCircle($aImg, $aXC, $aYC, $aRad, $aWeight, $aColor)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::_StrokeLegend" is not in camel caps format
                            Open

                                public function _StrokeLegend($aImg, $x, $y, $scaling = 1, $aReturnWidth = false)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetFontColor" is not in camel caps format
                            Open

                                public function SetFontColor($aColor)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetRangeWeights" is not in camel caps format
                            Open

                                public function SetRangeWeights($aWeights)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "_StrokeWindLeg" should not be prefixed with an underscore to indicate visibility
                            Open

                                public function _StrokeWindLeg($aImg, $xc, $yc, $a, $ri, $r, $weight, $color)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::_StrokeFreeRose" is not in camel caps format
                            Open

                                public function _StrokeFreeRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetCompassLabels" is not in camel caps format
                            Open

                                public function SetCompassLabels($aLabels)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::NormAngle" is not in camel caps format
                            Open

                                public function NormAngle($a)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetLabelPosition" is not in camel caps format
                            Open

                                public function SetLabelPosition($aPos)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetType" is not in camel caps format
                            Open

                                public function SetType($aType)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetPos" is not in camel caps format
                            Open

                                public function SetPos($aX, $aY)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetRadialStyles" is not in camel caps format
                            Open

                                public function SetRadialStyles($aStyles)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetGridColor" is not in camel caps format
                            Open

                                public function SetGridColor($aColor1, $aColor2)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetSize" is not in camel caps format
                            Open

                                public function SetSize($aSize)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetCenterPos" is not in camel caps format
                            Open

                                public function SetCenterPos($aX, $aY)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "_ThickCircle" should not be prefixed with an underscore to indicate visibility
                            Open

                                public function _ThickCircle($aImg, $aXC, $aYC, $aRad, $aWeight, $aColor)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::FixupIndexes" is not in camel caps format
                            Open

                                public function FixupIndexes($aDataArray, $num)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetLabels" is not in camel caps format
                            Open

                                public function SetLabels($aLabels)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetGridWeight" is not in camel caps format
                            Open

                                public function SetGridWeight($aGrid1 = 1, $aGrid2 = 2)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetRangeColors" is not in camel caps format
                            Open

                                public function SetRangeColors($aLegColors)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetRadialGridStyle" is not in camel caps format
                            Open

                                public function SetRadialGridStyle($aStyle)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetRanges" is not in camel caps format
                            Open

                                public function SetRanges($aRanges)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "_StrokeFreeRose" should not be prefixed with an underscore to indicate visibility
                            Open

                                public function _StrokeFreeRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "_StrokeLegend" should not be prefixed with an underscore to indicate visibility
                            Open

                                public function _StrokeLegend($aImg, $x, $y, $scaling = 1, $aReturnWidth = false)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetRadialWeights" is not in camel caps format
                            Open

                                public function SetRadialWeights($aWeights)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "_StrokeRegularRose" should not be prefixed with an underscore to indicate visibility
                            Open

                                public function _StrokeRegularRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::LayoutSize" is not in camel caps format
                            Open

                                public function LayoutSize()
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetDataKeyEncoding" is not in camel caps format
                            Open

                                public function SetDataKeyEncoding($aEncoding)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetBox" is not in camel caps format
                            Open

                                public function SetBox($aColor = 'black', $aWeight = 1, $aStyle = 'solid', $aShow = true)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetColor" is not in camel caps format
                            Open

                                public function SetColor($aColor)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetRadialColors" is not in camel caps format
                            Open

                                public function SetRadialColors($aColors)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::_StrokeRegularRose" is not in camel caps format
                            Open

                                public function _StrokeRegularRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetZCircleSize" is not in camel caps format
                            Open

                                public function SetZCircleSize($aSize)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::_StrokeWindLeg" is not in camel caps format
                            Open

                                public function _StrokeWindLeg($aImg, $xc, $yc, $a, $ri, $r, $weight, $color)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::Stroke" is not in camel caps format
                            Open

                                public function Stroke($aGraph)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetLabelMargin" is not in camel caps format
                            Open

                                public function SetLabelMargin($aMarg)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetLabelFormat" is not in camel caps format
                            Open

                                public function SetLabelFormat($aLblFormat)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Method name "WindrosePlot::SetAutoScaleAngle" is not in camel caps format
                            Open

                                public function SetAutoScaleAngle($aIsRegRose = true)
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Line exceeds 120 characters; contains 138 characters
                            Open

                                        Util\JpGraphError::RaiseL(22008); //('Internal error: Trying to plot free Windrose even though type is not a free windorose');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Line exceeds 120 characters; contains 136 characters
                            Open

                                private $iAllDirectionLabels = ['E', 'ENE', 'NE', 'NNE', 'N', 'NNW', 'NW', 'WNW', 'W', 'WSW', 'SW', 'SSW', 'S', 'SSE', 'SE', 'ESE'];
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Line exceeds 120 characters; contains 151 characters
                            Open

                                                //('You have specified the same direction twice, once with an angle and once with a compass direction ('.$a*180/M_PI.' degrees.)');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Line exceeds 120 characters; contains 158 characters
                            Open

                                                Util\JpGraphError::RaiseL(22017); //('Windrose data contains a direction which is not enabled. Please adjust what labels are displayed.');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Line exceeds 120 characters; contains 148 characters
                            Open

                                                Util\JpGraphError::RaiseL(22011, $idx); //('Windrose index must be numeric or direction label. You have specified index='.$idx);
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Line exceeds 120 characters; contains 187 characters
                            Open

                                            Util\JpGraphError::RaiseL(22019); //('Index for direction must be between 0 and 15. You can\'t specify angles for a Regular Windplot, only index and compass directions.');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Line exceeds 120 characters; contains 136 characters
                            Open

                                        Util\JpGraphError::RaiseL(22005); //("Line style for radial lines must be on of ('solid','dotted','dashed','longdashed') ");
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Line exceeds 120 characters; contains 133 characters
                            Open

                                            Util\JpGraphError::RaiseL(22010); //('Direction must either be a numeric value or one of the 16 compass directions');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Line exceeds 120 characters; contains 138 characters
                            Open

                                                Util\JpGraphError::RaiseL(22012); //('Windrose radial axis specification contains a direction which is not enabled.');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Line exceeds 120 characters; contains 180 characters
                            Open

                                                Util\JpGraphError::RaiseL(22018, $idx); //('You have specified data for the same compass direction twice, once with text and once with index (Index='.$idx.')');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Line exceeds 120 characters; contains 150 characters
                            Open

                                        Util\JpGraphError::RaiseL(22004); //('Label specification for windrose directions must have 16 values (one for each compass direction).');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Line exceeds 120 characters; contains 189 characters
                            Open

                                                Util\JpGraphError::RaiseL(22013, $idx); //('You have specified the look&feel for the same compass direction twice, once with text and once with index (Index='.$idx.')');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            Line exceeds 120 characters; contains 209 characters
                            Open

                                        //('Windrose plot is too large to fit the specified Graph size. Please use WindrosePlot::SetSize() to make the plot smaller or increase the size of the Graph in the initial WindroseGraph() call.');
                            Severity: Minor
                            Found in src/plot/WindrosePlot.php by phpcodesniffer

                            There are no issues that match your filters.

                            Category
                            Status