HuasoFoundries/jpgraph

View on GitHub

Showing 6,805 of 6,805 total issues

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

class GanttGraph extends Graph
{
    public $scale; // Public accessible
    public $hgrid;
    private $iObj                    = []; // Gantt objects
Severity: Minor
Found in src/graph/GanttGraph.php by phpmd

The class GanttScale has 16 public methods. Consider refactoring GanttScale to keep number of public methods under 10.
Open

class GanttScale
{
    public $minute;
    public $hour;
    public $day;
Severity: Minor
Found in src/graph/GanttScale.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

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

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

TooManyMethods

Since: 0.1

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

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

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

Example

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

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

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

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

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

TooManyPublicMethods

Since: 0.1

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

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

Example

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

The class LinearScale has 14 public methods. Consider refactoring LinearScale to keep number of public methods under 10.
Open

class LinearScale
{
    public $textscale = false; // Just a flag to let the Plot class find out if
    // we are a textscale or not. This is a cludge since
    // this information is available in Graph::axtype but
Severity: Minor
Found in src/graph/LinearScale.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

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

class LinearTicks extends Ticks
{
    public $minor_step    = 1;
    public $major_step    = 2;
    public $xlabel_offset = 0;
Severity: Minor
Found in src/graph/LinearTicks.php by phpmd

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

class MGraph
{
    public $title;
    public $subtitle;
    public $subsubtitle;
Severity: Minor
Found in src/graph/MGraph.php by phpmd

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

class Legend
{
    public $txtcol          = [];
    public $font_family     = FF_DEFAULT;
    public $font_style      = FS_NORMAL;
Severity: Minor
Found in src/graph/Legend.php by phpmd

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

class PolarAxis extends Axis
{
    private $angle_step        = 15;
    private $angle_color       = 'lightgray';
    private $angle_label_color = 'black';
Severity: Minor
Found in src/graph/PolarAxis.php by phpmd

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

class LinearScale
{
    public $textscale = false; // Just a flag to let the Plot class find out if
    // we are a textscale or not. This is a cludge since
    // this information is available in Graph::axtype but
Severity: Minor
Found in src/graph/LinearScale.php by phpmd

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

class Contour
{
    private $dataPoints   = [];
    private $nbrCols      = 0;
    private $nbrRows      = 0;
Severity: Minor
Found in src/plot/Contour.php by phpmd

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

class BarPlot extends Plot
{
    public $fill                = false;
    public $fill_color          = 'lightblue'; // Default is to fill with light blue
    public $iPattern            = -1;
Severity: Minor
Found in src/plot/BarPlot.php by phpmd

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

class Gradient
{
    private $img;
    private $numcolors = 100;

Severity: Minor
Found in src/plot/Gradient.php by phpmd

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

class LinePlot extends Plot
{
    public $mark;
    protected $filled             = false;
    protected $fill_color         = 'blue';
Severity: Minor
Found in src/plot/LinePlot.php by phpmd

The class PiePlot has 15 public methods. Consider refactoring PiePlot to keep number of public methods under 10.
Open

class PiePlot
{
    public $posx                     = 0.5;
    public $posy                     = 0.5;
    public $is_using_plot_theme      = false;
Severity: Minor
Found in src/plot/PiePlot.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

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

class PiePlot
{
    public $posx                     = 0.5;
    public $posy                     = 0.5;
    public $is_using_plot_theme      = false;
Severity: Minor
Found in src/plot/PiePlot.php by phpmd

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

class PiePlot3D extends PiePlot
{
    private $labelhintcolor = 'red';
    private $showlabelhint  = true;
    private $angle          = 50;
Severity: Minor
Found in src/plot/PiePlot3D.php by phpmd

The class Plot has 12 public methods. Consider refactoring Plot to keep number of public methods under 10.
Open

class Plot
{
    public $numpoints = 0;
    public $value;
    public $legend         = '';
Severity: Minor
Found in src/plot/Plot.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

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

class WindrosePlot
{
    private $iAntiAlias          = true;
    private $iData               = [];
    public $iX                   = 0.5;
Severity: Minor
Found in src/plot/WindrosePlot.php by phpmd
Severity
Category
Status
Source
Language