vindi/vindi-woocommerce

View on GitHub
src/controllers/index.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused private fields such as '$path'.
Open

  private $path;
Severity: Minor
Found in src/controllers/index.php by phpmd

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

  function includes()
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Visibility must be declared on method "__construct"
Open

  function __construct(VindiSettings $vindi_settings)
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  public $products;
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  function __construct(VindiSettings $vindi_settings)
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  function includes()
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  public $plans;
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $this->includes();
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $this->customers = new CustomerController($vindi_settings);
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $this->plans = new PlansController($vindi_settings);
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  }
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  public $customers;
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 2
Open

  {
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  }
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Line indented incorrectly; expected at least 4 spaces, found 2
Open

  {
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  private $path;
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $this->products = new ProductController($vindi_settings);
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

There are no issues that match your filters.

Category
Status