HuasoFoundries/jpgraph

View on GitHub
src/image/RotImage.php

Summary

Maintainability
C
7 hrs
Test Coverage

The class RotImage has 17 public methods. Consider refactoring RotImage to keep number of public methods under 10.
Open

class RotImage extends Image
{
    public $a      = 0;
    public $dx     = 0;
    public $dy     = 0;
Severity: Minor
Found in src/image/RotImage.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

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

class RotImage extends Image
{
    public $a      = 0;
    public $dx     = 0;
    public $dy     = 0;
Severity: Minor
Found in src/image/RotImage.php - About 2 hrs to fix

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

        public function CopyMerge($fromImg, $toX, $toY, $fromX, $fromY, $toWidth, $toHeight, $fromWidth = -1, $fromHeight = -1, $aMix = 100)
    Severity: Major
    Found in src/image/RotImage.php - About 1 hr to fix

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

          public function FilledArc($xc, $yc, $w, $h, $s, $e, $style = '')
      Severity: Major
      Found in src/image/RotImage.php - About 50 mins to fix

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

            public function Arc($xc, $yc, $w, $h, $s, $e)
        Severity: Minor
        Found in src/image/RotImage.php - About 45 mins to fix

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

              public function StrokeText($x, $y, $txt, $dir = 0, $paragraph_align = 'left', $debug = false)
          Severity: Minor
          Found in src/image/RotImage.php - About 45 mins to fix

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

                public function DashedLine($x1, $y1, $x2, $y2, $dash_length = 1, $dash_space = 4)
            Severity: Minor
            Found in src/image/RotImage.php - About 45 mins to fix

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

                  public function __construct($aWidth, $aHeight, $a = 0, $aFormat = DEFAULT_GFORMAT, $aSetAutoMargin = true)
              Severity: Minor
              Found in src/image/RotImage.php - About 35 mins to fix

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

                    public function CopyMerge($fromImg, $toX, $toY, $fromX, $fromY, $toWidth, $toHeight, $fromWidth = -1, $fromHeight = -1, $aMix = 100)
                    {
                        list($toX, $toY) = $this->Rotate($toX, $toY);
                        parent::CopyMerge($fromImg, $toX, $toY, $fromX, $fromY, $toWidth, $toHeight, $fromWidth, $fromHeight, $aMix);
                    }
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

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

                    public function __construct($aWidth, $aHeight, $a = 0, $aFormat = DEFAULT_GFORMAT, $aSetAutoMargin = true)
                Severity: Minor
                Found in src/image/RotImage.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 Polygon has a boolean flag argument $closed, which is a certain sign of a Single Responsibility Principle violation.
                Open

                    public function Polygon($pnts, $closed = false, $fast = false)
                Severity: Minor
                Found in src/image/RotImage.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 StrokeText has a boolean flag argument $debug, which is a certain sign of a Single Responsibility Principle violation.
                Open

                    public function StrokeText($x, $y, $txt, $dir = 0, $paragraph_align = 'left', $debug = false)
                Severity: Minor
                Found in src/image/RotImage.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 Polygon has a boolean flag argument $fast, which is a certain sign of a Single Responsibility Principle violation.
                Open

