src/VindiWoocommerce.php
A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 13 and the first side effect is on line 7. Open
Open
<?php
- Exclude checks
Visibility must be declared on property "$instance" Open
Open
static $instance = null;
- Exclude checks
Line indented incorrectly; expected at least 16 spaces, found 8 Open
Open
self::$instance = new self;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$methods[] = new VindiCreditGateway($this->settings, $this->controllers);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$this->settings = new VindiSettings();
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
new FrontendFilesLoader();
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 6 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$this->languages = new VindiLanguages();
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
add_filter('woocommerce_payment_gateways', array(&$this, 'add_gateway'));
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
return plugin_dir_path(__FILE__);
- Exclude checks
Line indented incorrectly; expected 12 spaces, found 6 Open
Open
if (null == self::$instance) {
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
Open
return self::$instance;
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
return $methods;
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
public static function getPath()
- 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 function init()
- 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
public function __construct()
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$this->subscription_status_handler = new VindiSubscriptionStatusHandler($this->settings);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
$this->webhooks, 'handle'
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$methods[] = new VindiBankSlipGateway($this->settings, $this->controllers);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$this->init();
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
add_action('woocommerce_api_' . self::WC_API_CALLBACK, array(
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
public static function get_instance()
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 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 at least 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 at least 8 spaces, found 4 Open
Open
$this->frontend_files_loader = new FrontendFilesLoader();
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
if (VindiDependencies::check()) {
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
public function add_gateway($methods)
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$this->vindi_status_notifier = new VindiProductStatus($this->settings);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$this->controllers = new VindiControllers($this->settings);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$this->webhooks = new VindiWebhooks($this->settings);
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 4 spaces, found 2 Open
Open
{
- Exclude checks