src/controllers/index.php
<?phpnamespace VindiPaymentGateways; /** * Merging all the controllers needed to * communication between the Vindi API. * * @return void; */ class VindiControllers{ /** * @var string */Avoid unused private fields such as '$path'.
Line indented incorrectly; expected 4 spaces, found 2 private $path; /** * @var PlansController */Line indented incorrectly; expected 4 spaces, found 2 public $plans; /** * @var CustomerController */Line indented incorrectly; expected 4 spaces, found 2 public $customers; /** * @var ProductController */Line indented incorrectly; expected 4 spaces, found 2 public $products; Visibility must be declared on method "__construct"
Line indented incorrectly; expected 4 spaces, found 2 function __construct(VindiSettings $vindi_settings)Line indented incorrectly; expected at least 4 spaces, found 2 {Line indented incorrectly; expected at least 8 spaces, found 4 $this->includes();Line indented incorrectly; expected at least 8 spaces, found 4 $this->plans = new PlansController($vindi_settings);Line indented incorrectly; expected at least 8 spaces, found 4 $this->customers = new CustomerController($vindi_settings);Line indented incorrectly; expected at least 8 spaces, found 4 $this->products = new ProductController($vindi_settings);Line indented incorrectly; expected 4 spaces, found 2 } Visibility must be declared on method "includes"
Line indented incorrectly; expected 4 spaces, found 2 function includes()Line indented incorrectly; expected at least 4 spaces, found 2 { require_once plugin_dir_path(__FILE__) . '/PlansController.php'; require_once plugin_dir_path(__FILE__) . '/CustomerController.php'; require_once plugin_dir_path(__FILE__) . '/ProductController.php';Line indented incorrectly; expected 4 spaces, found 2 }}