                    public function Polygon($pnts, $closed = false, $fast = false)
                Severity: Minor
                Found in src/image/RotImage.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 Polygon uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                        } else {
                            parent::Polygon($pnts, $closed, $fast);
                        }
                Severity: Minor
                Found in src/image/RotImage.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 FilledRectangle uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                Open

                        } else {
                            $this->FilledPolygon([$x1, $y1, $x2, $y1, $x2, $y2, $x1, $y2]);
                        }
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ElseExpression

                Since: 1.4.0

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

                Example

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

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

                Avoid unused parameters such as '$style'.
                Open

                    public function FilledArc($xc, $yc, $w, $h, $s, $e, $style = '')
                Severity: Minor
                Found in src/image/RotImage.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 variables with short names like $dy. Configured minimum length is 3.
                Open

                    public $dy     = 0;
                Severity: Minor
                Found in src/image/RotImage.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

                    public function SetCenter($dx, $dy)
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public function Arc($xc, $yc, $w, $h, $s, $e)
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public function Arc($xc, $yc, $w, $h, $s, $e)
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public function FilledArc($xc, $yc, $w, $h, $s, $e, $style = '')
                Severity: Minor
                Found in src/image/RotImage.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 $s. Configured minimum length is 3.
                Open

                    public function Arc($xc, $yc, $w, $h, $s, $e)
                Severity: Minor
                Found in src/image/RotImage.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/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public $a      = 0;
                Severity: Minor
                Found in src/image/RotImage.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

                    public $dx     = 0;
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public function FilledArc($xc, $yc, $w, $h, $s, $e, $style = '')
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public function FilledArc($xc, $yc, $w, $h, $s, $e, $style = '')
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                        $sa = sin($a);
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public function Circle($xc, $yc, $r)
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public function FilledCircle($xc, $yc, $r)
                Severity: Minor
                Found in src/image/RotImage.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

                    private $m     = [];
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                        $ca = cos($a);
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public function Arc($xc, $yc, $w, $h, $s, $e)
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public function __construct($aWidth, $aHeight, $a = 0, $aFormat = DEFAULT_GFORMAT, $aSetAutoMargin = true)
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public function Arc($xc, $yc, $w, $h, $s, $e)
                Severity: Minor
                Found in src/image/RotImage.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

                    public function Arc($xc, $yc, $w, $h, $s, $e)
                Severity: Minor
                Found in src/image/RotImage.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 $s. Configured minimum length is 3.
                Open

                    public function FilledArc($xc, $yc, $w, $h, $s, $e, $style = '')
                Severity: Minor
                Found in src/image/RotImage.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 FilledCircle($xc, $yc, $r)
                Severity: Minor
                Found in src/image/RotImage.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/image/RotImage.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/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                        $a = $this->a;
                Severity: Minor
                Found in src/image/RotImage.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 Circle($xc, $yc, $r)
                Severity: Minor
                Found in src/image/RotImage.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

                    public function SetTranslation($dx, $dy)
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public function Circle($xc, $yc, $r)
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public function FilledCircle($xc, $yc, $r)
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public function FilledArc($xc, $yc, $w, $h, $s, $e, $style = '')
                Severity: Minor
                Found in src/image/RotImage.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

                    public function SetTranslation($dx, $dy)
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public function SetAngle($a)
                Severity: Minor
                Found in src/image/RotImage.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

                    public function SetCenter($dx, $dy)
                Severity: Minor
                Found in src/image/RotImage.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

                    public function FilledArc($xc, $yc, $w, $h, $s, $e, $style = '')
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public function Line($x1, $y1, $x2, $y2)
                Severity: Minor
                Found in src/image/RotImage.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 Point($x, $y)
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                        list($xp, $yp) = $this->Rotate($x, $y);
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                            list($x, $y)  = $this->Rotate($pnts[$i], $pnts[$i + 1]);
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                        list($xp, $yp) = $this->Rotate($x, $y);
                Severity: Minor
                Found in src/image/RotImage.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 StrokeText($x, $y, $txt, $dir = 0, $paragraph_align = 'left', $debug = false)
                Severity: Minor
                Found in src/image/RotImage.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

                    public function DashedLine($x1, $y1, $x2, $y2, $dash_length = 1, $dash_space = 4)
                Severity: Minor
                Found in src/image/RotImage.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

                    public function DashedLine($x1, $y1, $x2, $y2, $dash_length = 1, $dash_space = 4)
                Severity: Minor
                Found in src/image/RotImage.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 Rotate($x, $y)
                Severity: Minor
                Found in src/image/RotImage.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

                    public function Line($x1, $y1, $x2, $y2)
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public function Rectangle($x1, $y1, $x2, $y2)
                Severity: Minor
                Found in src/image/RotImage.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

                    public function FilledRectangle($x1, $y1, $x2, $y2)
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                        list($xp, $yp) = $this->Rotate($x, $y);
                Severity: Minor
                Found in src/image/RotImage.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

                    public function Rectangle($x1, $y1, $x2, $y2)
                Severity: Minor
                Found in src/image/RotImage.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

                    public function Line($x1, $y1, $x2, $y2)
                Severity: Minor
                Found in src/image/RotImage.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

                    public function FilledRectangle($x1, $y1, $x2, $y2)
                Severity: Minor
                Found in src/image/RotImage.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

                    public function FilledRectangle($x1, $y1, $x2, $y2)
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                        list($xp, $yp) = $this->Rotate($x, $y);
                Severity: Minor
                Found in src/image/RotImage.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 StrokeText($x, $y, $txt, $dir = 0, $paragraph_align = 'left', $debug = false)
                Severity: Minor
                Found in src/image/RotImage.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

                    public function Line($x1, $y1, $x2, $y2)
                Severity: Minor
                Found in src/image/RotImage.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

                    public function Rectangle($x1, $y1, $x2, $y2)
                Severity: Minor
                Found in src/image/RotImage.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/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                        $y1 = round($this->m[1][0] * $x + $this->m[1][1] * $y, 1) + $this->m[1][2] + $this->transy;
                Severity: Minor
                Found in src/image/RotImage.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

                    public function DashedLine($x1, $y1, $x2, $y2, $dash_length = 1, $dash_space = 4)
                Severity: Minor
                Found in src/image/RotImage.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($pnts) - 1;
                Severity: Minor
                Found in src/image/RotImage.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 Point($x, $y)
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public function DashedLine($x1, $y1, $x2, $y2, $dash_length = 1, $dash_space = 4)
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                    public function FilledRectangle($x1, $y1, $x2, $y2)
                Severity: Minor
                Found in src/image/RotImage.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 = round($this->m[0][0] * $x + $this->m[0][1] * $y, 1) + $this->m[0][2] + $this->transx;
                Severity: Minor
                Found in src/image/RotImage.php by phpmd

                ShortVariable

                Since: 0.2

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

                Example

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

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

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

                            list($x, $y)  = $this->Rotate($pnts[$i], $pnts[$i + 1]);
                Severity: Minor
                Found in src/image/RotImage.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

                    public function Rectangle($x1, $y1, $x2, $y2)
                Severity: Minor
                Found in src/image/RotImage.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 Rotate($x, $y)
                Severity: Minor
                Found in src/image/RotImage.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 "RotImage::SetCenter" is not in camel caps format
                Open

                    public function SetCenter($dx, $dy)
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

                Method name "RotImage::CopyMerge" is not in camel caps format
                Open

                    public function CopyMerge($fromImg, $toX, $toY, $fromX, $fromY, $toWidth, $toHeight, $fromWidth = -1, $fromHeight = -1, $aMix = 100)
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

                Method name "RotImage::ArrRotate" is not in camel caps format
                Open

                    public function ArrRotate($pnts)
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

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

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

                Method name "RotImage::FilledArc" is not in camel caps format
                Open

                    public function FilledArc($xc, $yc, $w, $h, $s, $e, $style = '')
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

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

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

                Method name "RotImage::FilledPolygon" is not in camel caps format
                Open

                    public function FilledPolygon($pnts)
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

                Method name "RotImage::SetTranslation" is not in camel caps format
                Open

                    public function SetTranslation($dx, $dy)
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

                Method name "RotImage::UpdateRotMatrice" is not in camel caps format
                Open

                    public function UpdateRotMatrice()
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

                Method name "RotImage::FilledCircle" is not in camel caps format
                Open

                    public function FilledCircle($xc, $yc, $r)
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

                Method name "RotImage::DashedLine" is not in camel caps format
                Open

                    public function DashedLine($x1, $y1, $x2, $y2, $dash_length = 1, $dash_space = 4)
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

                Method name "RotImage::Rectangle" is not in camel caps format
                Open

                    public function Rectangle($x1, $y1, $x2, $y2)
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

                Method name "RotImage::Arc" is not in camel caps format
                Open

                    public function Arc($xc, $yc, $w, $h, $s, $e)
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

                Method name "RotImage::Rotate" is not in camel caps format
                Open

                    public function Rotate($x, $y)
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

                Method name "RotImage::Line" is not in camel caps format
                Open

                    public function Line($x1, $y1, $x2, $y2)
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

                Method name "RotImage::Polygon" is not in camel caps format
                Open

                    public function Polygon($pnts, $closed = false, $fast = false)
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

                Method name "RotImage::Point" is not in camel caps format
                Open

                    public function Point($x, $y)
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

                Method name "RotImage::StrokeText" is not in camel caps format
                Open

                    public function StrokeText($x, $y, $txt, $dir = 0, $paragraph_align = 'left', $debug = false)
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

                Method name "RotImage::Circle" is not in camel caps format
                Open

                    public function Circle($xc, $yc, $r)
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

                Method name "RotImage::FilledRectangle" is not in camel caps format
                Open

                    public function FilledRectangle($x1, $y1, $x2, $y2)
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

                Line exceeds 120 characters; contains 136 characters
                Open

                    public function CopyMerge($fromImg, $toX, $toY, $fromX, $fromY, $toWidth, $toHeight, $fromWidth = -1, $fromHeight = -1, $aMix = 100)
                Severity: Minor
                Found in src/image/RotImage.php by phpcodesniffer

                There are no issues that match your filters.

                Category
                Status