src/Options/Tooltips.php
Tooltips
has 64 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Tooltips implements ArraySerializableInterface, JsonSerializable
{
use ArraySerializable;
/**
File Tooltips.php
has 333 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Halfpastfour\PHPChartJS\Options;
use Halfpastfour\PHPChartJS\ArraySerializableInterface;
The class Tooltips has an overall complexity of 65 which is very high. The configured complexity threshold is 50. Open
Open
class Tooltips implements ArraySerializableInterface, JsonSerializable
{
use ArraySerializable;
/**
- Exclude checks
The class Tooltips has 64 public methods and attributes. Consider reducing the number of public items to less than 45. Open
Open
class Tooltips implements ArraySerializableInterface, JsonSerializable
{
use ArraySerializable;
/**
- Read upRead up
- Exclude checks
ExcessivePublicCount
Since: 0.1
A large number of public methods and attributes declared in a class can indicate the class may need to be broken up as increased effort will be required to thoroughly test it.
Example
public class Foo {
public $value;
public $something;
public $var;
// [... more more public attributes ...]
public function doWork() {}
public function doMoreWork() {}
public function doWorkAgain() {}
// [... more more public methods ...]
}