src/controllers/index.php
Avoid unused private fields such as '$path'. Open
Open
private $path;
- Read upRead up
- Exclude checks
UnusedPrivateField
Since: 0.2
Detects when a private field is declared and/or assigned a value, but not used.
Example
class Something
{
private static $FOO = 2; // Unused
private $i = 5; // Unused
private $j = 6;
public function addOne()
{
return $this->j++;
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedprivatefield
Visibility must be declared on method "includes" Open
Open
function includes()
- Exclude checks
Visibility must be declared on method "__construct" Open
Open
function __construct(VindiSettings $vindi_settings)
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
public $products;
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
function __construct(VindiSettings $vindi_settings)
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
function includes()
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
public $plans;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$this->includes();
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$this->customers = new CustomerController($vindi_settings);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$this->plans = new PlansController($vindi_settings);
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
public $customers;
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
Open
{
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
private $path;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$this->products = new ProductController($vindi_settings);
- Exclude checks