vindi/vindi-woocommerce

View on GitHub
src/VindiWoocommerce.php

Summary

Maintainability
A
0 mins
Test Coverage

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

<?php
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

Visibility must be declared on property "$instance"
Open

    static $instance = null;
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

        self::$instance = new self;
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

    $methods[] = new VindiCreditGateway($this->settings, $this->controllers);
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

    $this->settings = new VindiSettings();
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

    new FrontendFilesLoader();
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 6
Open

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

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

    $this->languages = new VindiLanguages();
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

    add_filter('woocommerce_payment_gateways', array(&$this, 'add_gateway'));
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

    return plugin_dir_path(__FILE__);
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 6
Open

      if (null == self::$instance) {
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

Line indented incorrectly; expected at least 12 spaces, found 6
Open

      return self::$instance;
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

    return $methods;
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  public static function getPath()
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

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

Line indented incorrectly; expected 4 spaces, found 2
Open

  public function init()
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

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

Line indented incorrectly; expected 4 spaces, found 2
Open

  public function __construct()
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

    $this->subscription_status_handler = new VindiSubscriptionStatusHandler($this->settings);
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

      $this->webhooks, 'handle'
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

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

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

    $methods[] = new VindiBankSlipGateway($this->settings, $this->controllers);
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

    $this->init();
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

    add_action('woocommerce_api_' . self::WC_API_CALLBACK, array(
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  public static function get_instance()
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

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

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

    ));
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

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

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

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

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

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

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

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

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

    $this->frontend_files_loader = new FrontendFilesLoader();
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

    if (VindiDependencies::check()) {
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  public function add_gateway($methods)
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

    $this->vindi_status_notifier = new VindiProductStatus($this->settings);
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

    $this->controllers = new VindiControllers($this->settings);
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

    $this->webhooks = new VindiWebhooks($this->settings);
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

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

Line indented incorrectly; expected 8 spaces, found 4
Open

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

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

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

There are no issues that match your filters.

Category
Status