HuasoFoundries/jpgraph

View on GitHub

Showing 706 of 6,805 total issues

Method Min has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function Min()
    {
        $nmax                 = 0;
        list($xmin, $ysetmin) = $this->plots[0]->Min();
        for ($i = 0; $i < safe_count($this->plots); ++$i) {
Severity: Minor
Found in src/plot/AccBarPlot.php - About 1 hr to fix

    Method CakeSlice has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function CakeSlice($xc, $yc, $w, $h, $s, $e, $fillcolor = '', $arccolor = '')
        {
            $s  = round($s);
            $e  = round($e);
            $w  = round($w);
    Severity: Minor
    Found in src/image/Image.php - About 1 hr to fix

      Method SetupGraph has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function SetupGraph($graph)
          {
              // graph
              /*
              $img = $graph->img;
      Severity: Minor
      Found in src/themes/OrangeTheme.php - About 1 hr to fix

        Method SetupGraph has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function SetupGraph($graph)
            {
                // graph
                /*
                $img = $graph->img;
        Severity: Minor
        Found in src/themes/RoseTheme.php - About 1 hr to fix

          Method SetupGraph has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function SetupGraph($graph)
              {
                  // graph
                  /*
                  $img = $graph->img;
          Severity: Minor
          Found in src/themes/OceanTheme.php - About 1 hr to fix

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

                public function __construct($xdata, $ydata)
                {
                    $this->y2    = [];
                    $this->xdata = $xdata;
                    $this->ydata = $ydata;
            Severity: Minor
            Found in src/util/Spline.php - About 1 hr to fix

              Method _autoSizeTable has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function _autoSizeTable($aImg)
                  {
                      // Get maximum column width and row height
                      $m = $this->iSize[0];
                      $n = $this->iSize[1];
              Severity: Minor
              Found in src/text/GTextTable.php - About 1 hr to fix

                Method SetupGraph has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function SetupGraph($graph)
                    {
                        // graph
                        /*
                        $img = $graph->img;
                Severity: Minor
                Found in src/themes/VividTheme.php - About 1 hr to fix

                  Method SetupGraph has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      public function SetupGraph($graph)
                      {
                          // graph
                          /*
                          $img = $graph->img;
                  Severity: Minor
                  Found in src/themes/AquaTheme.php - About 1 hr to fix

                    Method SetupGraph has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function SetupGraph($graph)
                        {
                            // graph
                            /*
                            $img = $graph->img;
                    Severity: Minor
                    Found in src/themes/GreenTheme.php - About 1 hr to fix

                      Method SetupGraph has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function SetupGraph($graph)
                          {
                              // graph
                              /*
                              $img = $graph->img;
                      Severity: Minor
                      Found in src/themes/PastelTheme.php - About 1 hr to fix

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

                            public function Stroke($img, $grid)
                            {
                                if (!$this->show) {
                                    return;
                                }
                        Severity: Minor
                        Found in src/graph/RadarGrid.php - About 1 hr to fix

                          Method GetMonthLabel has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function GetMonthLabel($aMonthNbr, $year)
                              {
                                  $sn = $this->iDateLocale->GetShortMonthName($aMonthNbr);
                                  $ln = $this->iDateLocale->GetLongMonthName($aMonthNbr);
                                  switch ($this->month->iStyle) {
                          Severity: Minor
                          Found in src/graph/GanttScale.php - About 1 hr to fix

                            Consider simplifying this complex logical expression.
                            Open

                                                    if ($midval == $ib) {
                                                        // Orientation "+"
                                                        $n1 = 0;
                                                        $n2 = 1;
                                                        $n3 = 2;
                            Severity: Major
                            Found in src/plot/Contour.php - About 1 hr to fix

                              Consider simplifying this complex logical expression.
                              Open

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

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

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

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

                                      public function _StrokeWindLeg($aImg, $xc, $yc, $a, $ri, $r, $weight, $color)
                                  Severity: Major
                                  Found in src/plot/WindrosePlot.php - About 1 hr to fix

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

                                        public function ShadowRectangle($xl, $yu, $xr, $yl, $fcolor = false, $shadow_width = 4, $shadow_color = 'darkgray', $useAlpha = true)
                                    Severity: Major
                                    Found in src/image/Image.php - About 1 hr to fix

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

                                          public function _Skew3D($aGdImg, $aHorizon = 120, $aSkewDist = 150, $aDir = SKEW3D_DOWN, $aHiQuality = false, $aMinSize = true, $aFillColor = '#FFFFFF', $aBorder = false)
                                      Severity: Major
                                      Found in src/image/ImgTrans.php - About 1 hr to fix

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

                                            public function CakeSlice($xc, $yc, $w, $h, $s, $e, $fillcolor = '', $arccolor = '')
                                        Severity: Major
                                        Found in src/image/Image.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language