vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Line indented incorrectly; expected 4 spaces, found 2
Open

  public $products;
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  function __construct(VindiSettings $vindi_settings)
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  function includes()
Severity: Minor
Found in src/controllers/index.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

if ( ! defined( 'ABSPATH' ) ) {

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

    global $woocommerce;

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

    $this->api = new VindiApi($this->get_api_key(), $this->logger, $this->get_is_active_sandbox());

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

      sprintf(

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

    $url           = admin_url(sprintf('admin.php?page=wc-status&tab=logs&log_file=%s-%s-log', VINDI, $this->get_token()));

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

      $product->get_meta('_subscription_trial_length'),

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

    $vindi_product_id = get_post_meta($post_id, 'vindi_product_id', true);

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

    $updatedProduct = $this->routes->updateProduct(

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

        'pricing_schema' => array(

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

      $vindi_product_id,

Line indented incorrectly; expected 4 spaces, found 2
Open

  }

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

        'status' => ($data['status'] == 'publish') ? 'active' : 'inactive',

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

    ));

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

      )

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

      'plan' => $inactivatedPlan,

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

      $vindi_plan_id,

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

    );
Severity
Category
Status
Source
Language