vindi/vindi-woocommerce

View on GitHub
src/controllers/index.php

Summary

Maintainability
A
0 mins
Test Coverage

Showing 17 of 17 total issues

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

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

Visibility must be declared on method "__construct"
Open

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

Visibility must be declared on method "includes"
Open

function includes()
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

function __construct(VindiSettings $vindi_settings)
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

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 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

}
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 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 4 spaces, found 2
Open

}
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 4 spaces, found 2
Open

function includes()
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

There are no issues that match your filters.

Category
Status