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
- Exclude checks
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;
- Read upRead up
- Exclude checks
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)
- Read upRead up
- Exclude checks
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)
- Exclude checks
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)
- Read upRead up
- Exclude checks
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
- Read upRead up
- Exclude checks
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;
- Exclude checks
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;
- Exclude checks
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;
- Exclude checks
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';
- Exclude checks
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
- Exclude checks
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;
- Exclude checks
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;
- Exclude checks
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;
- Exclude checks
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';
- Exclude checks
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;
- Read upRead up
- Exclude checks
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;
- Exclude checks
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;
- Exclude checks
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 = '';
- Read upRead up
- Exclude checks
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;
- Exclude checks