HuasoFoundries/jpgraph

View on GitHub
src/plot/PlotMark.php

Summary

Maintainability
F
3 days
Test Coverage

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

    public function Stroke($img, $x, $y)
    {
        if (!$this->show) {
            return;
        }
Severity: Minor
Found in src/plot/PlotMark.php - About 1 day to fix

Cognitive Complexity

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

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

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

Further reading

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

    public function Stroke($img, $x, $y)
    {
        if (!$this->show) {
            return;
        }
Severity: Major
Found in src/plot/PlotMark.php - About 1 day to fix

    File PlotMark.php has 428 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    /**
     * JPGraph v4.0.3
     */
    Severity: Minor
    Found in src/plot/PlotMark.php - About 6 hrs to fix

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

      class PlotMark
      {
          public $title;
          public $show = true;
          public $type;
      Severity: Minor
      Found in src/plot/PlotMark.php by phpmd

      PlotMark has 21 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class PlotMark
      {
          public $title;
          public $show = true;
          public $type;
      Severity: Minor
      Found in src/plot/PlotMark.php - About 2 hrs to fix

        The class PlotMark has 25 fields. Consider redesigning PlotMark to keep the number of fields under 15.
        Open

        class PlotMark
        {
            public $title;
            public $show = true;
            public $type;
        Severity: Minor
        Found in src/plot/PlotMark.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

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

            public function AddCSIMPoly($aPts)
            {
                $coords = round($aPts[0]) . ', ' . round($aPts[1]);
                $n      = safe_count($aPts) / 2;
                for ($i = 1; $i < $n; ++$i) {
        Severity: Minor
        Found in src/plot/PlotMark.php - About 25 mins to fix

        Cognitive Complexity

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

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

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

        Further reading

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

            public function Stroke($img, $x, $y)
            {
                if (!$this->show) {
                    return;
                }
        Severity: Minor
        Found in src/plot/PlotMark.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 310 lines of code. Current threshold is set to 100. Avoid really long methods.
        Open

            public function Stroke($img, $x, $y)
            {
                if (!$this->show) {
                    return;
                }
        Severity: Minor
        Found in src/plot/PlotMark.php by phpmd

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

            public function Stroke($img, $x, $y)
            {
                if (!$this->show) {
                    return;
                }
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x + $dx;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y + $dy * 1.3 - $dy;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y + 0.87 * $dy; // tan(60)/2*$dx
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y + $dy;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y + 2 * $dy;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $img->Polygon($c);
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                    $img->Polygon($c);
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y + 0.87 * $dy; // tan(60)/2*$dx
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y - 0.87 * $dy;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y + 0.87 * $dy;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y + 0.87 * $dy; // tan(60)/2*$dx
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y - $dy;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y + 2 * $dy - $dy;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y + $dy;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y + $dy;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $this->AddCSIMPoly($c);
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x - $dx;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x - $dx;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x + $dx / 2;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y + $dy;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x - $dx;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x - $dx;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x - $dx;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x - $dx;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                    $img->FilledPolygon($c);
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y - $dy;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x + $dx;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x - $dx;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y - 0.87 * $dy;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x - $dx + $dx / 2;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y + 2 * $dy;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x - $dx * 2;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x - $dx * 2;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y + $dy * 0.7 - $dy;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y - $dy;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y + 0.87 * $dy; // tan(60)/2*$dx
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y - $dy;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x + $dx * 2;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                    $this->AddCSIMPoly($c);
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x + $dx;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y - 0.87 * $dy;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x + $dx;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x + $dx / 2;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $y - $dy;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x + $dx;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x;
        Severity: Minor
        Found in src/plot/PlotMark.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 '$c' which will lead to PHP notices.
        Open

                        $c[] = $x - $dx + $dx / 2;
        Severity: Minor
        Found in src/plot/PlotMark.php by phpmd

        UndefinedVariable

        Since: 2.8.0

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

        Example

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

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

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

            public function Hide($aHide = true)
        Severity: Minor
        Found in src/plot/PlotMark.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 Show has a boolean flag argument $aShow, which is a certain sign of a Single Responsibility Principle violation.
        Open

            public function Show($aShow = true)
        Severity: Minor
        Found in src/plot/PlotMark.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 Stroke uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
        Open

                    } else {
                        $f                                                  = $this->iFormatCallback2;
                        list($width, $color, $fcolor, $filename, $imgscale) = call_user_func($f, $this->yvalue, $this->xvalue);
                        if ($filename == '') {
                            $filename = $this->iFileName;
        Severity: Minor
        Found in src/plot/PlotMark.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 {
                    $fcolor   = $this->fill_color;
                    $color    = $this->color;
                    $width    = $this->width;
                    $filename = $this->iFileName;
        Severity: Minor
        Found in src/plot/PlotMark.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\Graph\Graph' in method 'Stroke'.
        Open

                                $this->markimg     = Graph\Graph::LoadBkgImage('', $filename);
        Severity: Minor
        Found in src/plot/PlotMark.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\FlagCache' in method 'Stroke'.
        Open

                            $this->markimg = Util\FlagCache::GetFlagImgByName($this->type - MARK_FLAG1 + 1, $filename);
        Severity: Minor
        Found in src/plot/PlotMark.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 'SetType'.
        Open

                    Util\JpGraphError::RaiseL(23003); //('A filename must be specified if you set the mark type to MARK_IMG.');
        Severity: Minor
        Found in src/plot/PlotMark.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 variables with short names like $aX. Configured minimum length is 3.
        Open

            public function SetCSIMAltVal($aY, $aX = '')
        Severity: Minor
        Found in src/plot/PlotMark.php by phpmd

        ShortVariable

        Since: 0.2

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

        Example

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

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

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

                    $h = $img->GetHeight($this->markimg);
        Severity: Minor
        Found in src/plot/PlotMark.php by phpmd

        ShortVariable

        Since: 0.2

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

        Example

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

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

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

            public function AddCSIMCircle($x, $y, $r)
        Severity: Minor
        Found in src/plot/PlotMark.php by phpmd

        ShortVariable

        Since: 0.2

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

        Example

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

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

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

            public function AddCSIMCircle($x, $y, $r)
        Severity: Minor
        Found in src/plot/PlotMark.php by phpmd

        ShortVariable

        Since: 0.2

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

        Example

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

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

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

                    $w = $img->GetWidth($this->markimg);
        Severity: Minor
        Found in src/plot/PlotMark.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 $dw. Configured minimum length is 3.
        Open

                    $dw = round($imgscale * $w);
        Severity: Minor
        Found in src/plot/PlotMark.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 $dh. Configured minimum length is 3.
        Open

                    $dh = round($imgscale * $h);
        Severity: Minor
        Found in src/plot/PlotMark.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($aPts) / 2;
        Severity: Minor
        Found in src/plot/PlotMark.php by phpmd

        ShortVariable

        Since: 0.2

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

        Example

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

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

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

            public function SetCSIMAltVal($aY, $aX = '')
        Severity: Minor
        Found in src/plot/PlotMark.php by phpmd

        ShortVariable

        Since: 0.2

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

        Example

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

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

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

            public function Stroke($img, $x, $y)
        Severity: Minor
        Found in src/plot/PlotMark.php by phpmd

        ShortVariable

        Since: 0.2

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

        Example

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

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

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

                    $dy = round($y - $dh * $anchor_y);
        Severity: Minor
        Found in src/plot/PlotMark.php by phpmd

        ShortVariable

        Since: 0.2

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

        Example

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

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

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

            public function Stroke($img, $x, $y)
        Severity: Minor
        Found in src/plot/PlotMark.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                            = $this->iFormatCallback;
        Severity: Minor
        Found in src/plot/PlotMark.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[] = $x - $dx;
        Severity: Minor
        Found in src/plot/PlotMark.php by phpmd

        ShortVariable

        Since: 0.2

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

        Example

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

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

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

            public function AddCSIMCircle($x, $y, $r)
        Severity: Minor
        Found in src/plot/PlotMark.php by phpmd

        ShortVariable

        Since: 0.2

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

        Example

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

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

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

                    $dx = round($x - $dw * $anchor_x);
        Severity: Minor
        Found in src/plot/PlotMark.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 "PlotMark::SetCallback" is not in camel caps format
        Open

            public function SetCallback($aFunc)
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Method name "PlotMark::SetSize" is not in camel caps format
        Open

            public function SetSize($aWidth)
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Method name "PlotMark::SetColor" is not in camel caps format
        Open

            public function SetColor($aColor)
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Method name "PlotMark::SetWeight" is not in camel caps format
        Open

            public function SetWeight($aWeight)
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Method name "PlotMark::AddCSIMPoly" is not in camel caps format
        Open

            public function AddCSIMPoly($aPts)
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Each PHP statement must be on a line by itself
        Open

                        ++$dx; ++$dy;
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Method name "PlotMark::SetWidth" is not in camel caps format
        Open

            public function SetWidth($aWidth)
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

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

            public function Stroke($img, $x, $y)
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Method name "PlotMark::SetFillColor" is not in camel caps format
        Open

            public function SetFillColor($aFillColor)
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Method name "PlotMark::SetDefaultWidth" is not in camel caps format
        Open

            public function SetDefaultWidth()
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Method name "PlotMark::SetCSIMTarget" is not in camel caps format
        Open

            public function SetCSIMTarget($aTarget, $aWinTarget = '')
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Method name "PlotMark::GetWidth" is not in camel caps format
        Open

            public function GetWidth()
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Method name "PlotMark::GetCSIMAreas" is not in camel caps format
        Open

            public function GetCSIMAreas()
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Method name "PlotMark::AddCSIMCircle" is not in camel caps format
        Open

            public function AddCSIMCircle($x, $y, $r)
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Method name "PlotMark::GetType" is not in camel caps format
        Open

            public function GetType()
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Method name "PlotMark::Show" is not in camel caps format
        Open

            public function Show($aShow = true)
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Method name "PlotMark::SetType" is not in camel caps format
        Open

            public function SetType($aType, $aFileName = '', $aScale = 1.0)
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Method name "PlotMark::SetCSIMAltVal" is not in camel caps format
        Open

            public function SetCSIMAltVal($aY, $aX = '')
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Method name "PlotMark::Hide" is not in camel caps format
        Open

            public function Hide($aHide = true)
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Method name "PlotMark::SetCSIMAlt" is not in camel caps format
        Open

            public function SetCSIMAlt($aAlt)
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Method name "PlotMark::SetCallbackYX" is not in camel caps format
        Open

            public function SetCallbackYX($aFunc)
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        Each PHP statement must be on a line by itself
        Open

                        ++$dx; ++$dy;
        Severity: Minor
        Found in src/plot/PlotMark.php by phpcodesniffer

        There are no issues that match your filters.

        Category
        Status