HuasoFoundries/jpgraph

View on GitHub

Showing 6,805 of 6,805 total issues

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

    public function Add($aGraph, $x = 0, $y = 0, $fx = 0, $fy = 0, $w = 0, $h = 0)
Severity: Major
Found in src/graph/MGraph.php - About 50 mins to fix

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

        public function Stroke($aImg, &$grid, $aPos, $aAxisAngle, $aScale, &$aMajPos, &$aMajLabel)
    Severity: Major
    Found in src/graph/RadarLinearTicks.php - About 50 mins to fix

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

      <?php
      Severity: Minor
      Found in src/config.inc.php by phpcodesniffer

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

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

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

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

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

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

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

      <?php
      Severity: Minor
      Found in src/image/DigitalLED74.php by phpcodesniffer

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

      <?php
      Severity: Minor
      Found in src/plot/PolarPlot.php by phpcodesniffer

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

      <?php
      Severity: Minor
      Found in src/util/Helper.php by phpcodesniffer

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

      <?php
      Severity: Minor
      Found in tests/CanvasTest.php by phpcodesniffer

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

      <?php
      Severity: Minor
      Found in tests/_bootstrap.php by phpcodesniffer

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

      <?php
      Severity: Minor
      Found in src/util/ErrMsgText.php by phpcodesniffer

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

      <?php
      Severity: Minor
      Found in src/includes/polyfills.php by phpcodesniffer

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

      <?php

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

      <?php
      Severity: Minor
      Found in src/lang/prod.inc.php by phpcodesniffer

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

      <?php
      Severity: Minor
      Found in src/plot/Plot.php by phpcodesniffer

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

              $x0 = $this->rect->x + round($this->linespacing / 2);
      Severity: Minor
      Found in src/graph/RectPatternLDiag.php by phpmd

      ShortVariable

      Since: 0.2

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

      Example

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

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

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

              $ye = $this->rect->ye;
      Severity: Minor
      Found in src/graph/RectPatternRDiag.php by phpmd

      ShortVariable

      Since: 0.2

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

      Example

      class Something {
          private $q = 15; // VIOLATION - Field
          public static function main( array $as ) { // VIOLATION - Formal
              $r = 20 + $this->q; // VIOLATION - Local
              for (int $i = 0; $i < 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 = $this->rect->y + round($this->linespacing / 2);
      Severity: Minor
      Found in src/graph/RectPatternRDiag.php by phpmd

      ShortVariable

      Since: 0.2

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

      Example

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

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

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

                      $l = ($k + 1) % $nbrpnts;
      Severity: Minor
      Found in src/graph/RadarGrid.php by phpmd

      ShortVariable

      Since: 0.2

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

      Example

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

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

      Severity
      Category
      Status
      Source
      Language