vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Line indented incorrectly; expected 12 spaces, found 10
Open

          }

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

Expected 0 spaces after opening bracket; 1 found
Open

if ( ! defined( 'ABSPATH' ) ) {

Line indented incorrectly; expected 4 spaces, found 2
Open

  private $invalidApiKey;

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

    $this->debug = $this->get_option('debug') == 'yes' ? true : false;

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

    $this->woocommerce = $woocommerce;

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

    $this->invalidApiKey = get_option( 'vindi_invalid_api_key', false );

Line indented incorrectly; expected 4 spaces, found 2
Open

  public static function add_settings_tab($settings_tabs)

Multi-line function call not indented correctly; expected 8 spaces but found 6
Open

      array(

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

    $updatedPlan = $this->routes->updatePlan(

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

        'interval_count' => $plan_interval['interval_count'],

Multi-line function call not indented correctly; expected 8 spaces but found 6
Open

      )

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

    $vindi_product_id = get_post_meta($product->id, 'vindi_product_id', true);

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

          return;

Line indented incorrectly; expected 10 spaces, found 8
Open

        if($updatedProduct) {

Line indented incorrectly; expected 4 spaces, found 2
Open

  }

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

    if(empty(get_transient('vindi_product_message')))

Line indented incorrectly; expected 4 spaces, found 2
Open

  public $logger;

Line indented incorrectly; expected 4 spaces, found 2
Open

  }
Severity
Category
Status
Source
Language