vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

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

      return;

Line indented incorrectly; expected 4 spaces, found 2
Open

  }

Line indented incorrectly; expected 8 spaces, found 4
Open

    if (empty($vindi_product_id) || empty($vindi_plan_id)) {

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

      'status' => 'active',

Line indented incorrectly; expected 4 spaces, found 2
Open

  function update($post_id)

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

          return $this->create($post_id, '', '', true);

Line indented incorrectly; expected 12 spaces, found 8
Open

        }

Line indented incorrectly; expected 4 spaces, found 2
Open

  }

Expected 0 spaces before closing bracket; 1 found
Open

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

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

            set_transient('vindi_product_message', 'created', 60);

Line indented incorrectly; expected 0 spaces, found 2
Open

  class VindiLanguages {
Severity: Minor
Found in src/i18n/Languages.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

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

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

    include_once VINDI_SRC . 'views/product-status.php';

Line indented incorrectly; expected 4 spaces, found 2
Open

  private $plugin;

Line indented incorrectly; expected 8 spaces, found 4
Open

    if (is_admin()) {

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

    $this->form_fields = array(

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

      ),

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

      ),

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

          return;

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

        return $activatedProduct;
Severity
Category
Status
Source
Language