HuasoFoundries/jpgraph

View on GitHub
src/graph/Graph.php

Summary

Maintainability
F
1 mo
Test Coverage

File Graph.php has 2288 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

/**
 * JPGraph v4.0.3
 */
Severity: Major
Found in src/graph/Graph.php - About 6 days to fix

    Graph has 92 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Graph
    {
        public $gDateLocale;
        public $gJpgDateLocale;
        public $cache; // Cache object (singleton)
    Severity: Major
    Found in src/graph/Graph.php - About 1 day to fix

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

          public function Stroke($aStrokeFileName = '')
          {
              // Fist make a sanity check that user has specified a scale
              if (empty($this->yscale)) {
                  Util\JpGraphError::RaiseL(25031); //('You must specify what scale to use with a call to Graph::SetScale().');
      Severity: Minor
      Found in src/graph/Graph.php - About 1 day to fix

      Cognitive Complexity

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

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

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

      Further reading

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

          public function doAutoscaleXAxis()
          {
              $aPlots = array_filter($this->plots, function ($plot) {
                  //\Kint::dump($plot, $plot instanceof Plot\Plot);
                  return $plot instanceof Plot\Plot;
      Severity: Minor
      Found in src/graph/Graph.php - About 1 day to fix

      Cognitive Complexity

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

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

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

      Further reading

      Function StrokeTitles has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring.
      Open

          public function StrokeTitles()
          {
              $margin = 3;
      
              if ($this->titlebackground) {
      Severity: Minor
      Found in src/graph/Graph.php - About 7 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 Stroke has 176 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function Stroke($aStrokeFileName = '')
          {
              // Fist make a sanity check that user has specified a scale
              if (empty($this->yscale)) {
                  Util\JpGraphError::RaiseL(25031); //('You must specify what scale to use with a call to Graph::SetScale().');
      Severity: Major
      Found in src/graph/Graph.php - About 7 hrs to fix

        Function doAutoScaleYnAxis has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
        Open

            public function doAutoScaleYnAxis()
            {
                if ($this->y2scale != null) {
                    if (!$this->y2scale->IsSpecified() && safe_count($this->y2plots) > 0) {
                        list($min, $max) = $this->GetPlotsYMinMax($this->y2plots);
        Severity: Minor
        Found in src/graph/Graph.php - About 5 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 StrokeTitles has 137 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function StrokeTitles()
            {
                $margin = 3;
        
                if ($this->titlebackground) {
        Severity: Major
        Found in src/graph/Graph.php - About 5 hrs to fix

          Method StrokeFrameBackground has 132 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function StrokeFrameBackground()
              {
                  if ($this->background_image != '' && $this->background_cflag != '') {
                      Util\JpGraphError::RaiseL(25040); //('It is not possible to specify both a background image and a background country flag.');
                  }
          Severity: Major
          Found in src/graph/Graph.php - About 5 hrs to fix

            Method doAutoscaleXAxis has 92 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function doAutoscaleXAxis()
                {
                    $aPlots = array_filter($this->plots, function ($plot) {
                        //\Kint::dump($plot, $plot instanceof Plot\Plot);
                        return $plot instanceof Plot\Plot;
            Severity: Major
            Found in src/graph/Graph.php - About 3 hrs to fix

              The class Graph has 39 non-getter- and setter-methods. Consider refactoring Graph to keep number of methods under 25.
              Open

              class Graph
              {
                  public $gDateLocale;
                  public $gJpgDateLocale;
                  public $cache; // Cache object (singleton)
              Severity: Minor
              Found in src/graph/Graph.php by phpmd

              TooManyMethods

              Since: 0.1

              A class with too many methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

              By default it ignores methods starting with 'get' or 'set'.

              The default was changed from 10 to 25 in PHPMD 2.3.

              Example

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

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

              class Graph
              {
                  public $gDateLocale;
                  public $gJpgDateLocale;
                  public $cache; // Cache object (singleton)
              Severity: Minor
              Found in src/graph/Graph.php by phpmd

              The class Graph has 39 public methods. Consider refactoring Graph to keep number of public methods under 10.
              Open

              class Graph
              {
                  public $gDateLocale;
                  public $gJpgDateLocale;
                  public $cache; // Cache object (singleton)
              Severity: Minor
              Found in src/graph/Graph.php by phpmd

              TooManyPublicMethods

              Since: 0.1

              A class with too many public methods is probably a good suspect for refactoring, in order to reduce its complexity and find a way to have more fine grained objects.

              By default it ignores methods starting with 'get' or 'set'.

              Example

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

              Function StrokeAxisLabelBackground has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function StrokeAxisLabelBackground()
                  {
                      // Types
                      // 0 = No background
                      // 1 = Only X-labels, length of axis
              Severity: Minor
              Found in src/graph/Graph.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

              Function LoadBkgImage has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
              Open

                  public static function LoadBkgImage($aImgFormat = '', $aFile = '', $aImgStr = '')
                  {
                      if ($aImgStr != '') {
                          return Image::CreateFromString($aImgStr);
                      }
              Severity: Minor
              Found in src/graph/Graph.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 StrokeAxis has 63 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function StrokeAxis($aStrokeLabels = true)
                  {
                      if ($aStrokeLabels) {
                          $this->StrokeAxisLabelBackground();
                      }
              Severity: Major
              Found in src/graph/Graph.php - About 2 hrs to fix

                Function AdjustMarginsForTitles has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function AdjustMarginsForTitles()
                    {
                        $totrequired =
                            ($this->title->t != ''
                            ? $this->title->GetTextHeight($this->img) + $this->title->margin + 5 * SUPERSAMPLING_SCALE
                Severity: Minor
                Found in src/graph/Graph.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

                Function StrokeCSIM has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function StrokeCSIM($aScriptName = 'auto', $aCSIMName = '', $aBorder = 0)
                    {
                        if ($aCSIMName == '') {
                            // create a random map name
                            srand((int) (microtime() * 1000000));
                Severity: Minor
                Found in src/graph/Graph.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 StrokeAxisLabelBackground has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function StrokeAxisLabelBackground()
                    {
                        // Types
                        // 0 = No background
                        // 1 = Only X-labels, length of axis
                Severity: Major
                Found in src/graph/Graph.php - About 2 hrs to fix

                  Method AdjustMarginsForTitles has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function AdjustMarginsForTitles()
                      {
                          $totrequired =
                              ($this->title->t != ''
                              ? $this->title->GetTextHeight($this->img) + $this->title->margin + 5 * SUPERSAMPLING_SCALE
                  Severity: Major
                  Found in src/graph/Graph.php - About 2 hrs to fix

                    Method doAutoScaleYnAxis has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function doAutoScaleYnAxis()
                        {
                            if ($this->y2scale != null) {
                                if (!$this->y2scale->IsSpecified() && safe_count($this->y2plots) > 0) {
                                    list($min, $max) = $this->GetPlotsYMinMax($this->y2plots);
                    Severity: Major
                    Found in src/graph/Graph.php - About 2 hrs to fix

                      Function StrokeAxis has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function StrokeAxis($aStrokeLabels = true)
                          {
                              if ($aStrokeLabels) {
                                  $this->StrokeAxisLabelBackground();
                              }
                      Severity: Minor
                      Found in src/graph/Graph.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

                      Function GetCSIMareas has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
                      Open

                          public function GetCSIMareas()
                          {
                              if (!$this->iHasStroked) {
                                  $this->Stroke(_CSIM_SPECIALFILE);
                              }
                      Severity: Minor
                      Found in src/graph/Graph.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

                      Consider simplifying this complex logical expression.
                      Open

                              if (($ext == 'jpg' && !($supported & IMG_JPG)) ||
                                  ($ext == 'gif' && !($supported & IMG_GIF)) ||
                                  ($ext == 'png' && !($supported & IMG_PNG)) ||
                                  ($ext == 'bmp' && !($supported & IMG_WBMP)) ||
                                  ($ext == 'xpm' && !($supported & IMG_XPM))) {
                      Severity: Critical
                      Found in src/graph/Graph.php - About 2 hrs to fix

                        Method __construct has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function __construct($aWidth = 300, $aHeight = 200, $aCachedName = '', $aTimeout = 0, $aInline = true)
                            {
                                $this->gDateLocale    = new Util\DateLocale();
                                $this->gJpgDateLocale = new Util\DateLocale();
                                if (!is_numeric($aWidth) || !is_numeric($aHeight)) {
                        Severity: Minor
                        Found in src/graph/Graph.php - About 1 hr to fix

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

                              public function StrokeFrame()
                              {
                                  if (!$this->doframe) {
                                      return;
                                  }
                          Severity: Minor
                          Found in src/graph/Graph.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

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

                              public static function GetURLArguments($aAddRecursiveBlocker = false)
                              {
                                  if ($aAddRecursiveBlocker) {
                                      // This is a JPGRAPH internal defined that prevents
                                      // us from recursively coming here again
                          Severity: Minor
                          Found in src/graph/Graph.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

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

                              public function AddLine($aLine, $aToY2 = false)
                              {
                                  if ($aLine == null) {
                                      Util\JpGraphError::RaiseL(25015); //("Graph::AddLine() You tried to add a null line to the graph.");
                                  }
                          Severity: Minor
                          Found in src/graph/Graph.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

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

                              public function doPrestrokeAdjustments()
                              {
                                  // Do any pre-stroke adjustment that is needed by the different plot types
                                  // (i.e bar plots want's to add an offset to the x-labels etc)
                                  for ($i = 0; $i < safe_count($this->plots); ++$i) {
                          Severity: Minor
                          Found in src/graph/Graph.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

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

                              public function AddText($aTxt, $aToY2 = false)
                              {
                                  if ($aTxt == null) {
                                      Util\JpGraphError::RaiseL(25014); //("Graph::AddText() You tried to add a null text to the graph.");
                                  }
                          Severity: Minor
                          Found in src/graph/Graph.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

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

                              public function GetXMinMax()
                              {
                                  list($min, $ymin) = $this->plots[0]->Min();
                                  list($max, $ymax) = $this->plots[0]->Max();
                          
                          
                          Severity: Minor
                          Found in src/graph/Graph.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

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

                              public function AddBand($aBand, $aToY2 = false)
                              {
                                  if ($aBand == null) {
                                      Util\JpGraphError::RaiseL(25016); //(" Graph::AddBand() You tried to add a null band to the graph.");
                                  }
                          Severity: Minor
                          Found in src/graph/Graph.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 GetCSIMareas has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function GetCSIMareas()
                              {
                                  if (!$this->iHasStroked) {
                                      $this->Stroke(_CSIM_SPECIALFILE);
                                  }
                          Severity: Minor
                          Found in src/graph/Graph.php - About 1 hr to fix

                            Method StrokeFrame has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function StrokeFrame()
                                {
                                    if (!$this->doframe) {
                                        return;
                                    }
                            Severity: Minor
                            Found in src/graph/Graph.php - About 1 hr to fix

                              Method SetScale has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function SetScale($aAxisType, $aYMin = 1, $aYMax = 1, $aXMin = 1, $aXMax = 1)
                                  {
                                      $this->axtype = $aAxisType;
                              
                                      if ($aYMax < $aYMin || $aXMax < $aXMin) {
                              Severity: Minor
                              Found in src/graph/Graph.php - About 1 hr to fix

                                Function doAutoScaleYAxis has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function doAutoScaleYAxis()
                                    {
                                        //Check if we should autoscale y-axis
                                        if (!$this->yscale->IsSpecified() && safe_count($this->plots) > 0) {
                                            list($min, $max) = $this->GetPlotsYMinMax($this->plots);
                                Severity: Minor
                                Found in src/graph/Graph.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

                                Function SetScale has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function SetScale($aAxisType, $aYMin = 1, $aYMax = 1, $aXMin = 1, $aXMax = 1)
                                    {
                                        $this->axtype = $aAxisType;
                                
                                        if ($aYMax < $aYMin || $aXMax < $aXMin) {
                                Severity: Minor
                                Found in src/graph/Graph.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

                                Function StrokeFrameBackground has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function StrokeFrameBackground()
                                    {
                                        if ($this->background_image != '' && $this->background_cflag != '') {
                                            Util\JpGraphError::RaiseL(25040); //('It is not possible to specify both a background image and a background country flag.');
                                        }
                                Severity: Minor
                                Found in src/graph/Graph.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

                                Function Add has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    public function Add($aPlot)
                                    {
                                        if ($aPlot == null) {
                                            Util\JpGraphError::RaiseL(25010); //("Graph::Add() You tried to add a null plot to the graph.");
                                        }
                                Severity: Minor
                                Found in src/graph/Graph.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 StrokeCSIM has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function StrokeCSIM($aScriptName = 'auto', $aCSIMName = '', $aBorder = 0)
                                    {
                                        if ($aCSIMName == '') {
                                            // create a random map name
                                            srand((int) (microtime() * 1000000));
                                Severity: Minor
                                Found in src/graph/Graph.php - About 1 hr to fix

                                  Function CheckCSIMCache has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      public function CheckCSIMCache($aCacheName, $aTimeOut = 60)
                                      {
                                          global $_SERVER;
                                  
                                          if ($aCacheName == 'auto') {
                                  Severity: Minor
                                  Found in src/graph/Graph.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

                                  Function StrokeBands has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      public function StrokeBands($aDepth, $aCSIM)
                                      {
                                          // Stroke bands
                                          if ($this->bands != null && !$aCSIM) {
                                              for ($i = 0; $i < safe_count($this->bands); ++$i) {
                                  Severity: Minor
                                  Found in src/graph/Graph.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 LoadBkgImage has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public static function LoadBkgImage($aImgFormat = '', $aFile = '', $aImgStr = '')
                                      {
                                          if ($aImgStr != '') {
                                              return Image::CreateFromString($aImgStr);
                                          }
                                  Severity: Minor
                                  Found in src/graph/Graph.php - About 1 hr to fix

                                    The class Graph has 120 fields. Consider redesigning Graph to keep the number of fields under 15.
                                    Open

                                    class Graph
                                    {
                                        public $gDateLocale;
                                        public $gJpgDateLocale;
                                        public $cache; // Cache object (singleton)
                                    Severity: Minor
                                    Found in src/graph/Graph.php by phpmd

                                    TooManyFields

                                    Since: 0.1

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

                                    Example

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

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

                                    Method GetPlotsYMinMax has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function GetPlotsYMinMax($bPlots)
                                        {
                                            $aPlots = array_filter($bPlots, function ($plot) {
                                                //\Kint::dump($plot, $plot instanceof Plot\Plot);
                                                return $plot instanceof Plot\Plot;
                                    Severity: Minor
                                    Found in src/graph/Graph.php - About 1 hr to fix

                                      Method GetXMinMax has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function GetXMinMax()
                                          {
                                              list($min, $ymin) = $this->plots[0]->Min();
                                              list($max, $ymax) = $this->plots[0]->Max();
                                      
                                      
                                      Severity: Minor
                                      Found in src/graph/Graph.php - About 1 hr to fix

                                        Method doAutoScaleYAxis has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function doAutoScaleYAxis()
                                            {
                                                //Check if we should autoscale y-axis
                                                if (!$this->yscale->IsSpecified() && safe_count($this->plots) > 0) {
                                                    list($min, $max) = $this->GetPlotsYMinMax($this->plots);
                                        Severity: Minor
                                        Found in src/graph/Graph.php - About 1 hr to fix

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

                                              public function DisplayClientSideaImageMapAreas()
                                              {
                                                  // Debug stuff - display the outline of the image map areas
                                                  $csim = '';
                                                  foreach ($this->plots as $p) {
                                          Severity: Minor
                                          Found in src/graph/Graph.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

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

                                              public function GetPlotsYMinMax($bPlots)
                                              {
                                                  $aPlots = array_filter($bPlots, function ($plot) {
                                                      //\Kint::dump($plot, $plot instanceof Plot\Plot);
                                                      return $plot instanceof Plot\Plot;
                                          Severity: Minor
                                          Found in src/graph/Graph.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 SetTickDensity has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                              public function SetTickDensity($aYDensity = TICKD_NORMAL, $aXDensity = TICKD_NORMAL)
                                              {
                                                  $this->xtick_factor = 30;
                                                  $this->ytick_factor = 25;
                                                  switch ($aYDensity) {
                                          Severity: Minor
                                          Found in src/graph/Graph.php - About 1 hr to fix

                                            Consider simplifying this complex logical expression.
                                            Open

                                                    if (($this->yaxis->pos == $this->xscale->GetMinVal() || (is_string($this->yaxis->pos) && $this->yaxis->pos == 'min')) &&
                                                        !is_numeric($this->xaxis->pos) && $this->yscale->GetMinVal() < 0 &&
                                                        substr($this->axtype, 0, 4) != 'text' && $this->xaxis->pos != 'min') {
                                                        //$this->yscale->ticks->SupressZeroLabel(false);
                                                        $this->xscale->ticks->SupressFirst();
                                            Severity: Critical
                                            Found in src/graph/Graph.php - About 1 hr to fix

                                              Function GetTextsYMinMax has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                                              Open

                                                  public function GetTextsYMinMax($aY2 = false)
                                                  {
                                                      if ($aY2) {
                                                          $txts = $this->y2texts;
                                                      } else {
                                              Severity: Minor
                                              Found in src/graph/Graph.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

                                              Function GetLinesYMinMax has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                                              Open

                                                  public function GetLinesYMinMax($aLines)
                                                  {
                                                      if (is_null($aLines)) {
                                                          return false;
                                                      }
                                              Severity: Minor
                                              Found in src/graph/Graph.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

                                              Function GetTextsXMinMax has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                                              Open

                                                  public function GetTextsXMinMax($aY2 = false)
                                                  {
                                                      if ($aY2) {
                                                          $txts = $this->y2texts;
                                                      } else {
                                              Severity: Minor
                                              Found in src/graph/Graph.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 CheckCSIMCache has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                                  public function CheckCSIMCache($aCacheName, $aTimeOut = 60)
                                                  {
                                                      global $_SERVER;
                                              
                                                      if ($aCacheName == 'auto') {
                                              Severity: Minor
                                              Found in src/graph/Graph.php - About 1 hr to fix

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

                                                class Graph
                                                {
                                                    public $gDateLocale;
                                                    public $gJpgDateLocale;
                                                    public $cache; // Cache object (singleton)
                                                Severity: Minor
                                                Found in src/graph/Graph.php by phpmd

                                                ExcessivePublicCount

                                                Since: 0.1

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

                                                Example

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

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

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

                                                    public function StrokeBackgroundGrad()
                                                    {
                                                        if ($this->bkg_gradtype < 0) {
                                                            return;
                                                        }
                                                Severity: Minor
                                                Found in src/graph/Graph.php - About 1 hr to fix

                                                  Method Add has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                      public function Add($aPlot)
                                                      {
                                                          if ($aPlot == null) {
                                                              Util\JpGraphError::RaiseL(25010); //("Graph::Add() You tried to add a null plot to the graph.");
                                                          }
                                                  Severity: Minor
                                                  Found in src/graph/Graph.php - About 1 hr to fix

                                                    Function SetTickDensity has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                                    Open

                                                        public function SetTickDensity($aYDensity = TICKD_NORMAL, $aXDensity = TICKD_NORMAL)
                                                        {
                                                            $this->xtick_factor = 30;
                                                            $this->ytick_factor = 25;
                                                            switch ($aYDensity) {
                                                    Severity: Minor
                                                    Found in src/graph/Graph.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

                                                    Function GetLinesXMinMax has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                                    Open

                                                        public function GetLinesXMinMax($aLines)
                                                        {
                                                            $n = safe_count($aLines);
                                                            if ($n == 0) {
                                                                return false;
                                                    Severity: Minor
                                                    Found in src/graph/Graph.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

                                                    Function __construct has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                                    Open

                                                        public function __construct($aWidth = 300, $aHeight = 200, $aCachedName = '', $aTimeout = 0, $aInline = true)
                                                        {
                                                            $this->gDateLocale    = new Util\DateLocale();
                                                            $this->gJpgDateLocale = new Util\DateLocale();
                                                            if (!is_numeric($aWidth) || !is_numeric($aHeight)) {
                                                    Severity: Minor
                                                    Found in src/graph/Graph.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 Set3DPerspective has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                                    Open

                                                        public function Set3DPerspective($aDir = 1, $aHorizon = 100, $aSkewDist = 120, $aQuality = false, $aFillColor = '#FFFFFF', $aBorder = false, $aMinSize = true, $aHorizonPos = 0.5)
                                                    Severity: Major
                                                    Found in src/graph/Graph.php - About 1 hr to fix

                                                      Function AddY2 has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                                      Open

                                                          public function AddY2($aPlot)
                                                          {
                                                              if ($aPlot == null) {
                                                                  Util\JpGraphError::RaiseL(25011); //("Graph::AddY2() You tried to add a null plot to the graph.");
                                                              }
                                                      Severity: Minor
                                                      Found in src/graph/Graph.php - About 55 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 SetTitleBackground has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                      Open

                                                          public function SetTitleBackground($aBackColor = 'gray', $aStyle = TITLEBKG_STYLE1, $aFrameStyle = TITLEBKG_FRAME_NONE, $aFrameColor = 'black', $aFrameWeight = 1, $aBevelHeight = 3, $aEnable = true)
                                                      Severity: Major
                                                      Found in src/graph/Graph.php - About 50 mins to fix

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

                                                            public function AddY($aN, $aPlot)
                                                            {
                                                                if ($aPlot == null) {
                                                                    Util\JpGraphError::RaiseL(25012); //("Graph::AddYN() You tried to add a null plot to the graph.");
                                                                }
                                                        Severity: Minor
                                                        Found in src/graph/Graph.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 SetFrameBevel has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                        Open

                                                            public function SetFrameBevel($aDepth = 3, $aBorder = false, $aBorderColor = 'black', $aColor1 = 'white@0.4', $aColor2 = 'darkgray@0.4', $aFlg = true)
                                                        Severity: Minor
                                                        Found in src/graph/Graph.php - About 45 mins to fix

                                                          Avoid deeply nested control flow statements.
                                                          Open

                                                                                  if ($this->ynscale[$i]->ticks->label_formatstr == '' && $this->ynscale[$i]->ticks->label_dateformatstr == '') {
                                                                                      $this->ynscale[$i]->ticks->precision = abs(floor(log10(abs(floor($min) - $min)))) + 1;
                                                                                  }
                                                          Severity: Major
                                                          Found in src/graph/Graph.php - About 45 mins to fix

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

                                                                public function __construct($aWidth = 300, $aHeight = 200, $aCachedName = '', $aTimeout = 0, $aInline = true)
                                                            Severity: Minor
                                                            Found in src/graph/Graph.php - About 35 mins to fix

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

                                                                  public function SetScale($aAxisType, $aYMin = 1, $aYMax = 1, $aXMin = 1, $aXMax = 1)
                                                              Severity: Minor
                                                              Found in src/graph/Graph.php - About 35 mins to fix

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

                                                                    public function SetAxisLabelBackground($aType, $aXFColor = 'lightgray', $aXColor = 'black', $aYFColor = 'lightgray', $aYColor = 'black')
                                                                Severity: Minor
                                                                Found in src/graph/Graph.php - About 35 mins to fix

                                                                  Function StrokeTexts has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                  Open

                                                                      public function StrokeTexts()
                                                                      {
                                                                          // Stroke any user added text objects
                                                                          if ($this->texts != null) {
                                                                              for ($i = 0; $i < safe_count($this->texts); ++$i) {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php - About 35 mins to fix

                                                                  Cognitive Complexity

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

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

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

                                                                  Further reading

                                                                  Function StrokeBackgroundGrad has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                  Open

                                                                      public function StrokeBackgroundGrad()
                                                                      {
                                                                          if ($this->bkg_gradtype < 0) {
                                                                              return;
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php - About 35 mins to fix

                                                                  Cognitive Complexity

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

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

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

                                                                  Further reading

                                                                  Function hasLinePlotAndBarPlot has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                                                  Open

                                                                      public function hasLinePlotAndBarPlot()
                                                                      {
                                                                          $has_line = false;
                                                                          $has_bar  = false;
                                                                  
                                                                  
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php - About 35 mins to fix

                                                                  Cognitive Complexity

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

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

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

                                                                  Further reading

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

                                                                      public function InitScaleConstants()
                                                                      {
                                                                          // Setup scale constants
                                                                          if ($this->yscale) {
                                                                              $this->yscale->InitConstants($this->img);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php - About 25 mins to fix

                                                                  Cognitive Complexity

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

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

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

                                                                  Further reading

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

                                                                      public function SetBackgroundImage($aFileName, $aBgType = BGIMG_FILLPLOT, $aImgFormat = 'auto')
                                                                      {
                                                                          // Get extension to determine image type
                                                                          if ($aImgFormat == 'auto') {
                                                                              $e = explode('.', $aFileName);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php - About 25 mins to fix

                                                                  Cognitive Complexity

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

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

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

                                                                  Further reading

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

                                                                      public function StrokePlotArea()
                                                                      {
                                                                          // Note: To be consistent we really should take a possible shadow
                                                                          // into account. However, that causes some problem for the LinearScale class
                                                                          // since in the current design it does not have any links to class Graph which
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php - About 25 mins to fix

                                                                  Cognitive Complexity

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

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

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

                                                                  Further reading

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

                                                                  class Graph
                                                                  {
                                                                      public $gDateLocale;
                                                                      public $gJpgDateLocale;
                                                                      public $cache; // Cache object (singleton)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  The method SetScale() has an NPath complexity of 216. The configured NPath complexity threshold is 200.
                                                                  Open

                                                                      public function SetScale($aAxisType, $aYMin = 1, $aYMax = 1, $aXMin = 1, $aXMax = 1)
                                                                      {
                                                                          $this->axtype = $aAxisType;
                                                                  
                                                                          if ($aYMax < $aYMin || $aXMax < $aXMin) {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AdjustMarginsForTitles() has an NPath complexity of 360. The configured NPath complexity threshold is 200.
                                                                  Open

                                                                      public function AdjustMarginsForTitles()
                                                                      {
                                                                          $totrequired =
                                                                              ($this->title->t != ''
                                                                              ? $this->title->GetTextHeight($this->img) + $this->title->margin + 5 * SUPERSAMPLING_SCALE
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeTitles() has an NPath complexity of 2700125. The configured NPath complexity threshold is 200.
                                                                  Open

                                                                      public function StrokeTitles()
                                                                      {
                                                                          $margin = 3;
                                                                  
                                                                          if ($this->titlebackground) {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeFrameBackground() has 145 lines of code. Current threshold is set to 100. Avoid really long methods.
                                                                  Open

                                                                      public function StrokeFrameBackground()
                                                                      {
                                                                          if ($this->background_image != '' && $this->background_cflag != '') {
                                                                              Util\JpGraphError::RaiseL(25040); //('It is not possible to specify both a background image and a background country flag.');
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  The method GetCSIMareas() has an NPath complexity of 3456. The configured NPath complexity threshold is 200.
                                                                  Open

                                                                      public function GetCSIMareas()
                                                                      {
                                                                          if (!$this->iHasStroked) {
                                                                              $this->Stroke(_CSIM_SPECIALFILE);
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 Stroke() has an NPath complexity of 510818254848. The configured NPath complexity threshold is 200.
                                                                  Open

                                                                      public function Stroke($aStrokeFileName = '')
                                                                      {
                                                                          // Fist make a sanity check that user has specified a scale
                                                                          if (empty($this->yscale)) {
                                                                              Util\JpGraphError::RaiseL(25031); //('You must specify what scale to use with a call to Graph::SetScale().');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 doAutoscaleXAxis() has an NPath complexity of 6520. The configured NPath complexity threshold is 200.
                                                                  Open

                                                                      public function doAutoscaleXAxis()
                                                                      {
                                                                          $aPlots = array_filter($this->plots, function ($plot) {
                                                                              //\Kint::dump($plot, $plot instanceof Plot\Plot);
                                                                              return $plot instanceof Plot\Plot;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeTitles() has 168 lines of code. Current threshold is set to 100. Avoid really long methods.
                                                                  Open

                                                                      public function StrokeTitles()
                                                                      {
                                                                          $margin = 3;
                                                                  
                                                                          if ($this->titlebackground) {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

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

                                                                      public function doAutoscaleXAxis()
                                                                      {
                                                                          $aPlots = array_filter($this->plots, function ($plot) {
                                                                              //\Kint::dump($plot, $plot instanceof Plot\Plot);
                                                                              return $plot instanceof Plot\Plot;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  The method StrokeAxisLabelBackground() has an NPath complexity of 512. The configured NPath complexity threshold is 200.
                                                                  Open

                                                                      public function StrokeAxisLabelBackground()
                                                                      {
                                                                          // Types
                                                                          // 0 = No background
                                                                          // 1 = Only X-labels, length of axis
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 Stroke() has 286 lines of code. Current threshold is set to 100. Avoid really long methods.
                                                                  Open

                                                                      public function Stroke($aStrokeFileName = '')
                                                                      {
                                                                          // Fist make a sanity check that user has specified a scale
                                                                          if (empty($this->yscale)) {
                                                                              Util\JpGraphError::RaiseL(25031); //('You must specify what scale to use with a call to Graph::SetScale().');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  The method GetPlotsYMinMax() has an NPath complexity of 9792. The configured NPath complexity threshold is 200.
                                                                  Open

                                                                      public function GetPlotsYMinMax($bPlots)
                                                                      {
                                                                          $aPlots = array_filter($bPlots, function ($plot) {
                                                                              //\Kint::dump($plot, $plot instanceof Plot\Plot);
                                                                              return $plot instanceof Plot\Plot;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 LoadBkgImage() has an NPath complexity of 2112. The configured NPath complexity threshold is 200.
                                                                  Open

                                                                      public static function LoadBkgImage($aImgFormat = '', $aFile = '', $aImgStr = '')
                                                                      {
                                                                          if ($aImgStr != '') {
                                                                              return Image::CreateFromString($aImgStr);
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 __construct() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public function __construct($aWidth = 300, $aHeight = 200, $aCachedName = '', $aTimeout = 0, $aInline = true)
                                                                      {
                                                                          $this->gDateLocale    = new Util\DateLocale();
                                                                          $this->gJpgDateLocale = new Util\DateLocale();
                                                                          if (!is_numeric($aWidth) || !is_numeric($aHeight)) {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 Add() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public function Add($aPlot)
                                                                      {
                                                                          if ($aPlot == null) {
                                                                              Util\JpGraphError::RaiseL(25010); //("Graph::Add() You tried to add a null plot to the graph.");
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 SetScale() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public function SetScale($aAxisType, $aYMin = 1, $aYMax = 1, $aXMin = 1, $aXMax = 1)
                                                                      {
                                                                          $this->axtype = $aAxisType;
                                                                  
                                                                          if ($aYMax < $aYMin || $aXMax < $aXMin) {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 GetCSIMareas() has a Cyclomatic Complexity of 15. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public function GetCSIMareas()
                                                                      {
                                                                          if (!$this->iHasStroked) {
                                                                              $this->Stroke(_CSIM_SPECIALFILE);
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 doAutoscaleXAxis() has a Cyclomatic Complexity of 30. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public function doAutoscaleXAxis()
                                                                      {
                                                                          $aPlots = array_filter($this->plots, function ($plot) {
                                                                              //\Kint::dump($plot, $plot instanceof Plot\Plot);
                                                                              return $plot instanceof Plot\Plot;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 58. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public function Stroke($aStrokeFileName = '')
                                                                      {
                                                                          // Fist make a sanity check that user has specified a scale
                                                                          if (empty($this->yscale)) {
                                                                              Util\JpGraphError::RaiseL(25031); //('You must specify what scale to use with a call to Graph::SetScale().');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AdjustMarginsForTitles() has a Cyclomatic Complexity of 13. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public function AdjustMarginsForTitles()
                                                                      {
                                                                          $totrequired =
                                                                              ($this->title->t != ''
                                                                              ? $this->title->GetTextHeight($this->img) + $this->title->margin + 5 * SUPERSAMPLING_SCALE
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 doAutoScaleYnAxis() has a Cyclomatic Complexity of 22. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public function doAutoScaleYnAxis()
                                                                      {
                                                                          if ($this->y2scale != null) {
                                                                              if (!$this->y2scale->IsSpecified() && safe_count($this->y2plots) > 0) {
                                                                                  list($min, $max) = $this->GetPlotsYMinMax($this->y2plots);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeAxisLabelBackground() has a Cyclomatic Complexity of 20. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public function StrokeAxisLabelBackground()
                                                                      {
                                                                          // Types
                                                                          // 0 = No background
                                                                          // 1 = Only X-labels, length of axis
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeFrameBackground() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public function StrokeFrameBackground()
                                                                      {
                                                                          if ($this->background_image != '' && $this->background_cflag != '') {
                                                                              Util\JpGraphError::RaiseL(25040); //('It is not possible to specify both a background image and a background country flag.');
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeFrame() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public function StrokeFrame()
                                                                      {
                                                                          if (!$this->doframe) {
                                                                              return;
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeTitles() has a Cyclomatic Complexity of 34. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public function StrokeTitles()
                                                                      {
                                                                          $margin = 3;
                                                                  
                                                                          if ($this->titlebackground) {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 LoadBkgImage() has a Cyclomatic Complexity of 19. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public static function LoadBkgImage($aImgFormat = '', $aFile = '', $aImgStr = '')
                                                                      {
                                                                          if ($aImgStr != '') {
                                                                              return Image::CreateFromString($aImgStr);
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 doAutoScaleYAxis() has a Cyclomatic Complexity of 11. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public function doAutoScaleYAxis()
                                                                      {
                                                                          //Check if we should autoscale y-axis
                                                                          if (!$this->yscale->IsSpecified() && safe_count($this->plots) > 0) {
                                                                              list($min, $max) = $this->GetPlotsYMinMax($this->plots);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 GetPlotsYMinMax() has a Cyclomatic Complexity of 18. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public function GetPlotsYMinMax($bPlots)
                                                                      {
                                                                          $aPlots = array_filter($bPlots, function ($plot) {
                                                                              //\Kint::dump($plot, $plot instanceof Plot\Plot);
                                                                              return $plot instanceof Plot\Plot;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 GetXMinMax() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public function GetXMinMax()
                                                                      {
                                                                          list($min, $ymin) = $this->plots[0]->Min();
                                                                          list($max, $ymax) = $this->plots[0]->Max();
                                                                  
                                                                  
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeAxis() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public function StrokeAxis($aStrokeLabels = true)
                                                                      {
                                                                          if ($aStrokeLabels) {
                                                                              $this->StrokeAxisLabelBackground();
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 doPrestrokeAdjustments() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public function doPrestrokeAdjustments()
                                                                      {
                                                                          // Do any pre-stroke adjustment that is needed by the different plot types
                                                                          // (i.e bar plots want's to add an offset to the x-labels etc)
                                                                          for ($i = 0; $i < safe_count($this->plots); ++$i) {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeBands() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
                                                                  Open

                                                                      public function StrokeBands($aDepth, $aCSIM)
                                                                      {
                                                                          // Stroke bands
                                                                          if ($this->bands != null && !$aCSIM) {
                                                                              for ($i = 0; $i < safe_count($this->bands); ++$i) {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 '$densy' which will lead to PHP notices.
                                                                  Open

                                                                                  Util\JpGraphError::RaiseL(25025, $densy); //("JpGraph: Unsupported Tick density: $densy");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 '$densx' which will lead to PHP notices.
                                                                  Open

                                                                                  Util\JpGraphError::RaiseL(25025, $densx); //("JpGraph: Unsupported Tick density: $densx");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 class Graph has a coupling between objects value of 26. Consider to reduce the number of dependencies under 13.
                                                                  Open

                                                                  class Graph
                                                                  {
                                                                      public $gDateLocale;
                                                                      public $gJpgDateLocale;
                                                                      public $cache; // Cache object (singleton)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  CouplingBetweenObjects

                                                                  Since: 1.1.0

                                                                  A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability

                                                                  Example

                                                                  class Foo {
                                                                      /**
                                                                       * @var \foo\bar\X
                                                                       */
                                                                      private $x = null;
                                                                  
                                                                      /**
                                                                       * @var \foo\bar\Y
                                                                       */
                                                                      private $y = null;
                                                                  
                                                                      /**
                                                                       * @var \foo\bar\Z
                                                                       */
                                                                      private $z = null;
                                                                  
                                                                      public function setFoo(\Foo $foo) {}
                                                                      public function setBar(\Bar $bar) {}
                                                                      public function setBaz(\Baz $baz) {}
                                                                  
                                                                      /**
                                                                       * @return \SplObjectStorage
                                                                       * @throws \OutOfRangeException
                                                                       * @throws \InvalidArgumentException
                                                                       * @throws \ErrorException
                                                                       */
                                                                      public function process(\Iterator $it) {}
                                                                  
                                                                      // ...
                                                                  }

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

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

                                                                      public function SetY2OrderBack($aBack = true)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  BooleanArgumentFlag

                                                                  Since: 1.4.0

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

                                                                  Example

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

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

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

                                                                      public function AddText($aTxt, $aToY2 = false)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  BooleanArgumentFlag

                                                                  Since: 1.4.0

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

                                                                  Example

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

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

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

                                                                      public function SetFrameBevel($aDepth = 3, $aBorder = false, $aBorderColor = 'black', $aColor1 = 'white@0.4', $aColor2 = 'darkgray@0.4', $aFlg = true)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  BooleanArgumentFlag

                                                                  Since: 1.4.0

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

                                                                  Example

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

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

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

                                                                      public function Set3DPerspective($aDir = 1, $aHorizon = 100, $aSkewDist = 120, $aQuality = false, $aFillColor = '#FFFFFF', $aBorder = false, $aMinSize = true, $aHorizonPos = 0.5)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  BooleanArgumentFlag

                                                                  Since: 1.4.0

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

                                                                  Example

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

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

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

                                                                      public function SetAlphaBlending($aFlg = true)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  BooleanArgumentFlag

                                                                  Since: 1.4.0

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

                                                                  Example

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

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

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

                                                                      public function SetFrameBevel($aDepth = 3, $aBorder = false, $aBorderColor = 'black', $aColor1 = 'white@0.4', $aColor2 = 'darkgray@0.4', $aFlg = true)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  BooleanArgumentFlag

                                                                  Since: 1.4.0

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

                                                                  Example

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

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

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

                                                                      public function __construct($aWidth = 300, $aHeight = 200, $aCachedName = '', $aTimeout = 0, $aInline = true)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  BooleanArgumentFlag

                                                                  Since: 1.4.0

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

                                                                  Example

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

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

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

                                                                      public function SetBox($aDrawPlotFrame = true, $aPlotFrameColor = [0, 0, 0], $aPlotFrameWeight = 1)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  BooleanArgumentFlag

                                                                  Since: 1.4.0

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

                                                                  Example

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

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

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

                                                                      public function SetShadow($aShowShadow = true, $aShadowWidth = 5, $aShadowColor = 'darkgray')
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  BooleanArgumentFlag

                                                                  Since: 1.4.0

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

                                                                  Example

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

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

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

                                                                      public function AddBand($aBand, $aToY2 = false)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  BooleanArgumentFlag

                                                                  Since: 1.4.0

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

                                                                  Example

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

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

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

                                                                      public function Set3DPerspective($aDir = 1, $aHorizon = 100, $aSkewDist = 120, $aQuality = false, $aFillColor = '#FFFFFF', $aBorder = false, $aMinSize = true, $aHorizonPos = 0.5)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  BooleanArgumentFlag

                                                                  Since: 1.4.0

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

                                                                  Example

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

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

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

                                                                      public function SetClipping($aFlg = true)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  BooleanArgumentFlag

                                                                  Since: 1.4.0

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

                                                                  Example

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

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

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

                                                                      public function AddLine($aLine, $aToY2 = false)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  BooleanArgumentFlag

                                                                  Since: 1.4.0

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

                                                                  Example

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

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

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

                                                                      public function SetFrame($aDrawImgFrame = true, $aImgFrameColor = [0, 0, 0], $aImgFrameWeight = 1)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  BooleanArgumentFlag

                                                                  Since: 1.4.0

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

                                                                  Example

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

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

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

                                                                      public function Set3DPerspective($aDir = 1, $aHorizon = 100, $aSkewDist = 120, $aQuality = false, $aFillColor = '#FFFFFF', $aBorder = false, $aMinSize = true, $aHorizonPos = 0.5)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  BooleanArgumentFlag

                                                                  Since: 1.4.0

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

                                                                  Example

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

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

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

                                                                      public function GetTextsXMinMax($aY2 = false)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  BooleanArgumentFlag

                                                                  Since: 1.4.0

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

                                                                  Example

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

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

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

                                                                      public function SetTitleBackground($aBackColor = 'gray', $aStyle = TITLEBKG_STYLE1, $aFrameStyle = TITLEBKG_FRAME_NONE, $aFrameColor = 'black', $aFrameWeight = 1, $aBevelHeight = 3, $aEnable = true)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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

                                                                  Remove error control operator '@' on line 937.
                                                                  Open

                                                                      public function CheckCSIMCache($aCacheName, $aTimeOut = 60)
                                                                      {
                                                                          global $_SERVER;
                                                                  
                                                                          if ($aCacheName == 'auto') {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  ErrorControlOperator

                                                                  Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                                                  Example

                                                                  function foo($filePath) {
                                                                      $file = @fopen($filPath); // hides exceptions
                                                                      $key = @$array[$notExistingKey]; // assigns null to $key
                                                                  }

                                                                  Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

                                                                  Remove error control operator '@' on line 939.
                                                                  Open

                                                                      public function CheckCSIMCache($aCacheName, $aTimeOut = 60)
                                                                      {
                                                                          global $_SERVER;
                                                                  
                                                                          if ($aCacheName == 'auto') {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  ErrorControlOperator

                                                                  Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                                                  Example

                                                                  function foo($filePath) {
                                                                      $file = @fopen($filPath); // hides exceptions
                                                                      $key = @$array[$notExistingKey]; // assigns null to $key
                                                                  }

                                                                  Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

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

                                                                      public static function GetURLArguments($aAddRecursiveBlocker = false)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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

                                                                  Remove error control operator '@' on line 1045.
                                                                  Open

                                                                      public function StrokeCSIM($aScriptName = 'auto', $aCSIMName = '', $aBorder = 0)
                                                                      {
                                                                          if ($aCSIMName == '') {
                                                                              // create a random map name
                                                                              srand((int) (microtime() * 1000000));
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  ErrorControlOperator

                                                                  Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                                                  Example

                                                                  function foo($filePath) {
                                                                      $file = @fopen($filPath); // hides exceptions
                                                                      $key = @$array[$notExistingKey]; // assigns null to $key
                                                                  }

                                                                  Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

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

                                                                      public function GetTextsYMinMax($aY2 = false)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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

                                                                  Remove error control operator '@' on line 936.
                                                                  Open

                                                                      public function CheckCSIMCache($aCacheName, $aTimeOut = 60)
                                                                      {
                                                                          global $_SERVER;
                                                                  
                                                                          if ($aCacheName == 'auto') {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  ErrorControlOperator

                                                                  Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                                                  Example

                                                                  function foo($filePath) {
                                                                      $file = @fopen($filPath); // hides exceptions
                                                                      $key = @$array[$notExistingKey]; // assigns null to $key
                                                                  }

                                                                  Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

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

                                                                      public function SetSupersampling($do = false, $scale = 2)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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

                                                                  Remove error control operator '@' on line 1065.
                                                                  Open

                                                                      public function StrokeCSIMImage()
                                                                      {
                                                                          if (@$_GET[_CSIM_DISPLAY] == 1) {
                                                                              $this->Stroke();
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  ErrorControlOperator

                                                                  Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                                                  Example

                                                                  function foo($filePath) {
                                                                      $file = @fopen($filPath); // hides exceptions
                                                                      $key = @$array[$notExistingKey]; // assigns null to $key
                                                                  }

                                                                  Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

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

                                                                      public function StrokeAxis($aStrokeLabels = true)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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

                                                                  Remove error control operator '@' on line 2133.
                                                                  Open

                                                                      public static function LoadBkgImage($aImgFormat = '', $aFile = '', $aImgStr = '')
                                                                      {
                                                                          if ($aImgStr != '') {
                                                                              return Image::CreateFromString($aImgStr);
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  ErrorControlOperator

                                                                  Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

                                                                  Example

                                                                  function foo($filePath) {
                                                                      $file = @fopen($filPath); // hides exceptions
                                                                      $key = @$array[$notExistingKey]; // assigns null to $key
                                                                  }

                                                                  Source http://phpmd.org/rules/cleancode.html#errorcontroloperator

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

                                                                              Util\JpGraphError::RaiseL(25013); //('You can only add standard plots to multiple Y-axis');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'AddY2'.
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25011); //("Graph::AddY2() You tried to add a null plot to the graph.");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AddY uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              $this->ynplots[$aN][] = $aPlot;
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'AddText'.
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25014); //("Graph::AddText() You tried to add a null text to the graph.");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AddLine uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              if (is_array($aLine)) {
                                                                                  for ($i = 0; $i < safe_count($aLine); ++$i) {
                                                                                      //$this->lines[]=$aLine[$i];
                                                                                      $this->plots[] = $aLine[$i];
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'SetBackgroundImage'.
                                                                  Open

                                                                                  Util\JpGraphError::RaiseL(25018, $aFileName); //('Incorrect file name for Graph::SetBackgroundImage() : '.$aFileName.' Must have a valid image extension (jpg,gif,png) when using autodetection of image type');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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\Helper' in method '__construct'.
                                                                  Open

                                                                              $aCachedName = Util\Helper::GenImgName();
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AddText uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              if (is_array($aTxt)) {
                                                                                  for ($i = 0; $i < safe_count($aTxt); ++$i) {
                                                                                      $this->texts[] = $aTxt[$i];
                                                                                  }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'Set90AndMargin'.
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25009); //('You must specify what scale to use with a call to Graph::SetScale()');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AddY2 uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              $this->y2plots[] = $aPlot;
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AddLine uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                              } else {
                                                                                  //$this->y2lines[] = $aLine;
                                                                                  $this->y2plots[] = $aLine;
                                                                              }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'AddBand'.
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25016); //(" Graph::AddBand() You tried to add a null band to the graph.");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AddBand uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                              } else {
                                                                                  $this->y2bands[] = $aBand;
                                                                              }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 Add uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              if (is_array($aPlot)) {
                                                                                  $this->plots = array_merge($this->plots, $aPlot);
                                                                              } else {
                                                                                  $this->plots[] = $aPlot;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AddIcon uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              $this->iIcons[] = $aIcon;
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AddText uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                              } else {
                                                                                  $this->texts[] = $aTxt;
                                                                              }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'AddY'.
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25012); //("Graph::AddYN() You tried to add a null plot to the graph.");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AddY uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

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

                                                                              } else {
                                                                                  $this->plots[] = $aPlot;
                                                                              }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AddText uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                              } else {
                                                                                  $this->y2texts[] = $aTxt;
                                                                              }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'SetScale'.
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25021, $aAxisType); //("Unknown scale specification for Y-scale. ($aAxisType)");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AddTable uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              $this->iTables[] = $aTable;
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'SetY2Scale'.
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25023, $aAxisType); //("JpGraph: Unsupported Y2 axis type: $aAxisType\nMust be one of (lin,log,int)");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'Add'.
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25010); //("Graph::Add() You tried to add a null plot to the graph.");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'AddLine'.
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25015); //("Graph::AddLine() You tried to add a null line to the graph.");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 SetY2Scale uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              Util\JpGraphError::RaiseL(25023, $aAxisType); //("JpGraph: Unsupported Y2 axis type: $aAxisType\nMust be one of (lin,log,int)");
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AddBand uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              if (is_array($aBand)) {
                                                                                  for ($i = 0; $i < safe_count($aBand); ++$i) {
                                                                                      $this->bands[] = $aBand[$i];
                                                                                  }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'SetBackgroundImage'.
                                                                  Open

                                                                                  Util\JpGraphError::RaiseL(25019, $aImgFormat); //('Unknown file extension ($aImgFormat) in Graph::SetBackgroundImage() for filename: '.$aFileName);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 Add uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              $cl = $aPlot;
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'SetScale'.
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25020); //('Graph::SetScale(): Specified Max value must be larger than the specified Min value.');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 SetScale uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              Util\JpGraphError::RaiseL(25021, $aAxisType); //("Unknown scale specification for Y-scale. ($aAxisType)");
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 SetScale uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              Util\JpGraphError::RaiseL(25022, $aAxisType); //(" Unknown scale specification for X-scale. ($aAxisType)");
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 '__construct'.
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25008); //('Image width/height argument in Graph::Graph() must be numeric');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AddY2 uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

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

                                                                              } else {
                                                                                  $this->bands[] = $aBand;
                                                                              }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'SetScale'.
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25022, $aAxisType); //(" Unknown scale specification for X-scale. ($aAxisType)");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AddLine uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                              } else {
                                                                                  //$this->lines[] = $aLine;
                                                                                  $this->plots[] = $aLine;
                                                                              }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'CheckCSIMCache'.
                                                                  Open

                                                                                      Util\JpGraphError::RaiseL(25027, $basecsim); //(" Can't open cached CSIM \"$basecsim\" for reading.");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 GetTextsYMinMax uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                                  } else {
                                                                                      $min = min($min, $txts[$i]->iScalePosY);
                                                                                      $max = max($max, $txts[$i]->iScalePosY);
                                                                                  }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 doAutoscaleXAxis uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                              } else {
                                                                                  list($min, $max) = $this->GetXMinMax();
                                                                  
                                                                                  $lres = $this->GetLinesXMinMax($this->lines);
                                                                                  if ($lres) {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 {
                                                                                  Util\JpGraphError::RaiseL(25035, $this->img->a); //('You have enabled clipping. Cliping is only supported for graphs at 0 or 90 degrees rotation. Please adjust you current angle (='.$this->img->a.' degrees) or disable clipping.');
                                                                              }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 SetYScale uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              Util\JpGraphError::RaiseL(25024, $aAxisType); //("JpGraph: Unsupported Y axis type: $aAxisType\nMust be one of (lin,log,int)");
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 GetURLArguments uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                              } else {
                                                                                  $urlarg .= '&amp;' . $key . '=' . urlencode($value);
                                                                              }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'StrokeCSIM'.
                                                                  Open

                                                                                      Util\JpGraphError::RaiseL(25028, $dir); //('Apache/PHP does not have permission to write to the CSIM cache directory ('.$dir.'). Check permissions.');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 LoadBkgImage uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              $f = 'imagecreatefrom' . $imgtag;
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 assigning values to variables in if clauses and the like (line '939', column '25').
                                                                  Open

                                                                      public function CheckCSIMCache($aCacheName, $aTimeOut = 60)
                                                                      {
                                                                          global $_SERVER;
                                                                  
                                                                          if ($aCacheName == 'auto') {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  IfStatementAssignment

                                                                  Since: 2.7.0

                                                                  Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

                                                                  Example

                                                                  class Foo
                                                                  {
                                                                      public function bar($flag)
                                                                      {
                                                                          if ($foo = 'bar') { // possible typo
                                                                              // ...
                                                                          }
                                                                          if ($baz = 0) { // always false
                                                                              // ...
                                                                          }
                                                                      }
                                                                  }

                                                                  Source http://phpmd.org/rules/cleancode.html#ifstatementassignment

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

                                                                                      Util\JpGraphError::RaiseL(25029, $basecsim); //(" Can't write CSIM \"$basecsim\" for writing. Check free space and permissions.");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 GetTextsXMinMax uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                                  } else {
                                                                                      $min = min($min, $txts[$i]->iScalePosX);
                                                                                      $max = max($max, $txts[$i]->iScalePosX);
                                                                                  }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AdjustMarginsForTitles uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              // need more top margin
                                                                              if ($this->img->top_margin < $totrequired) {
                                                                                  $this->SetMargin(
                                                                                      $this->img->raw_left_margin,
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeFrameBackground uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                                  } else {
                                                                                      $this->FillPlotArea();
                                                                                      $this->img->CopyMerge(
                                                                                          $bkgimg,
                                                                                          $this->img->left_margin,
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  ElseExpression

                                                                  Since: 1.4.0

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

                                                                  Example

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

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

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

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

                                                                              } else {
                                                                                  // t==3 || t==5
                                                                                  $xl = $this->frame_weight;
                                                                                  $yu = $this->img->height - $this->img->bottom_margin + 1;
                                                                                  $xr = $this->img->width - 1 - $this->frame_weight;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeFrameBackground uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              return;
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 GetTextsXMinMax uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              $txts = $this->texts;
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'LoadBkgImage'.
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25039, $aFile); //(" Can't read background image: '".$aFile."'");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 GetURLArguments uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                              } else {
                                                                                  $urlarg .= '&amp;' . $key . '=' . urlencode($value);
                                                                              }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'StrokeCSIM'.
                                                                  Open

                                                                                      Util\JpGraphError::RaiseL(25030); //('Missing script name in call to StrokeCSIM(). You must specify the name of the actual image script as the first parameter to StrokeCSIM().');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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(25035, $this->img->a); //('You have enabled clipping. Cliping is only supported for graphs at 0 or 90 degrees rotation. Please adjust you current angle (='.$this->img->a.' degrees) or disable clipping.');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeCSIM uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              $this->Stroke();
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AdjustMarginsForTitles uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                              } else {
                                                                                  $this->img->SetFont(
                                                                                      $this->xaxis->font_family,
                                                                                      $this->xaxis->font_style,
                                                                                      $this->xaxis->font_size
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 {
                                                                                  $this->xscale->off += ceil($this->xscale->scale_factor * $this->text_scale_off * $this->xscale->ticks->minor_step);
                                                                              }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'SetYScale'.
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25024, $aAxisType); //("JpGraph: Unsupported Y axis type: $aAxisType\nMust be one of (lin,log,int)");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'SetTickDensity'.
                                                                  Open

                                                                                  Util\JpGraphError::RaiseL(25025, $densy); //("JpGraph: Unsupported Tick density: $densy");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeAxisLabelBackground uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                                  } else {
                                                                                      $this->img->Line($xr + 1, $yu, $xr + 1, $this->img->top_margin);
                                                                                  }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'StrokeAxis'.
                                                                  Open

                                                                                      Util\JpGraphError::RaiseL(25036, $this->iAxisStyle); //('Unknown AxisStyle() : '.$this->iAxisStyle);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 LoadBkgImage uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

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

                                                                          } else {
                                                                              $this->img->SetLineWeight($this->frame_weight);
                                                                              if ($c) {
                                                                                  $this->img->SetColor($this->margin_color);
                                                                                  $this->img->FilledRectangle(0, 0, $this->img->width - 1, $this->img->height - 1);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'SetTickDensity'.
                                                                  Open

                                                                                  Util\JpGraphError::RaiseL(25025, $densx); //("JpGraph: Unsupported Tick density: $densx");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 CheckCSIMCache uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                                  } else {
                                                                                      if ($fh = @fopen($basecsim, 'r')) {
                                                                                          fpassthru($fh);
                                                                  
                                                                                          return true;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokePlotArea uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              $aa = $this->img->SetAngle(0);
                                                                              $this->StrokeFrame();
                                                                              $aa = $this->img->SetAngle($aa);
                                                                              $this->StrokeBackgroundGrad();
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  ElseExpression

                                                                  Since: 1.4.0

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

                                                                  Example

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

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

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

                                                                              Util\JpGraphError::RaiseL(25034); //("<strong>JpGraph: Can't draw unspecified X-scale.</strong><br>No plots.<br>");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeCSIM uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                                  } else {
                                                                                      Util\JpGraphError::RaiseL(25029, $basecsim); //(" Can't write CSIM \"$basecsim\" for writing. Check free space and permissions.");
                                                                                  }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 GetTextsYMinMax uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              $txts = $this->texts;
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'StrokeFrameBackground'.
                                                                  Open

                                                                                  Util\JpGraphError::RaiseL(25042); //(" Unknown background image layout");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'SetTheme'.
                                                                  Open

                                                                                  Util\JpGraphError::RaiseL(25133); //('Use Graph::SetTheme() after Graph::SetScale().');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeAxisLabelBackground uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                                  } else {
                                                                                      $xl = $this->img->width - $this->img->right_margin;
                                                                                      $this->img->Line($xl, $yu - 1, $xr, $yu - 1);
                                                                                  }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'LoadBkgImage'.
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25038, $aImgFormat, $aFile);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'StrokeFrameBackground'.
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25040); //('It is not possible to specify both a background image and a background country flag.');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeFrame uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

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

                                                                                  } else {
                                                                                      $btotrequired = $this->xaxis->title->GetTextHeight($this->img) + 7;
                                                                                  }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 AdjustMarginsForTitles uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

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

                                                                                      } else {
                                                                                          $max = max($max, $p->numpoints);
                                                                                      }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'LoadBkgImage'.
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25037, $aFile); //('The image format of your background image ('.$aFile.') is not supported in your system configuration. ');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 SetSupersampling uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              define('SUPERSAMPLING_SCALE', 1);
                                                                              //$this->img->scale = 0;
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'StrokeTitles'.
                                                                  Open

                                                                                  Util\JpGraphError::RaiseL(25043); //('Unknown title background style.');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 assigning values to variables in if clauses and the like (line '1045', column '21').
                                                                  Open

                                                                      public function StrokeCSIM($aScriptName = 'auto', $aCSIMName = '', $aBorder = 0)
                                                                      {
                                                                          if ($aCSIMName == '') {
                                                                              // create a random map name
                                                                              srand((int) (microtime() * 1000000));
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  IfStatementAssignment

                                                                  Since: 2.7.0

                                                                  Assignments in if clauses and the like are considered a code smell. Assignments in PHP return the right operand as their result. In many cases, this is an expected behavior, but can lead to many difficult to spot bugs, especially when the right operand could result in zero, null or an empty string and the like.

                                                                  Example

                                                                  class Foo
                                                                  {
                                                                      public function bar($flag)
                                                                      {
                                                                          if ($foo = 'bar') { // possible typo
                                                                              // ...
                                                                          }
                                                                          if ($baz = 0) { // always false
                                                                              // ...
                                                                          }
                                                                      }
                                                                  }

                                                                  Source http://phpmd.org/rules/cleancode.html#ifstatementassignment

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

                                                                              } else {
                                                                                  if ($aScriptName == '') {
                                                                                      Util\JpGraphError::RaiseL(25030); //('Missing script name in call to StrokeCSIM(). You must specify the name of the actual image script as the first parameter to StrokeCSIM().');
                                                                                  }
                                                                                  echo $this->GetHTMLImageMap($aCSIMName) . $this->GetCSIMImgHTML($aCSIMName, $aScriptName, $aBorder);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'doPrestrokeAdjustments'.
                                                                  Open

                                                                                  Util\JpGraphError::RaiseL(25032, $i); //("No plots for Y-axis nbr:$i");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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(25031); //('You must specify what scale to use with a call to Graph::SetScale().');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeAxisLabelBackground uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                              } else {
                                                                                  $xl = $this->frame_weight;
                                                                                  $yu = $this->frame_weight;
                                                                                  $xr = $this->img->left_margin - 1;
                                                                                  $yl = $this->img->height - 1 - $this->frame_weight;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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\Image' in method 'LoadBkgImage'.
                                                                  Open

                                                                              return Image::CreateFromString($aImgStr);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeBackgroundGrad uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              $xl = 0;
                                                                              $yt = 0;
                                                                              $xr = $xl + $this->img->width - 1;
                                                                              $yb = $yt + $this->img->height - 1;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeAxis uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                          } else {
                                                                              $this->xaxis->Stroke($this->yscale, $aStrokeLabels);
                                                                              $this->yaxis->Stroke($this->xscale, $aStrokeLabels);
                                                                          }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeTitles uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                              } else {
                                                                                  Util\JpGraphError::RaiseL(25043); //('Unknown title background style.');
                                                                              }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeTitles uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                              } else {
                                                                                  // Solid fill
                                                                                  $this->img->FilledRectangle($x1, $y1, $x2, $h);
                                                                              }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 StrokeTitles uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                                                                  Open

                                                                                  } else {
                                                                                      $x1 = $y1 = $this->frame_weight;
                                                                                      $x2 = $this->img->width - $this->frame_weight - 1;
                                                                                  }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 'GetPlotsYMinMax'.
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25044); //('Cannot use autoscaling since it is impossible to determine a valid min/max value  of the Y-axis (only null values).');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 __construct() contains an exit expression.
                                                                  Open

                                                                                  exit();
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 '$boxadj'.
                                                                  Open

                                                                          $boxadj = 0; //$this->doframe ? $this->frame_weight : 0 ;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 '$densy'.
                                                                  Open

                                                                                  Util\JpGraphError::RaiseL(25025, $densy); //("JpGraph: Unsupported Tick density: $densy");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 '$aBorder'.
                                                                  Open

                                                                      public function GetCSIMImgHTML($aCSIMName, $aScriptName = 'auto', $aBorder = 0)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 '$ih'.
                                                                  Open

                                                                          $ih = $this->Stroke(_IMG_HANDLER);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 '$timedout'.
                                                                  Open

                                                                              $timedout = false;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 '$cl'.
                                                                  Open

                                                                                      $cl = strtolower(get_class($p));
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 '$adj'.
                                                                  Open

                                                                          $adj    = 0; //$this->doshadow ? $this->shadow_width : 0 ;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 '$densx'.
                                                                  Open

                                                                                  Util\JpGraphError::RaiseL(25025, $densx); //("JpGraph: Unsupported Tick density: $densx");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 '$suffix'.
                                                                  Open

                                                                              $suffix   = strtok('.');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 '$suffix'.
                                                                  Open

                                                                                  $suffix   = strtok('.');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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

                                                                      public function DisplayClientSideaImageMapAreas()
                                                                      {
                                                                          // Debug stuff - display the outline of the image map areas
                                                                          $csim = '';
                                                                          foreach ($this->plots as $p) {
                                                                  Severity: Major
                                                                  Found in src/graph/Graph.php and 1 other location - About 2 days to fix
                                                                  src/graph/PieGraph.php on lines 101..130

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

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

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

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

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

                                                                  Refactorings

                                                                  Further Reading

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

                                                                      public function GetTextsYMinMax($aY2 = false)
                                                                      {
                                                                          if ($aY2) {
                                                                              $txts = $this->y2texts;
                                                                          } else {
                                                                  Severity: Major
                                                                  Found in src/graph/Graph.php and 1 other location - About 7 hrs to fix
                                                                  src/graph/Graph.php on lines 1107..1132

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

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

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

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

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

                                                                  Refactorings

                                                                  Further Reading

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

                                                                      public function GetTextsXMinMax($aY2 = false)
                                                                      {
                                                                          if ($aY2) {
                                                                              $txts = $this->y2texts;
                                                                          } else {
                                                                  Severity: Major
                                                                  Found in src/graph/Graph.php and 1 other location - About 7 hrs to fix
                                                                  src/graph/Graph.php on lines 1080..1105

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

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

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

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

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

                                                                  Refactorings

                                                                  Further Reading

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

                                                                          if (!$this->yscale->IsSpecified() && safe_count($this->plots) > 0) {
                                                                              list($min, $max) = $this->GetPlotsYMinMax($this->plots);
                                                                              $lres            = $this->GetLinesYMinMax($this->lines);
                                                                              if (is_array($lres)) {
                                                                                  list($linmin, $linmax) = $lres;
                                                                  Severity: Major
                                                                  Found in src/graph/Graph.php and 1 other location - About 6 hrs to fix
                                                                  src/graph/Graph.php on lines 1400..1442

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

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

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

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

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

                                                                  Refactorings

                                                                  Further Reading

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

                                                                              if (!$this->y2scale->IsSpecified() && safe_count($this->y2plots) > 0) {
                                                                                  list($min, $max) = $this->GetPlotsYMinMax($this->y2plots);
                                                                  
                                                                                  $lres = $this->GetLinesYMinMax($this->y2lines);
                                                                                  if (is_array($lres)) {
                                                                  Severity: Major
                                                                  Found in src/graph/Graph.php and 1 other location - About 6 hrs to fix
                                                                  src/graph/Graph.php on lines 1488..1534

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

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

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

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

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

                                                                  Refactorings

                                                                  Further Reading

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

                                                                      public function AddText($aTxt, $aToY2 = false)
                                                                      {
                                                                          if ($aTxt == null) {
                                                                              Util\JpGraphError::RaiseL(25014); //("Graph::AddText() You tried to add a null text to the graph.");
                                                                          }
                                                                  Severity: Major
                                                                  Found in src/graph/Graph.php and 2 other locations - About 4 hrs to fix
                                                                  src/graph/Graph.php on lines 489..516
                                                                  src/graph/Graph.php on lines 519..542

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

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

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

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

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

                                                                  Refactorings

                                                                  Further Reading

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

                                                                      public function AddLine($aLine, $aToY2 = false)
                                                                      {
                                                                          if ($aLine == null) {
                                                                              Util\JpGraphError::RaiseL(25015); //("Graph::AddLine() You tried to add a null line to the graph.");
                                                                          }
                                                                  Severity: Major
                                                                  Found in src/graph/Graph.php and 2 other locations - About 4 hrs to fix
                                                                  src/graph/Graph.php on lines 464..486
                                                                  src/graph/Graph.php on lines 519..542

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

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

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

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

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

                                                                  Refactorings

                                                                  Further Reading

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

                                                                      public function AddBand($aBand, $aToY2 = false)
                                                                      {
                                                                          if ($aBand == null) {
                                                                              Util\JpGraphError::RaiseL(25016); //(" Graph::AddBand() You tried to add a null band to the graph.");
                                                                          }
                                                                  Severity: Major
                                                                  Found in src/graph/Graph.php and 2 other locations - About 4 hrs to fix
                                                                  src/graph/Graph.php on lines 464..486
                                                                  src/graph/Graph.php on lines 489..516

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

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

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

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

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

                                                                  Refactorings

                                                                  Further Reading

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

                                                                          if ($this->subsubtitle->halign == 'center') {
                                                                              $this->subsubtitle->Center(0, $this->img->width, $y);
                                                                          } elseif ($this->subsubtitle->halign == 'left') {
                                                                              $this->subsubtitle->SetPos($this->subsubtitle->margin + 2, $y);
                                                                          } elseif ($this->subsubtitle->halign == 'right') {
                                                                  Severity: Major
                                                                  Found in src/graph/Graph.php and 2 other locations - About 2 hrs to fix
                                                                  src/graph/Graph.php on lines 2619..2629
                                                                  src/graph/Graph.php on lines 2634..2645

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

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

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

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

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

                                                                  Refactorings

                                                                  Further Reading

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

                                                                          if ($this->title->halign == 'center') {
                                                                              $this->title->Center(0, $this->img->width, $y);
                                                                          } elseif ($this->title->halign == 'left') {
                                                                              $this->title->SetPos($this->title->margin + 2, $y);
                                                                          } elseif ($this->title->halign == 'right') {
                                                                  Severity: Major
                                                                  Found in src/graph/Graph.php and 2 other locations - About 2 hrs to fix
                                                                  src/graph/Graph.php on lines 2634..2645
                                                                  src/graph/Graph.php on lines 2650..2661

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

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

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

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

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

                                                                  Refactorings

                                                                  Further Reading

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

                                                                          if ($this->subtitle->halign == 'center') {
                                                                              $this->subtitle->Center(0, $this->img->width, $y);
                                                                          } elseif ($this->subtitle->halign == 'left') {
                                                                              $this->subtitle->SetPos($this->subtitle->margin + 2, $y);
                                                                          } elseif ($this->subtitle->halign == 'right') {
                                                                  Severity: Major
                                                                  Found in src/graph/Graph.php and 2 other locations - About 2 hrs to fix
                                                                  src/graph/Graph.php on lines 2619..2629
                                                                  src/graph/Graph.php on lines 2650..2661

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

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

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

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

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

                                                                  Refactorings

                                                                  Further Reading

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

                                                                          if ($aAxisType == 'lin') {
                                                                              $this->y2scale = new LinearScale($aY2Min, $aY2Max);
                                                                          } elseif ($aAxisType == 'int') {
                                                                              $this->y2scale = new LinearScale($aY2Min, $aY2Max);
                                                                              $this->y2scale->SetIntScale();
                                                                  Severity: Major
                                                                  Found in src/graph/Graph.php and 1 other location - About 1 hr to fix
                                                                  src/graph/Graph.php on lines 678..687

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

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

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

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

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

                                                                  Refactorings

                                                                  Further Reading

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

                                                                          if ($yt == 'lin') {
                                                                              $this->yscale = new LinearScale($aYMin, $aYMax);
                                                                          } elseif ($yt == 'int') {
                                                                              $this->yscale = new LinearScale($aYMin, $aYMax);
                                                                              $this->yscale->SetIntScale();
                                                                  Severity: Major
                                                                  Found in src/graph/Graph.php and 1 other location - About 1 hr to fix
                                                                  src/graph/Graph.php on lines 728..737

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

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

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

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

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

                                                                  Refactorings

                                                                  Further Reading

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

                                                                          for ($i = 0; $i < $n; ++$i) {
                                                                              if ($aLines[$i]->direction == VERTICAL) {
                                                                                  $flg = true;
                                                                                  $v   = $aLines[$i]->scaleposition;
                                                                                  if ($min > $v) {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php and 1 other location - About 30 mins to fix
                                                                  src/graph/Graph.php on lines 2753..2765

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

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

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

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

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

                                                                  Refactorings

                                                                  Further Reading

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

                                                                          for ($i = 0; $i < $n; ++$i) {
                                                                              if ($aLines[$i]->direction == HORIZONTAL) {
                                                                                  $flg = true;
                                                                                  $v   = $aLines[$i]->scaleposition;
                                                                                  if ($min > $v) {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php and 1 other location - About 30 mins to fix
                                                                  src/graph/Graph.php on lines 2781..2793

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

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

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

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

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

                                                                  Refactorings

                                                                  Further Reading

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

                                                                          foreach ($_GET as $key => $value) {
                                                                              if (is_array($value)) {
                                                                                  foreach ($value as $k => $v) {
                                                                                      $urlarg .= '&amp;' . $key . '%5B' . $k . '%5D=' . urlencode($v);
                                                                                  }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php and 1 other location - About 30 mins to fix
                                                                  src/graph/Graph.php on lines 977..985

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

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

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

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

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

                                                                  Refactorings

                                                                  Further Reading

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

                                                                          foreach ($_POST as $key => $value) {
                                                                              if (is_array($value)) {
                                                                                  foreach ($value as $k => $v) {
                                                                                      $urlarg .= '&amp;' . $key . '%5B' . $k . '%5D=' . urlencode($v);
                                                                                  }
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php and 1 other location - About 30 mins to fix
                                                                  src/graph/Graph.php on lines 963..971

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

                                                                  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 excessively long variable names like $titlebackground_style. Keep variable name length under 20.
                                                                  Open

                                                                      public $titlebackground_style = 1;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  LongVariable

                                                                  Since: 0.2

                                                                  Detects when a field, formal or local variable is declared with a long name.

                                                                  Example

                                                                  class Something {
                                                                      protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                      public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                          $otherReallyLongName = -5; // VIOLATION - Local
                                                                          for ($interestingIntIndex = 0; // VIOLATION - For
                                                                               $interestingIntIndex < 10;
                                                                               $interestingIntIndex++ ) {
                                                                          }
                                                                      }
                                                                  }

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

                                                                  Avoid excessively long variable names like $titlebackground_framecolor. Keep variable name length under 20.
                                                                  Open

                                                                      public $titlebackground_framecolor;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  LongVariable

                                                                  Since: 0.2

                                                                  Detects when a field, formal or local variable is declared with a long name.

                                                                  Example

                                                                  class Something {
                                                                      protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                      public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                          $otherReallyLongName = -5; // VIOLATION - Local
                                                                          for ($interestingIntIndex = 0; // VIOLATION - For
                                                                               $interestingIntIndex < 10;
                                                                               $interestingIntIndex++ ) {
                                                                          }
                                                                      }
                                                                  }

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

                                                                  Avoid excessively long variable names like $titlebackground_frameweight. Keep variable name length under 20.
                                                                  Open

                                                                      public $titlebackground_frameweight;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  LongVariable

                                                                  Since: 0.2

                                                                  Detects when a field, formal or local variable is declared with a long name.

                                                                  Example

                                                                  class Something {
                                                                      protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                      public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                          $otherReallyLongName = -5; // VIOLATION - Local
                                                                          for ($interestingIntIndex = 0; // VIOLATION - For
                                                                               $interestingIntIndex < 10;
                                                                               $interestingIntIndex++ ) {
                                                                          }
                                                                      }
                                                                  }

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

                                                                  Avoid excessively long variable names like $framebevelbordercolor. Keep variable name length under 20.
                                                                  Open

                                                                      public $framebevelbordercolor;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  LongVariable

                                                                  Since: 0.2

                                                                  Detects when a field, formal or local variable is declared with a long name.

                                                                  Example

                                                                  class Something {
                                                                      protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                      public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                          $otherReallyLongName = -5; // VIOLATION - Local
                                                                          for ($interestingIntIndex = 0; // VIOLATION - For
                                                                               $interestingIntIndex < 10;
                                                                               $interestingIntIndex++ ) {
                                                                          }
                                                                      }
                                                                  }

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

                                                                  Avoid excessively long variable names like $background_cflag_type. Keep variable name length under 20.
                                                                  Open

                                                                      public $background_cflag_type = BGIMG_FILLPLOT;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  LongVariable

                                                                  Since: 0.2

                                                                  Detects when a field, formal or local variable is declared with a long name.

                                                                  Example

                                                                  class Something {
                                                                      protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                      public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                          $otherReallyLongName = -5; // VIOLATION - Local
                                                                          for ($interestingIntIndex = 0; // VIOLATION - For
                                                                               $interestingIntIndex < 10;
                                                                               $interestingIntIndex++ ) {
                                                                          }
                                                                      }
                                                                  }

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

                                                                  Avoid excessively long variable names like $background_image_bright. Keep variable name length under 20.
                                                                  Open

                                                                      public $background_image_bright = 0;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  LongVariable

                                                                  Since: 0.2

                                                                  Detects when a field, formal or local variable is declared with a long name.

                                                                  Example

                                                                  class Something {
                                                                      protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                      public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                          $otherReallyLongName = -5; // VIOLATION - Local
                                                                          for ($interestingIntIndex = 0; // VIOLATION - For
                                                                               $interestingIntIndex < 10;
                                                                               $interestingIntIndex++ ) {
                                                                          }
                                                                      }
                                                                  }

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

                                                                  Avoid excessively long variable names like $titlebackground_color. Keep variable name length under 20.
                                                                  Open

                                                                      public $titlebackground_color = 'lightblue';
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  LongVariable

                                                                  Since: 0.2

                                                                  Detects when a field, formal or local variable is declared with a long name.

                                                                  Example

                                                                  class Something {
                                                                      protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                      public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                          $otherReallyLongName = -5; // VIOLATION - Local
                                                                          for ($interestingIntIndex = 0; // VIOLATION - For
                                                                               $interestingIntIndex < 10;
                                                                               $interestingIntIndex++ ) {
                                                                          }
                                                                      }
                                                                  }

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

                                                                  Avoid excessively long variable names like $background_image_type. Keep variable name length under 20.
                                                                  Open

                                                                      public $background_image_type   = -1;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  LongVariable

                                                                  Since: 0.2

                                                                  Detects when a field, formal or local variable is declared with a long name.

                                                                  Example

                                                                  class Something {
                                                                      protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                      public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                          $otherReallyLongName = -5; // VIOLATION - Local
                                                                          for ($interestingIntIndex = 0; // VIOLATION - For
                                                                               $interestingIntIndex < 10;
                                                                               $interestingIntIndex++ ) {
                                                                          }
                                                                      }
                                                                  }

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

                                                                  Avoid excessively long variable names like $background_image_ypos. Keep variable name length under 20.
                                                                  Open

                                                                      public $background_image_ypos   = 0;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  LongVariable

                                                                  Since: 0.2

                                                                  Detects when a field, formal or local variable is declared with a long name.

                                                                  Example

                                                                  class Something {
                                                                      protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                      public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                          $otherReallyLongName = -5; // VIOLATION - Local
                                                                          for ($interestingIntIndex = 0; // VIOLATION - For
                                                                               $interestingIntIndex < 10;
                                                                               $interestingIntIndex++ ) {
                                                                          }
                                                                      }
                                                                  }

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

                                                                  Avoid excessively long variable names like $background_image_format. Keep variable name length under 20.
                                                                  Open

                                                                      public $background_image_format = 'png';
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  LongVariable

                                                                  Since: 0.2

                                                                  Detects when a field, formal or local variable is declared with a long name.

                                                                  Example

                                                                  class Something {
                                                                      protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                      public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                          $otherReallyLongName = -5; // VIOLATION - Local
                                                                          for ($interestingIntIndex = 0; // VIOLATION - For
                                                                               $interestingIntIndex < 10;
                                                                               $interestingIntIndex++ ) {
                                                                          }
                                                                      }
                                                                  }

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

                                                                  Avoid excessively long variable names like $titlebackground_bevelheight. Keep variable name length under 20.
                                                                  Open

                                                                      public $titlebackground_bevelheight;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  LongVariable

                                                                  Since: 0.2

                                                                  Detects when a field, formal or local variable is declared with a long name.

                                                                  Example

                                                                  class Something {
                                                                      protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                      public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                          $otherReallyLongName = -5; // VIOLATION - Local
                                                                          for ($interestingIntIndex = 0; // VIOLATION - For
                                                                               $interestingIntIndex < 10;
                                                                               $interestingIntIndex++ ) {
                                                                          }
                                                                      }
                                                                  }

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

                                                                  Avoid excessively long variable names like $background_image_contr. Keep variable name length under 20.
                                                                  Open

                                                                      public $background_image_contr  = 0;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  LongVariable

                                                                  Since: 0.2

                                                                  Detects when a field, formal or local variable is declared with a long name.

                                                                  Example

                                                                  class Something {
                                                                      protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                      public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                          $otherReallyLongName = -5; // VIOLATION - Local
                                                                          for ($interestingIntIndex = 0; // VIOLATION - For
                                                                               $interestingIntIndex < 10;
                                                                               $interestingIntIndex++ ) {
                                                                          }
                                                                      }
                                                                  }

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

                                                                  Avoid excessively long variable names like $text_scale_abscenteroff. Keep variable name length under 20.
                                                                  Open

                                                                      public $text_scale_abscenteroff = -1; // Text scale in fractions and for centering bars
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  LongVariable

                                                                  Since: 0.2

                                                                  Detects when a field, formal or local variable is declared with a long name.

                                                                  Example

                                                                  class Something {
                                                                      protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                      public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                          $otherReallyLongName = -5; // VIOLATION - Local
                                                                          for ($interestingIntIndex = 0; // VIOLATION - For
                                                                               $interestingIntIndex < 10;
                                                                               $interestingIntIndex++ ) {
                                                                          }
                                                                      }
                                                                  }

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

                                                                  Avoid excessively long variable names like $background_image_xpos. Keep variable name length under 20.
                                                                  Open

                                                                      public $background_image_xpos   = 0;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  LongVariable

                                                                  Since: 0.2

                                                                  Detects when a field, formal or local variable is declared with a long name.

                                                                  Example

                                                                  class Something {
                                                                      protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                      public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                          $otherReallyLongName = -5; // VIOLATION - Local
                                                                          for ($interestingIntIndex = 0; // VIOLATION - For
                                                                               $interestingIntIndex < 10;
                                                                               $interestingIntIndex++ ) {
                                                                          }
                                                                      }
                                                                  }

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

                                                                  Avoid excessively long variable names like $titlebackground_framestyle. Keep variable name length under 20.
                                                                  Open

                                                                      public $titlebackground_framestyle;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  LongVariable

                                                                  Since: 0.2

                                                                  Detects when a field, formal or local variable is declared with a long name.

                                                                  Example

                                                                  class Something {
                                                                      protected $reallyLongIntName = -3; // VIOLATION - Field
                                                                      public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                                                                          $otherReallyLongName = -5; // VIOLATION - Local
                                                                          for ($interestingIntIndex = 0; // VIOLATION - For
                                                                               $interestingIntIndex < 10;
                                                                               $interestingIntIndex++ ) {
                                                                          }
                                                                      }
                                                                  }

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

                                                                  A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 20 and the first side effect is on line 9.
                                                                  Open

                                                                  <?php
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

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

                                                                      public function SetYScale($aN, $aAxisType = 'lin', $aYMin = 1, $aYMax = 1)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $rm. Configured minimum length is 3.
                                                                  Open

                                                                      public function SetMargin($lm, $rm, $tm, $bm)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $bm. Configured minimum length is 3.
                                                                  Open

                                                                      public function SetMargin($lm, $rm, $tm, $bm)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $tm. Configured minimum length is 3.
                                                                  Open

                                                                      public function Set90AndMargin($lm = 0, $rm = 0, $tm = 0, $bm = 0)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $cl. Configured minimum length is 3.
                                                                  Open

                                                                              $cl = $aPlot[0];
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $lm. Configured minimum length is 3.
                                                                  Open

                                                                      public function SetMargin($lm, $rm, $tm, $bm)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $bm. Configured minimum length is 3.
                                                                  Open

                                                                      public function Set90AndMargin($lm = 0, $rm = 0, $tm = 0, $bm = 0)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $cl. Configured minimum length is 3.
                                                                  Open

                                                                              $cl = $aPlot[0];
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  ShortVariable

                                                                  Since: 0.2

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

                                                                  Example

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

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

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

                                                                          $xt = substr($aAxisType, 0, 3);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $cl. Configured minimum length is 3.
                                                                  Open

                                                                              $cl = $aPlot[0];
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  ShortVariable

                                                                  Since: 0.2

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

                                                                  Example

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

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

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

                                                                          $yt = substr($aAxisType, -3, 3);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $e. Configured minimum length is 3.
                                                                  Open

                                                                              $e = explode('.', $aFileName);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $aN. Configured minimum length is 3.
                                                                  Open

                                                                      public function AddY($aN, $aPlot)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $tm. Configured minimum length is 3.
                                                                  Open

                                                                      public function SetMargin($lm, $rm, $tm, $bm)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $lm. Configured minimum length is 3.
                                                                  Open

                                                                      public function Set90AndMargin($lm = 0, $rm = 0, $tm = 0, $bm = 0)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $rm. Configured minimum length is 3.
                                                                  Open

                                                                      public function Set90AndMargin($lm = 0, $rm = 0, $tm = 0, $bm = 0)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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->ynaxis);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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->ynscale);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $xr. Configured minimum length is 3.
                                                                  Open

                                                                                  $xr = $this->img->width - $this->img->right_margin;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $bw. Configured minimum length is 3.
                                                                  Open

                                                                          $bw = imagesx($bkgimg);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $yu. Configured minimum length is 3.
                                                                  Open

                                                                                  $yu = $this->img->height - $this->img->bottom_margin + 1;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $e. Configured minimum length is 3.
                                                                  Open

                                                                          $e   = explode('.', $aFile);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $xl. Configured minimum length is 3.
                                                                  Open

                                                                          $xl   = $this->img->left_margin;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  ShortVariable

                                                                  Since: 0.2

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

                                                                  Example

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

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

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

                                                                          $i = 0;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  ShortVariable

                                                                  Since: 0.2

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

                                                                  Example

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

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

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

                                                                          $yt   = $this->img->top_margin;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $xl. Configured minimum length is 3.
                                                                  Open

                                                                              $xl = $this->img->left_margin;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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($txts);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  ShortVariable

                                                                  Since: 0.2

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

                                                                  Example

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

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

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

                                                                              $yt = $this->img->top_margin;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $fh. Configured minimum length is 3.
                                                                  Open

                                                                                      if ($fh = @fopen($basecsim, 'r')) {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $lh. Configured minimum length is 3.
                                                                  Open

                                                                                  $lh = $this->img->GetTextHeight('Mg', $this->yaxis->label_angle);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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->ynaxis);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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($this->ynplots[$i]);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $yb. Configured minimum length is 3.
                                                                  Open

                                                                          $yb   = $yt + $this->img->plotheight;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $xr. Configured minimum length is 3.
                                                                  Open

                                                                              $xr = $xl + $this->img->plotwidth + 1;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $cl. Configured minimum length is 3.
                                                                  Open

                                                                                      $cl = strtolower(get_class($p));
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $yb. Configured minimum length is 3.
                                                                  Open

                                                                              $yb = $yt + $this->img->plotheight;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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

                                                                              $c = $this->margin_color;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  ShortVariable

                                                                  Since: 0.2

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

                                                                  Example

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

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

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

                                                                                      $x2 = $this->img->width - $this->framebeveldepth - 2;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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($this->ynplots[$i]);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  ShortVariable

                                                                  Since: 0.2

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

                                                                  Example

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

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

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

                                                                              $r         = rand(0, 100000);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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($txts);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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

                                                                              $f      = 'imagecreatefromjpeg';
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $fh. Configured minimum length is 3.
                                                                  Open

                                                                                  if ($fh = @fopen($basecsim, 'w')) {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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($aPlots);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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($this->ynplots[$i]);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $xr. Configured minimum length is 3.
                                                                  Open

                                                                          $xr   = $xl + $this->img->plotwidth + 1;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 = $this->title->GetTextHeight($this->img) + $this->title->margin + $margin;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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($pts[0]);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $t. Configured minimum length is 3.
                                                                  Open

                                                                          $t = $this->iAxisLblBgType;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $xl. Configured minimum length is 3.
                                                                  Open

                                                                                  $xl = $this->img->left_margin;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $aa. Configured minimum length is 3.
                                                                  Open

                                                                              $aa = $this->img->SetAngle(0);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $bh. Configured minimum length is 3.
                                                                  Open

                                                                          $bh = imagesy($bkgimg);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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->iIcons);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  ShortVariable

                                                                  Since: 0.2

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

                                                                  Example

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

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

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

                                                                                      $x1 = $y1 = $this->framebeveldepth + 1;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  ShortVariable

                                                                  Since: 0.2

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

                                                                  Example

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

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

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

                                                                                      $x1 = $y1 = $this->framebeveldepth + 1;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $ih. Configured minimum length is 3.
                                                                  Open

                                                                          $ih = $this->Stroke(_IMG_HANDLER);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $aa. Configured minimum length is 3.
                                                                  Open

                                                                          $aa = $this->img->SetAngle(0);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $do. Configured minimum length is 3.
                                                                  Open

                                                                      public function SetSupersampling($do = false, $scale = 2)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 = $aPlots[$i];
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $aa. Configured minimum length is 3.
                                                                  Open

                                                                              $aa = $this->img->SetAngle(0);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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($coords[0]);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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($aLines);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpmd

                                                                  ShortVariable

                                                                  Since: 0.2

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

                                                                  Example

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

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

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

                                                                          $i = 0;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $v. Configured minimum length is 3.
                                                                  Open

                                                                                  $v   = $aLines[$i]->scaleposition;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $im. Configured minimum length is 3.
                                                                  Open

                                                                          $im = "<map name=\"${aMapName}\" id=\"${aMapName}\" >\n";
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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->ynaxis);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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->ynaxis);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $yl. Configured minimum length is 3.
                                                                  Open

                                                                                  $yl = $this->img->height - 1 - $this->frame_weight;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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($aPlots);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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->texts);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $aa. Configured minimum length is 3.
                                                                  Open

                                                                          $aa = $this->img->SetAngle(0);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 = $this->title->margin;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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->iTables);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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($aLines);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 $v. Configured minimum length is 3.
                                                                  Open

                                                                                  $v   = $aLines[$i]->scaleposition;
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.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 "Graph::SetGridDepth" is not in camel caps format
                                                                  Open

                                                                      public function SetGridDepth($aDepth)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::AddTable" is not in camel caps format
                                                                  Open

                                                                      public function AddTable($aTable)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::AddBand" is not in camel caps format
                                                                  Open

                                                                      public function AddBand($aBand, $aToY2 = false)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetBackgroundCountryFlag" is not in camel caps format
                                                                  Open

                                                                      public function SetBackgroundCountryFlag($aName, $aBgType = BGIMG_FILLPLOT, $aMix = 100)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetMarginColor" is not in camel caps format
                                                                  Open

                                                                      public function SetMarginColor($aColor)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetScale" is not in camel caps format
                                                                  Open

                                                                      public function SetScale($aAxisType, $aYMin = 1, $aYMax = 1, $aXMin = 1, $aXMax = 1)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::StrokeFrameBackground" is not in camel caps format
                                                                  Open

                                                                      public function StrokeFrameBackground()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::StrokePlotBox" is not in camel caps format
                                                                  Open

                                                                      public function StrokePlotBox()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::GetLinesXMinMax" is not in camel caps format
                                                                  Open

                                                                      public function GetLinesXMinMax($aLines)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::GetPlotsYMinMax" is not in camel caps format
                                                                  Open

                                                                      public function GetPlotsYMinMax($bPlots)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetupCache" is not in camel caps format
                                                                  Open

                                                                      public function SetupCache($aFilename, $aTimeout = 60)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetClipping" is not in camel caps format
                                                                  Open

                                                                      public function SetClipping($aFlg = true)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetAxisStyle" is not in camel caps format
                                                                  Open

                                                                      public function SetAxisStyle($aStyle)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetShadow" is not in camel caps format
                                                                  Open

                                                                      public function SetShadow($aShowShadow = true, $aShadowWidth = 5, $aShadowColor = 'darkgray')
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetTickDensity" is not in camel caps format
                                                                  Open

                                                                      public function SetTickDensity($aYDensity = TICKD_NORMAL, $aXDensity = TICKD_NORMAL)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::FillPlotArea" is not in camel caps format
                                                                  Open

                                                                      public function FillPlotArea()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::GetURLArguments" is not in camel caps format
                                                                  Open

                                                                      public static function GetURLArguments($aAddRecursiveBlocker = false)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::AdjustMarginsForTitles" is not in camel caps format
                                                                  Open

                                                                      public function AdjustMarginsForTitles()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetUserFont3" is not in camel caps format
                                                                  Open

                                                                      public function SetUserFont3($aNormal, $aBold = '', $aItalic = '', $aBoldIt = '')
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetIconDepth" is not in camel caps format
                                                                  Open

                                                                      public function SetIconDepth($aDepth)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetAlphaBlending" is not in camel caps format
                                                                  Open

                                                                      public function SetAlphaBlending($aFlg = true)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetBackgroundCFlag" is not in camel caps format
                                                                  Open

                                                                      public function SetBackgroundCFlag($aName, $aBgType = BGIMG_FILLPLOT, $aMix = 100)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

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

                                                                      public function Stroke($aStrokeFileName = '')
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetAxisLabelBackground" is not in camel caps format
                                                                  Open

                                                                      public function SetAxisLabelBackground($aType, $aXFColor = 'lightgray', $aXColor = 'black', $aYFColor = 'lightgray', $aYColor = 'black')
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::LoadBkgImage" is not in camel caps format
                                                                  Open

                                                                      public static function LoadBkgImage($aImgFormat = '', $aFile = '', $aImgStr = '')
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetMargin" is not in camel caps format
                                                                  Open

                                                                      public function SetMargin($lm, $rm, $tm, $bm)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::AddText" is not in camel caps format
                                                                  Open

                                                                      public function AddText($aTxt, $aToY2 = false)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::GetCSIMImgHTML" is not in camel caps format
                                                                  Open

                                                                      public function GetCSIMImgHTML($aCSIMName, $aScriptName = 'auto', $aBorder = 0)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::StrokeBackgroundGrad" is not in camel caps format
                                                                  Open

                                                                      public function StrokeBackgroundGrad()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::ClearTheme" is not in camel caps format
                                                                  Open

                                                                      public function ClearTheme()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetUserFont1" is not in camel caps format
                                                                  Open

                                                                      public function SetUserFont1($aNormal, $aBold = '', $aItalic = '', $aBoldIt = '')
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

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

                                                                      public function SetAngle($aAngle)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::AddY" is not in camel caps format
                                                                  Open

                                                                      public function AddY($aN, $aPlot)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetPlotGradient" is not in camel caps format
                                                                  Open

                                                                      public function SetPlotGradient($aFrom = 'navy', $aTo = 'silver', $aGradType = 2)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::StrokeCSIMImage" is not in camel caps format
                                                                  Open

                                                                      public function StrokeCSIMImage()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetTextScaleAbsCenterOff" is not in camel caps format
                                                                  Open

                                                                      public function SetTextScaleAbsCenterOff($aOff)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::Set3DPerspective" is not in camel caps format
                                                                  Open

                                                                      public function Set3DPerspective($aDir = 1, $aHorizon = 100, $aSkewDist = 120, $aQuality = false, $aFillColor = '#FFFFFF', $aBorder = false, $aMinSize = true, $aHorizonPos = 0.5)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::Add" is not in camel caps format
                                                                  Open

                                                                      public function Add($aPlot)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::AddIcon" is not in camel caps format
                                                                  Open

                                                                      public function AddIcon($aIcon)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetColor" is not in camel caps format
                                                                  Open

                                                                      public function SetColor($aColor)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::GetCSIMareas" is not in camel caps format
                                                                  Open

                                                                      public function GetCSIMareas()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::GetTextsXMinMax" is not in camel caps format
                                                                  Open

                                                                      public function GetTextsXMinMax($aY2 = false)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::InitScaleConstants" is not in camel caps format
                                                                  Open

                                                                      public function InitScaleConstants()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::StrokeBands" is not in camel caps format
                                                                  Open

                                                                      public function StrokeBands($aDepth, $aCSIM)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetTitleBackground" is not in camel caps format
                                                                  Open

                                                                      public function SetTitleBackground($aBackColor = 'gray', $aStyle = TITLEBKG_STYLE1, $aFrameStyle = TITLEBKG_FRAME_NONE, $aFrameColor = 'black', $aFrameWeight = 1, $aBevelHeight = 3, $aEnable = true)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetTextScaleOff" is not in camel caps format
                                                                  Open

                                                                      public function SetTextScaleOff($aOff)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetTheme" is not in camel caps format
                                                                  Open

                                                                      public function SetTheme($graph_theme)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::Set90AndMargin" is not in camel caps format
                                                                  Open

                                                                      public function Set90AndMargin($lm = 0, $rm = 0, $tm = 0, $bm = 0)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetY2Scale" is not in camel caps format
                                                                  Open

                                                                      public function SetY2Scale($aAxisType = 'lin', $aY2Min = 1, $aY2Max = 1)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetYScale" is not in camel caps format
                                                                  Open

                                                                      public function SetYScale($aN, $aAxisType = 'lin', $aYMin = 1, $aYMax = 1)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::FillMarginArea" is not in camel caps format
                                                                  Open

                                                                      public function FillMarginArea()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::DisplayClientSideaImageMapAreas" is not in camel caps format
                                                                  Open

                                                                      public function DisplayClientSideaImageMapAreas()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetBackgroundImagePos" is not in camel caps format
                                                                  Open

                                                                      public function SetBackgroundImagePos($aXpos, $aYpos)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::GetHTMLImageMap" is not in camel caps format
                                                                  Open

                                                                      public function GetHTMLImageMap($aMapName)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::GetXMinMax" is not in camel caps format
                                                                  Open

                                                                      public function GetXMinMax()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::InitializeFrameAndMargin" is not in camel caps format
                                                                  Open

                                                                      public function InitializeFrameAndMargin()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::StrokeTables" is not in camel caps format
                                                                  Open

                                                                      public function StrokeTables()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::StrokePlotGrad" is not in camel caps format
                                                                  Open

                                                                      public function StrokePlotGrad()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::StrokeTitles" is not in camel caps format
                                                                  Open

                                                                      public function StrokeTitles()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetSupersampling" is not in camel caps format
                                                                  Open

                                                                      public function SetSupersampling($do = false, $scale = 2)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetUserFont" is not in camel caps format
                                                                  Open

                                                                      public function SetUserFont($aNormal, $aBold = '', $aItalic = '', $aBoldIt = '')
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetBox" is not in camel caps format
                                                                  Open

                                                                      public function SetBox($aDrawPlotFrame = true, $aPlotFrameColor = [0, 0, 0], $aPlotFrameWeight = 1)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetFrameBevel" is not in camel caps format
                                                                  Open

                                                                      public function SetFrameBevel($aDepth = 3, $aBorder = false, $aBorderColor = 'black', $aColor1 = 'white@0.4', $aColor2 = 'darkgray@0.4', $aFlg = true)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::CheckCSIMCache" is not in camel caps format
                                                                  Open

                                                                      public function CheckCSIMCache($aCacheName, $aTimeOut = 60)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::StrokeFrame" is not in camel caps format
                                                                  Open

                                                                      public function StrokeFrame()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::StrokePlotArea" is not in camel caps format
                                                                  Open

                                                                      public function StrokePlotArea()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetBackgroundGradient" is not in camel caps format
                                                                  Open

                                                                      public function SetBackgroundGradient($aFrom = 'navy', $aTo = 'silver', $aGradType = 2, $aStyle = BGRAD_FRAME)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetCSIMImgAlt" is not in camel caps format
                                                                  Open

                                                                      public function SetCSIMImgAlt($aAlt)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::GetTextsYMinMax" is not in camel caps format
                                                                  Open

                                                                      public function GetTextsYMinMax($aY2 = false)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::StrokeAxisLabelBackground" is not in camel caps format
                                                                  Open

                                                                      public function StrokeAxisLabelBackground()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::StrokeAxis" is not in camel caps format
                                                                  Open

                                                                      public function StrokeAxis($aStrokeLabels = true)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::StrokeIcons" is not in camel caps format
                                                                  Open

                                                                      public function StrokeIcons()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::GetLinesYMinMax" is not in camel caps format
                                                                  Open

                                                                      public function GetLinesYMinMax($aLines)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetUserFont2" is not in camel caps format
                                                                  Open

                                                                      public function SetUserFont2($aNormal, $aBold = '', $aItalic = '', $aBoldIt = '')
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetImgFormat" is not in camel caps format
                                                                  Open

                                                                      public function SetImgFormat($aFormat, $aQuality = 75)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetY2OrderBack" is not in camel caps format
                                                                  Open

                                                                      public function SetY2OrderBack($aBack = true)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::AddLine" is not in camel caps format
                                                                  Open

                                                                      public function AddLine($aLine, $aToY2 = false)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetYDeltaDist" is not in camel caps format
                                                                  Open

                                                                      public function SetYDeltaDist($aDist)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::StrokeCSIM" is not in camel caps format
                                                                  Open

                                                                      public function StrokeCSIM($aScriptName = 'auto', $aCSIMName = '', $aBorder = 0)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::AddY2" is not in camel caps format
                                                                  Open

                                                                      public function AddY2($aPlot)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetBackgroundImage" is not in camel caps format
                                                                  Open

                                                                      public function SetBackgroundImage($aFileName, $aBgType = BGIMG_FILLPLOT, $aImgFormat = 'auto')
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetBackgroundImageMix" is not in camel caps format
                                                                  Open

                                                                      public function SetBackgroundImageMix($aMix)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetFrame" is not in camel caps format
                                                                  Open

                                                                      public function SetFrame($aDrawImgFrame = true, $aImgFrameColor = [0, 0, 0], $aImgFrameWeight = 1)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::StrokeStore" is not in camel caps format
                                                                  Open

                                                                      public function StrokeStore($aStrokeFileName)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::SetTitleBackgroundFillStyle" is not in camel caps format
                                                                  Open

                                                                      public function SetTitleBackgroundFillStyle($aStyle, $aColor1 = 'black', $aColor2 = 'white')
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Method name "Graph::StrokeTexts" is not in camel caps format
                                                                  Open

                                                                      public function StrokeTexts()
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 127 characters
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25034); //("<strong>JpGraph: Can't draw unspecified X-scale.</strong><br>No plots.<br>");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 122 characters
                                                                  Open

                                                                                      Util\JpGraphError::RaiseL(25027, $basecsim); //(" Can't open cached CSIM \"$basecsim\" for reading.");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 127 characters
                                                                  Open

                                                                              } elseif ($this->y2scale->IsSpecified() && ($this->y2scale->auto_ticks || !$this->y2scale->ticks->IsSpecified())) {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 172 characters
                                                                  Open

                                                                              //$t = "Background image seems to be of different type (has different file extension) than specified imagetype. Specified: '".$aImgFormat."'File: '".$aFile."'";
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 154 characters
                                                                  Open

                                                                      public function SetFrameBevel($aDepth = 3, $aBorder = false, $aBorderColor = 'black', $aColor1 = 'white@0.4', $aColor2 = 'darkgray@0.4', $aFlg = true)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 150 characters
                                                                  Open

                                                                                      Util\JpGraphError::RaiseL(25029, $basecsim); //(" Can't write CSIM \"$basecsim\" for writing. Check free space and permissions.");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 128 characters
                                                                  Open

                                                                          if (($this->yaxis->pos == $this->xscale->GetMinVal() || (is_string($this->yaxis->pos) && $this->yaxis->pos == 'min')) &&
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 163 characters
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25037, $aFile); //('The image format of your background image ('.$aFile.') is not supported in your system configuration. ');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 144 characters
                                                                  Open

                                                                          if ($this->background_image_type <= 1 && ($this->bkg_gradtype < 0 || ($this->bkg_gradtype > 0 && $this->bkg_gradstyle == BGRAD_PLOT))) {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 163 characters
                                                                  Open

                                                                                  Util\JpGraphError::RaiseL(25019, $aImgFormat); //('Unknown file extension ($aImgFormat) in Graph::SetBackgroundImage() for filename: '.$aFileName);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 140 characters
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25023, $aAxisType); //("JpGraph: Unsupported Y2 axis type: $aAxisType\nMust be one of (lin,log,int)");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 136 characters
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25020); //('Graph::SetScale(): Specified Max value must be larger than the specified Min value.');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 143 characters
                                                                  Open

                                                                                  } elseif ($this->ynscale[$i]->IsSpecified() && ($this->ynscale[$i]->auto_ticks || !$this->ynscale[$i]->ticks->IsSpecified())) {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 121 characters
                                                                  Open

                                                                                  $this->xscale->off += round($this->xscale->scale_factor / 2) - round($this->text_scale_abscenteroff / 2);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 183 characters
                                                                  Open

                                                                          return '<img src="' . $aScriptName . '?' . $urlarg . '" ismap="ismap" usemap="#' . $aCSIMName . '" height="' . $this->img->height . '" alt="' . $this->iCSIMImgAlt . "\" />\n";
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 123 characters
                                                                  Open

                                                                                      if ($this->y2scale->ticks->label_formatstr == '' && $this->y2scale->ticks->label_dateformatstr == '') {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 246 characters
                                                                  Open

                                                                                  Util\JpGraphError::RaiseL(25035, $this->img->a); //('You have enabled clipping. Cliping is only supported for graphs at 0 or 90 degrees rotation. Please adjust you current angle (='.$this->img->a.' degrees) or disable clipping.');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 170 characters
                                                                  Open

                                                                                      Util\JpGraphError::RaiseL(25028, $dir); //('Apache/PHP does not have permission to write to the CSIM cache directory ('.$dir.'). Check permissions.');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 121 characters
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25031); //('You must specify what scale to use with a call to Graph::SetScale().');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 202 characters
                                                                  Open

                                                                      public function SetTitleBackground($aBackColor = 'gray', $aStyle = TITLEBKG_STYLE1, $aFrameStyle = TITLEBKG_FRAME_NONE, $aFrameColor = 'black', $aFrameWeight = 1, $aBevelHeight = 3, $aEnable = true)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 135 characters
                                                                  Open

                                                                                          if ($this->ynscale[$i]->ticks->label_formatstr == '' && $this->ynscale[$i]->ticks->label_dateformatstr == '') {
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 131 characters
                                                                  Open

                                                                                  $this->xscale->off += ceil($this->xscale->scale_factor * $this->text_scale_off * $this->xscale->ticks->minor_step);
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 139 characters
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25024, $aAxisType); //("JpGraph: Unsupported Y axis type: $aAxisType\nMust be one of (lin,log,int)");
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 140 characters
                                                                  Open

                                                                      public function SetAxisLabelBackground($aType, $aXFColor = 'lightgray', $aXColor = 'black', $aYFColor = 'lightgray', $aYColor = 'black')
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 137 characters
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25040); //('It is not possible to specify both a background image and a background country flag.');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 182 characters
                                                                  Open

                                                                      public function Set3DPerspective($aDir = 1, $aHorizon = 100, $aSkewDist = 120, $aQuality = false, $aFillColor = '#FFFFFF', $aBorder = false, $aMinSize = true, $aHorizonPos = 0.5)
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 198 characters
                                                                  Open

                                                                                      Util\JpGraphError::RaiseL(25030); //('Missing script name in call to StrokeCSIM(). You must specify the name of the actual image script as the first parameter to StrokeCSIM().');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 168 characters
                                                                  Open

                                                                              Util\JpGraphError::RaiseL(25044); //('Cannot use autoscaling since it is impossible to determine a valid min/max value  of the Y-axis (only null values).');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 224 characters
                                                                  Open

                                                                                  Util\JpGraphError::RaiseL(25018, $aFileName); //('Incorrect file name for Graph::SetBackgroundImage() : '.$aFileName.' Must have a valid image extension (jpg,gif,png) when using autodetection of image type');
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  Line exceeds 120 characters; contains 214 characters
                                                                  Open

                                                                                  '<img src="' . CSIMCACHE_HTTP_DIR . $tmp . '" ismap="ismap" usemap="#' . $aCSIMName . ' width="' . $this->img->width . '" height="' . $this->img->height . '" alt="' . $this->iCSIMImgAlt . "\" />\n";
                                                                  Severity: Minor
                                                                  Found in src/graph/Graph.php by phpcodesniffer

                                                                  There are no issues that match your filters.

                                                                  Category
                                                                  Status