vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

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

        'name' => VINDI_PREFIX_PLAN . $data['name'],

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

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

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

        'billing_trigger_type' => 'beginning_of_period',

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

            update_post_meta( $post_id, 'vindi_product_id', $createdProduct['id'] );

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

    ));

Line indented incorrectly; expected 8 spaces, found 4
Open

    if (get_post_type($post_id) != 'product') {

Line indented incorrectly; expected 4 spaces, found 2
Open

  function trash($post_id)

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

          return;

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

          return;

Space after opening parenthesis of function call prohibited
Open

      load_plugin_textdomain( 'vindi-payment-gateway', false, plugin_dir_path( __FILE__ ) . '/languages/' );
Severity: Minor
Found in src/i18n/Languages.php by phpcodesniffer

Multi-line function call not indented correctly; expected 12 spaces but found 10
Open

          )

Space after opening parenthesis of function call prohibited
Open

if ( ! defined( 'ABSPATH' ) ) {

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

  {

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

  }

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

    $this->init_settings();

Line indented incorrectly; expected 4 spaces, found 2
Open

  }

Expected 0 spaces before closing bracket; 1 found
Open

    $this->invalidApiKey = get_option( 'vindi_invalid_api_key', false );
Severity
Category
Status
Source
Language