HuasoFoundries/jpgraph

View on GitHub
src/plot/PiePlot3D.php

Summary

Maintainability
F
1 wk
Test Coverage

Function Pie3D has a Cognitive Complexity of 92 (exceeds 5 allowed). Consider refactoring.
Open

    public function Pie3D(
        $aaoption,
        $img,
        $data,
        $colors,
Severity: Minor
Found in src/plot/PiePlot3D.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

File PiePlot3D.php has 745 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

/**
 * JPGraph v4.0.3
 */
Severity: Major
Found in src/plot/PiePlot3D.php - About 1 day to fix

    Method Pie3D has 250 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function Pie3D(
            $aaoption,
            $img,
            $data,
            $colors,
    Severity: Major
    Found in src/plot/PiePlot3D.php - About 1 day to fix

      Function Pie3DSlice has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring.
      Open

          public function Pie3DSlice($img, $xc, $yc, $w, $h, $sa, $ea, $z, $fillcolor, $shadow = 0.65)
          {
              // Due to the way the 3D Pie algorithm works we are
              // guaranteed that any slice we get into this method
              // belongs to either the left or right side of the
      Severity: Minor
      Found in src/plot/PiePlot3D.php - About 6 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 Pie3DSlice has 155 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function Pie3DSlice($img, $xc, $yc, $w, $h, $sa, $ea, $z, $fillcolor, $shadow = 0.65)
          {
              // Due to the way the 3D Pie algorithm works we are
              // guaranteed that any slice we get into this method
              // belongs to either the left or right side of the
      Severity: Major
      Found in src/plot/PiePlot3D.php - About 6 hrs to fix

        Consider simplifying this complex logical expression.
        Open

                        if (($da <= 90 && ($a <= 90 && $ne > 90)) ||
                            (($da <= 180 && $da > 90) && (($a < 90 || $a >= 270) && $ne > 90))) {
                            $split = 90;
                        } elseif (($da <= 90 && ($a <= 270 && $ne > 270)) ||
                            (($da <= 180 && $da > 90) && ($a >= 90 && $a < 270 && ($a + $da) > 270))) {
        Severity: Critical
        Found in src/plot/PiePlot3D.php - About 3 hrs to fix

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

              public function Stroke($img, $aaoption = 0)
              {
                  $n = safe_count($this->data);
          
                  // If user hasn't set the colors use the theme array
          Severity: Minor
          Found in src/plot/PiePlot3D.php - About 3 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

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

          class PiePlot3D extends PiePlot
          {
              private $labelhintcolor = 'red';
              private $showlabelhint  = true;
              private $angle          = 50;
          Severity: Minor
          Found in src/plot/PiePlot3D.php by phpmd

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

              public function Stroke($img, $aaoption = 0)
              {
                  $n = safe_count($this->data);
          
                  // If user hasn't set the colors use the theme array
          Severity: Major
          Found in src/plot/PiePlot3D.php - About 3 hrs to fix

            Function StrokeLabels has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
            Open

                public function StrokeLabels($label, $img, $a, $xp, $yp, $z)
                {
                    $this->value->halign = 'left';
                    $this->value->valign = 'top';
            
            
            Severity: Minor
            Found in src/plot/PiePlot3D.php - About 2 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 StrokeLabels has 49 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function StrokeLabels($label, $img, $a, $xp, $yp, $z)
                {
                    $this->value->halign = 'left';
                    $this->value->valign = 'top';
            
            
            Severity: Minor
            Found in src/plot/PiePlot3D.php - About 1 hr to fix

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

                  public function StrokeFullSliceFrame($img, $xc, $yc, $sa, $ea, $w, $h, $z, $edgecolor, $exploderadius, $fulledge)
                  {
                      $step = 0.02;
              
                      if ($exploderadius > 0) {
              Severity: Minor
              Found in src/plot/PiePlot3D.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

              Method Pie3D has 13 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      $aaoption,
                      $img,
                      $data,
                      $colors,
                      $xc,
              Severity: Major
              Found in src/plot/PiePlot3D.php - About 1 hr to fix

                Method StrokeFullSliceFrame has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function StrokeFullSliceFrame($img, $xc, $yc, $sa, $ea, $w, $h, $z, $edgecolor, $exploderadius, $fulledge)
                    {
                        $step = 0.02;
                
                        if ($exploderadius > 0) {
                Severity: Minor
                Found in src/plot/PiePlot3D.php - About 1 hr to fix

                  Method Add3DSliceToCSIM has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function Add3DSliceToCSIM($i, $xc, $yc, $height, $width, $thick, $sa, $ea)
                      {
                          //Slice number, ellipse centre (x,y), height, width, start angle, end angle
                  
                          $sa *= M_PI / 180;
                  Severity: Minor
                  Found in src/plot/PiePlot3D.php - About 1 hr to fix

                    Function Add3DSliceToCSIM has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
                    Open

                        public function Add3DSliceToCSIM($i, $xc, $yc, $height, $width, $thick, $sa, $ea)
                        {
                            //Slice number, ellipse centre (x,y), height, width, start angle, end angle
                    
                            $sa *= M_PI / 180;
                    Severity: Minor
                    Found in src/plot/PiePlot3D.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

                    Method StrokeFullSliceFrame has 11 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        public function StrokeFullSliceFrame($img, $xc, $yc, $sa, $ea, $w, $h, $z, $edgecolor, $exploderadius, $fulledge)
                    Severity: Major
                    Found in src/plot/PiePlot3D.php - About 1 hr to fix

                      Method Pie3DSlice has 10 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          public function Pie3DSlice($img, $xc, $yc, $w, $h, $sa, $ea, $z, $fillcolor, $shadow = 0.65)
                      Severity: Major
                      Found in src/plot/PiePlot3D.php - About 1 hr to fix

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

                            public function Add3DSliceToCSIM($i, $xc, $yc, $height, $width, $thick, $sa, $ea)
                        Severity: Major
                        Found in src/plot/PiePlot3D.php - About 1 hr to fix

                          Consider simplifying this complex logical expression.
                          Open

                                          if (($a < 90 && ($a + $da > 270)) || ($a > 90 && $a <= 270 && ($a + $da > 360 + 90)) || ($a > 270 && $this->NormAngle($a + $da) > 270)) {
                                              $angles[++$idx]   = [$split, 360 - $split];
                                              $adjcolors[$idx]  = $colors[$i % $numcolors];
                                              $adjexplode[$idx] = $explode;
                                              $angles[++$idx]   = [360 - $split, $ne];
                          Severity: Major
                          Found in src/plot/PiePlot3D.php - About 1 hr to fix

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

                                public function NormAngle($a)
                                {
                                    // Normalize anle to 0 to 2M_PI
                                    //
                                    if ($a > 0) {
                            Severity: Minor
                            Found in src/plot/PiePlot3D.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 StrokeLabels has 6 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                public function StrokeLabels($label, $img, $a, $xp, $yp, $z)
                            Severity: Minor
                            Found in src/plot/PiePlot3D.php - About 45 mins to fix

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

                                  public function Pie3D(
                                      $aaoption,
                                      $img,
                                      $data,
                                      $colors,
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpmd

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

                              class PiePlot3D extends PiePlot
                              {
                                  private $labelhintcolor = 'red';
                                  private $showlabelhint  = true;
                                  private $angle          = 50;
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpmd

                              The method StrokeFullSliceFrame has 11 parameters. Consider reducing the number of parameters to less than 10.
                              Open

                                  public function StrokeFullSliceFrame($img, $xc, $yc, $sa, $ea, $w, $h, $z, $edgecolor, $exploderadius, $fulledge)
                                  {
                                      $step = 0.02;
                              
                                      if ($exploderadius > 0) {
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpmd

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

                                  public function Stroke($img, $aaoption = 0)
                                  {
                                      $n = safe_count($this->data);
                              
                                      // If user hasn't set the colors use the theme array
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpmd

                              The method Pie3D() has an NPath complexity of 14494464000. The configured NPath complexity threshold is 200.
                              Open

                                  public function Pie3D(
                                      $aaoption,
                                      $img,
                                      $data,
                                      $colors,
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 Pie3DSlice has 10 parameters. Consider reducing the number of parameters to less than 10.
                              Open

                                  public function Pie3DSlice($img, $xc, $yc, $w, $h, $sa, $ea, $z, $fillcolor, $shadow = 0.65)
                                  {
                                      // Due to the way the 3D Pie algorithm works we are
                                      // guaranteed that any slice we get into this method
                                      // belongs to either the left or right side of the
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpmd

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

                                  public function Pie3DSlice($img, $xc, $yc, $w, $h, $sa, $ea, $z, $fillcolor, $shadow = 0.65)
                                  {
                                      // Due to the way the 3D Pie algorithm works we are
                                      // guaranteed that any slice we get into this method
                                      // belongs to either the left or right side of the
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpmd

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

                                  public function Stroke($img, $aaoption = 0)
                                  {
                                      $n = safe_count($this->data);
                              
                                      // If user hasn't set the colors use the theme array
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 StrokeLabels() has an NPath complexity of 52488. The configured NPath complexity threshold is 200.
                              Open

                                  public function StrokeLabels($label, $img, $a, $xp, $yp, $z)
                                  {
                                      $this->value->halign = 'left';
                                      $this->value->valign = 'top';
                              
                              
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 StrokeFullSliceFrame() has an NPath complexity of 256. The configured NPath complexity threshold is 200.
                              Open

                                  public function StrokeFullSliceFrame($img, $xc, $yc, $sa, $ea, $w, $h, $z, $edgecolor, $exploderadius, $fulledge)
                                  {
                                      $step = 0.02;
                              
                                      if ($exploderadius > 0) {
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 Pie3D has 13 parameters. Consider reducing the number of parameters to less than 10.
                              Open

                                  public function Pie3D(
                                      $aaoption,
                                      $img,
                                      $data,
                                      $colors,
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpmd

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

                                  public function Pie3DSlice($img, $xc, $yc, $w, $h, $sa, $ea, $z, $fillcolor, $shadow = 0.65)
                                  {
                                      // Due to the way the 3D Pie algorithm works we are
                                      // guaranteed that any slice we get into this method
                                      // belongs to either the left or right side of the
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 StrokeLabels() has a Cyclomatic Complexity of 20. The configured cyclomatic complexity threshold is 10.
                              Open

                                  public function StrokeLabels($label, $img, $a, $xp, $yp, $z)
                                  {
                                      $this->value->halign = 'left';
                                      $this->value->valign = 'top';
                              
                              
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 Pie3D() has a Cyclomatic Complexity of 67. The configured cyclomatic complexity threshold is 10.
                              Open

                                  public function Pie3D(
                                      $aaoption,
                                      $img,
                                      $data,
                                      $colors,
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 21. The configured cyclomatic complexity threshold is 10.
                              Open

                                  public function Stroke($img, $aaoption = 0)
                                  {
                                      $n = safe_count($this->data);
                              
                                      // If user hasn't set the colors use the theme array
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 StrokeFullSliceFrame() has a Cyclomatic Complexity of 16. The configured cyclomatic complexity threshold is 10.
                              Open

                                  public function StrokeFullSliceFrame($img, $xc, $yc, $sa, $ea, $w, $h, $z, $edgecolor, $exploderadius, $fulledge)
                                  {
                                      $step = 0.02;
                              
                                      if ($exploderadius > 0) {
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 Add3DSliceToCSIM() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10.
                              Open

                                  public function Add3DSliceToCSIM($i, $xc, $yc, $height, $width, $thick, $sa, $ea)
                                  {
                                      //Slice number, ellipse centre (x,y), height, width, start angle, end angle
                              
                                      $sa *= M_PI / 180;
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$labeldata' which will lead to PHP notices.
                              Open

                                          $labeldata[$i]      = [$la, $explode[0], $explode[1]];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                      $n = safe_count($angles);
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                              $angles[$j][0],
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                              $angles[$j][1],
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$labeldata' which will lead to PHP notices.
                              Open

                                              $x  = $labeldata[$i][1] + cos($la * M_PI / 180) * ($d + $margin) * $this->ilabelposadj;
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                      while ($angles[$j][0] < 270 && $aaoption !== 2) {
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$adjcolors' which will lead to PHP notices.
                              Open

                                              $adjcolors[$idx]  = $colors[$i % $numcolors];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$adjcolors' which will lead to PHP notices.
                              Open

                                              $adjcolors[$last[2]],
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                                  $angles[$idx]     = [$a, $ne];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$labeldata' which will lead to PHP notices.
                              Open

                                              $y  = $labeldata[$i][2] - sin($la * M_PI / 180) * ($h + $margin) * $this->ilabelposadj;
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$adjcolors' which will lead to PHP notices.
                              Open

                                                  $adjcolors[$idx]  = $colors[$i % $numcolors];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$labeldata' which will lead to PHP notices.
                              Open

                                                  $labeldata[$i][2],
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                                  $angles[++$idx]   = [$split, $ne];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                                  $angles[++$idx]   = [360 - $split, $ne];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$originalangles' which will lead to PHP notices.
                              Open

                                                  $originalangles[$i][0],
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$originalangles' which will lead to PHP notices.
                              Open

                                          $originalangles[$i] = [$a, $a + $da];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$adjcolors' which will lead to PHP notices.
                              Open

                                                  $adjcolors[$idx]  = $colors[$i % $numcolors];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                                  $angles[++$idx]   = [$split, $ne];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                                  $angles[$idx]     = [$a, $split];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                              $angles[$idx]     = [$a, $split];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$adjcolors' which will lead to PHP notices.
                              Open

                                              $adjcolors[$j],
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$adjcolors' which will lead to PHP notices.
                              Open

                                                  $adjcolors[$idx]  = $colors[$i % $numcolors];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                          list($dbgs, $dbge) = $angles[$i];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$adjcolors' which will lead to PHP notices.
                              Open

                                              $adjcolors[$j],
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$labeldata' which will lead to PHP notices.
                              Open

                                              $la = $labeldata[$i][0];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                          if ($angles[$i][0] < $minval) {
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                              $minval = $angles[$i][0];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                              $angles[$j][1],
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                      while ($angles[$j][1] <= 90) {
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                      $minval = $angles[0][0];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$adjcolors' which will lead to PHP notices.
                              Open

                                                  $adjcolors[$idx]  = $colors[$i % $numcolors];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$adjcolors' which will lead to PHP notices.
                              Open

                                                  $adjcolors[$idx]  = $colors[$i % $numcolors];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                              $angles[$last[2]][0],
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                              $angles[$j][0],
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                              $angles[$last[2]][1],
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$angles' which will lead to PHP notices.
                              Open

                                                  $angles[++$idx]   = [$split, 360 - $split];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$adjcolors' which will lead to PHP notices.
                              Open

                                                  $adjcolors[$idx]  = $colors[$i % $numcolors];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$labeldata' which will lead to PHP notices.
                              Open

                                              $this->StrokeLabels($l, $img, $labeldata[$i][0] * M_PI / 180, $x, $y, $z);
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$labeldata' which will lead to PHP notices.
                              Open

                                                  $labeldata[$i][1],
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$originalangles' which will lead to PHP notices.
                              Open

                                                  $originalangles[$i][1]
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 ShowLabelHint has a boolean flag argument $f, which is a certain sign of a Single Responsibility Principle violation.
                              Open

                                  public function ShowLabelHint($f = true)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 'SetAngle'.
                              Open

                                          Util\JpGraphError::RaiseL(14002);
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 Pie3DSlice uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                              Open

                                          } else {
                                              $p = [$xc, $yc, $xc, $yc + $z,
                                                  $xc + $w * $cossa, $z + $yc - $h * $sinsa, ];
                                              $pt = [$xc, $yc, $xc + $w * $cossa, $yc - $h * $sinsa];
                              
                              
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 Pie3D uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                              Open

                                              } else {
                                                  // no split
                                                  $angles[$idx]     = [$a, $ne];
                                                  $adjcolors[$idx]  = $colors[$i % $numcolors];
                                                  $adjexplode[$idx] = $explode;
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 Pie3D uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                              Open

                                          } else {
                                              // da>180
                                              // Slice may, depending on position, cross one or two
                                              // bonudaries
                              
                              
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 SetAngle uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                              Open

                                      } else {
                                          $this->angle = $a;
                                      }
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 'Pie3D'.
                              Open

                                              Util\JpGraphError::RaiseL(14006);
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 {
                                          $yc = $this->posy;
                                      }
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 Pie3D uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                              Open

                                              } else {
                                                  $split = 90;
                                              }
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 StrokeLabels uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                              Open

                                          } else {
                                              $w = $img->GetTextWidth(sprintf($this->value->negformat, $label));
                                          }
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 Pie3D uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                              Open

                                                  } else {
                                                      $l = 0;
                                                  }
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 {
                                          $ca = $this->setslicecolors;
                                      }
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 Pie3D uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                              Open

                                              } else {
                                                  $l = $this->adjusted_data[$i];
                                              }
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 {
                                          $xc = $this->posx;
                                      }
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 StrokeLabels uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                              Open

                                      } else {
                                          $w = $img->GetTextWidth($label);
                                      }
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 Pie3DSlice uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                              Open

                                      } else {
                                          // sa > 0 && ea < 90
                              
                                          $p = [$xc, $yc, $xc, $yc + $z,
                                              $xc + $w * $cossa, $z + $yc - $h * $sinsa,
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 'Pie3D'.
                              Open

                                              Util\JpGraphError::RaiseL(14005);
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 Add3DSliceToCSIM uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                              Open

                                          } else {
                                              $yp = floor($yc - $height * sin($a) / 2);
                                          }
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 Pie3DSlice uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                              Open

                                          } else {
                                              // $sa >= 90 && $ea <= 180
                                              $p = [$xc, $yc, $xc, $yc + $z,
                                                  $xc + $w * $cosea, $z + $yc - $h * $sinea,
                                                  $xc + $w * $cosea, $yc - $h * $sinea,
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 'SetStartAngle'.
                              Open

                                          Util\JpGraphError::RaiseL(14004); //('Slice start angle must be between 0 and 360 degrees.');
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 {
                                          $width = $this->radius * ($aaoption === 1 ? 2 : 1);
                                      }
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 {
                                          $thick *= 0.6;
                                      }
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 'Pie3DSlice'.
                              Open

                                          Util\JpGraphError::RaiseL(14003); //('Internal assertion failed. Pie3D::Pie3DSlice');
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 'Pie3D'.
                              Open

                                              Util\JpGraphError::RaiseL(14006);
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 'Stroke'.
                              Open

                                          Util\JpGraphError::RaiseL(14007); //("Width for 3D Pie is 0. Specify a size > 0");
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 NormAngle uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                              Open

                                      } else {
                                          while ($a < 0) {
                                              $a += 360;
                                          }
                                      }
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 Pie3D uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                              Open

                                              } else {
                                                  // Just a simple split to the previous decided
                                                  // angle.
                                                  $angles[++$idx]   = [$split, $ne];
                                                  $adjcolors[$idx]  = $colors[$i % $numcolors];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 {
                                          $thick = $width / 12;
                                      }
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$accsum'.
                              Open

                                      $accsum = 0;
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 parameters such as '$z'.
                              Open

                                  public function StrokeLabels($label, $img, $a, $xp, $yp, $z)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpmd

                              UnusedFormalParameter

                              Since: 0.2

                              Avoid passing parameters to methods or constructors and then not using those parameters.

                              Example

                              class Foo
                              {
                                  private function bar($howdy)
                                  {
                                      // $howdy is not used
                                  }
                              }

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

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

                                          list($dbgs, $dbge) = $angles[$i];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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

                              The method Pie3DSlice() contains an exit expression.
                              Open

                                          exit(1);
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpmd

                              ExitExpression

                              Since: 0.2

                              An exit-expression within regular code is untestable and therefore it should be avoided. Consider to move the exit-expression into some kind of startup script where an error/exception code is returned to the calling environment.

                              Example

                              class Foo {
                                  public function bar($param)  {
                                      if ($param === 42) {
                                          exit(23);
                                      }
                                  }
                              }

                              Source https://phpmd.org/rules/design.html#exitexpression

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

                                          list($dbgs, $dbge) = $angles[$i];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 '$alt'.
                              Open

                                      $alt = '';
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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

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

                                      if (!empty($this->csimtargets[$i])) {
                                          $this->csimareas .= "<area shape=\"poly\" coords=\"${coords}\" href=\"" . $this->csimtargets[$i] . '"';
                              
                                          if (!empty($this->csimwintargets[$i])) {
                                              $this->csimareas .= ' target="' . $this->csimwintargets[$i] . '" ';
                              Severity: Major
                              Found in src/plot/PiePlot3D.php and 1 other location - About 3 hrs to fix
                              src/plot/PiePlotC.php on lines 139..150

                              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 148.

                              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 4 locations. Consider refactoring.
                              Open

                                              for ($a = $rsa; $a < $rea; $a += $step) {
                                                  $tca  = cos($a);
                                                  $tsa  = sin($a);
                                                  $p[]  = $xc + $w * $tca;
                                                  $p[]  = $z + $yc - $h * $tsa;
                              Severity: Major
                              Found in src/plot/PiePlot3D.php and 3 other locations - About 1 hr to fix
                              src/plot/PiePlot3D.php on lines 253..260
                              src/plot/PiePlot3D.php on lines 312..319
                              src/plot/PiePlot3D.php on lines 337..344

                              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 101.

                              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 4 locations. Consider refactoring.
                              Open

                                              for ($a = $rea; $a > M_PI; $a -= $step) {
                                                  $tca  = cos($a);
                                                  $tsa  = sin($a);
                                                  $p[]  = $xc + $w * $tca;
                                                  $p[]  = $z + $yc - $h * $tsa;
                              Severity: Major
                              Found in src/plot/PiePlot3D.php and 3 other locations - About 1 hr to fix
                              src/plot/PiePlot3D.php on lines 253..260
                              src/plot/PiePlot3D.php on lines 287..294
                              src/plot/PiePlot3D.php on lines 312..319

                              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 101.

                              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 4 locations. Consider refactoring.
                              Open

                                              for ($a = $rsa; $a < 2 * M_PI; $a += $step) {
                                                  $tca  = cos($a);
                                                  $tsa  = sin($a);
                                                  $p[]  = $xc + $w * $tca;
                                                  $p[]  = $z + $yc - $h * $tsa;
                              Severity: Major
                              Found in src/plot/PiePlot3D.php and 3 other locations - About 1 hr to fix
                              src/plot/PiePlot3D.php on lines 287..294
                              src/plot/PiePlot3D.php on lines 312..319
                              src/plot/PiePlot3D.php on lines 337..344

                              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 101.

                              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 4 locations. Consider refactoring.
                              Open

                                          for ($a = $rea; $a > $rsa; $a -= $step) {
                                              $tca  = cos($a);
                                              $tsa  = sin($a);
                                              $p[]  = $xc + $w * $tca;
                                              $p[]  = $z + $yc - $h * $tsa;
                              Severity: Major
                              Found in src/plot/PiePlot3D.php and 3 other locations - About 1 hr to fix
                              src/plot/PiePlot3D.php on lines 253..260
                              src/plot/PiePlot3D.php on lines 287..294
                              src/plot/PiePlot3D.php on lines 337..344

                              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 101.

                              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 $m. Configured minimum length is 3.
                              Open

                                  public function SetLabelMargin($m)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 SetAngle($a)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $p. Configured minimum length is 3.
                              Open

                                      $p[] = [];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $ea. Configured minimum length is 3.
                              Open

                                  public function Add3DSliceToCSIM($i, $xc, $yc, $height, $width, $thick, $sa, $ea)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $z. Configured minimum length is 3.
                              Open

                                      $z,
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 Pie3DSlice($img, $xc, $yc, $w, $h, $sa, $ea, $z, $fillcolor, $shadow = 0.65)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 = $img->GetTextWidth(sprintf($this->value->format, $label));
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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($xp - $dx * $w);
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 Add3DSliceToCSIM($i, $xc, $yc, $height, $width, $thick, $sa, $ea)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 = $sa + 0.2;
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 Pie3DSlice($img, $xc, $yc, $w, $h, $sa, $ea, $z, $fillcolor, $shadow = 0.65)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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

                                  public function Pie3DSlice($img, $xc, $yc, $w, $h, $sa, $ea, $z, $fillcolor, $shadow = 0.65)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $ea. Configured minimum length is 3.
                              Open

                                  public function Pie3DSlice($img, $xc, $yc, $w, $h, $sa, $ea, $z, $fillcolor, $shadow = 0.65)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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

                                  public function StrokeFullSliceFrame($img, $xc, $yc, $sa, $ea, $w, $h, $z, $edgecolor, $exploderadius, $fulledge)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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      = $startangle;
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $p. Configured minimum length is 3.
                              Open

                                      $p = [$xc, $yc, $xc + $w * cos($sa), $yc - $h * sin($sa)];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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->angle;
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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

                                          $dy = (($a - M_PI) - 3 * M_PI / 4) * 2 / M_PI;
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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($yp - $dy * $h);
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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

                                  public function Add3DSliceToCSIM($i, $xc, $yc, $height, $width, $thick, $sa, $ea)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 Add3DSliceToCSIM($i, $xc, $yc, $height, $width, $thick, $sa, $ea)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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   = ($angle / 90.0) * $d;
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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($angles);
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $ne. Configured minimum length is 3.
                              Open

                                          $ne = $this->NormAngle($a + $da);
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $c. Configured minimum length is 3.
                              Open

                                  public function SetLabelHintColor($c)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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,
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $d. Configured minimum length is 3.
                              Open

                                      $d,
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $xp. Configured minimum length is 3.
                              Open

                                  public function StrokeLabels($label, $img, $a, $xp, $yp, $z)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 StrokeFullSliceFrame($img, $xc, $yc, $sa, $ea, $w, $h, $z, $edgecolor, $exploderadius, $fulledge)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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($this->posy * $img->height);
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 = 0;
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $sa. Configured minimum length is 3.
                              Open

                                  public function StrokeFullSliceFrame($img, $xc, $yc, $sa, $ea, $w, $h, $z, $edgecolor, $exploderadius, $fulledge)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $ea. Configured minimum length is 3.
                              Open

                                  public function StrokeFullSliceFrame($img, $xc, $yc, $sa, $ea, $w, $h, $z, $edgecolor, $exploderadius, $fulledge)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $m. Configured minimum length is 3.
                              Open

                                          $m     = safe_count($idx_a);
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $sa. Configured minimum length is 3.
                              Open

                                  public function Add3DSliceToCSIM($i, $xc, $yc, $height, $width, $thick, $sa, $ea)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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

                                  public function Pie3DSlice($img, $xc, $yc, $w, $h, $sa, $ea, $z, $fillcolor, $shadow = 0.65)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $pt. Configured minimum length is 3.
                              Open

                                              $pt = [$xc, $yc, $xc + $w * $cossa, $yc - $h * $sinsa];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $la. Configured minimum length is 3.
                              Open

                                          $la      = $a + $da / 2;
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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/PiePlot3D.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 $z. Configured minimum length is 3.
                              Open

                                  public function StrokeFullSliceFrame($img, $xc, $yc, $sa, $ea, $w, $h, $z, $edgecolor, $exploderadius, $fulledge)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $ca. Configured minimum length is 3.
                              Open

                                          $ca    = [];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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($this->posx * $img->width);
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $yp. Configured minimum length is 3.
                              Open

                                  public function StrokeLabels($label, $img, $a, $xp, $yp, $z)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $yp. Configured minimum length is 3.
                              Open

                                      $yp = floor($yc - $height * sin($sa) / 2);
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $z. Configured minimum length is 3.
                              Open

                                  public function Pie3DSlice($img, $xc, $yc, $w, $h, $sa, $ea, $z, $fillcolor, $shadow = 0.65)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 = $data[$i] / $sum * 360;
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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,
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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   = $min;
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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

                                          list($x, $y) = $adjexplode[$j];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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

                                          list($x, $y) = $adjexplode[$j];
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 = 100 * $data[$i] / $sum;
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 StrokeFullSliceFrame($img, $xc, $yc, $sa, $ea, $w, $h, $z, $edgecolor, $exploderadius, $fulledge)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $la. Configured minimum length is 3.
                              Open

                                          $la = ($sa + $ea) / 2;
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 StrokeLabels($label, $img, $a, $xp, $yp, $z)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $z. Configured minimum length is 3.
                              Open

                                  public function StrokeLabels($label, $img, $a, $xp, $yp, $z)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 = $img->GetTextHeight($label);
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $xp. Configured minimum length is 3.
                              Open

                                      $xp = floor($width * cos($sa) / 2 + $xc);
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $f. Configured minimum length is 3.
                              Open

                                  public function ShowLabelHint($f = true)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 $sa. Configured minimum length is 3.
                              Open

                                  public function Pie3DSlice($img, $xc, $yc, $w, $h, $sa, $ea, $z, $fillcolor, $shadow = 0.65)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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

                                  public function StrokeFullSliceFrame($img, $xc, $yc, $sa, $ea, $w, $h, $z, $edgecolor, $exploderadius, $fulledge)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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->data);
                              Severity: Minor
                              Found in src/plot/PiePlot3D.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 "PiePlot3D::SetLabelMargin" is not in camel caps format
                              Open

                                  public function SetLabelMargin($m)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Method name "PiePlot3D::Add3DSliceToCSIM" is not in camel caps format
                              Open

                                  public function Add3DSliceToCSIM($i, $xc, $yc, $height, $width, $thick, $sa, $ea)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Method name "PiePlot3D::NormAngle" is not in camel caps format
                              Open

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

                              Method name "PiePlot3D::Pie3D" is not in camel caps format
                              Open

                                  public function Pie3D(
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Method name "PiePlot3D::SetLegends" is not in camel caps format
                              Open

                                  public function SetLegends($aLegend)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Method name "PiePlot3D::SetHeight" is not in camel caps format
                              Open

                                  public function SetHeight($aHeight)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Method name "PiePlot3D::StrokeLabels" is not in camel caps format
                              Open

                                  public function StrokeLabels($label, $img, $a, $xp, $yp, $z)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Method name "PiePlot3D::SetLabelHintColor" is not in camel caps format
                              Open

                                  public function SetLabelHintColor($c)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Method name "PiePlot3D::Legend" is not in camel caps format
                              Open

                                  public function Legend($aGraph)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Method name "PiePlot3D::SetStartAngle" is not in camel caps format
                              Open

                                  public function SetStartAngle($aStart)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Method name "PiePlot3D::ShowLabelHint" is not in camel caps format
                              Open

                                  public function ShowLabelHint($f = true)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Method name "PiePlot3D::SetEdge" is not in camel caps format
                              Open

                                  public function SetEdge($aColor = 'black', $aWeight = 1)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Method name "PiePlot3D::Pie3DSlice" is not in camel caps format
                              Open

                                  public function Pie3DSlice($img, $xc, $yc, $w, $h, $sa, $ea, $z, $fillcolor, $shadow = 0.65)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Method name "PiePlot3D::SetSliceColors" is not in camel caps format
                              Open

                                  public function SetSliceColors($aColors)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Method name "PiePlot3D::StrokeFullSliceFrame" is not in camel caps format
                              Open

                                  public function StrokeFullSliceFrame($img, $xc, $yc, $sa, $ea, $w, $h, $z, $edgecolor, $exploderadius, $fulledge)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Method name "PiePlot3D::SetCSIMTargets" is not in camel caps format
                              Open

                                  public function SetCSIMTargets($aTargets, $aAlts = '', $aWinTargets = '')
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Method name "PiePlot3D::SetAngle" is not in camel caps format
                              Open

                                  public function SetAngle($a)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Method name "PiePlot3D::SetLabels" is not in camel caps format
                              Open

                                  public function SetLabels($aLabels, $aLblPosAdj = 'auto')
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Method name "PiePlot3D::Stroke" is not in camel caps format
                              Open

                                  public function Stroke($img, $aaoption = 0)
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Line exceeds 120 characters; contains 142 characters
                              Open

                                              //("Pie3D Internal Error: Z-Sorting algorithm for 3D Pies is not working properly (2). Trying to wrap twice while stroking.");
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Line exceeds 120 characters; contains 135 characters
                              Open

                                          $this->title->SetPos($xc, $yc - $this->title->GetFontHeight($img) - $width / 2 - $this->title->margin, 'center', 'bottom');
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Line exceeds 120 characters; contains 153 characters
                              Open

                                              if (($a < 90 && ($a + $da > 270)) || ($a > 90 && $a <= 270 && ($a + $da > 360 + 90)) || ($a > 270 && $this->NormAngle($a + $da) > 270)) {
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              Line exceeds 120 characters; contains 142 characters
                              Open

                                              //("Pie3D Internal Error: Z-Sorting algorithm for 3D Pies is not working properly (2). Trying to wrap twice while stroking.");
                              Severity: Minor
                              Found in src/plot/PiePlot3D.php by phpcodesniffer

                              There are no issues that match your filters.

                              Category
                              Status