vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Expected 0 spaces after opening bracket; newline found
Open

        if (

Space after opening parenthesis of function call prohibited
Open

      <a href="<?php echo get_permalink( wc_get_page_id( 'myaccount' ) ); ?>">

Expected 1 space after IF keyword; 0 found
Open

        if(!self::check_critical_dependencies()) {

Opening brace should be on a new line
Open

  public function customer() {

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

    $reason = sanitize_text_field($reason);
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  }

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

    $charge_id = $last_charge['id'];
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

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

Expected 0 spaces after opening bracket; newline found
Open

        if (

Line indented incorrectly; expected 4 spaces, found 2
Open

  public function __construct(VindiSettings $vindi_settings, VindiControllers $controllers)
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

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

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

    $this->title = $this->get_option('title');
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        <p><strong><?php _e('Vindi', VINDI);?></strong>: <?php printf( __( 'Não foi possível criar/atualizar o produto na Vindi!', VINDI ) ); ?></p>
Severity: Minor
Found in src/views/product-status.php by phpcodesniffer

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

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

Closing parenthesis of a multi-line function call must be on a line by itself
Open

                        ), array('a' => array('href' => true))));

Line indented incorrectly; expected 8 spaces, found 4
Open

    if ($this->is_valid_br_zip_code($store_postcode)) {
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

      $order = new WC_Order(filter_var($_GET['order_id'], FILTER_SANITIZE_NUMBER_INT));
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

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

Line indented incorrectly; expected 8 spaces, found 4
Open

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

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

      $name,
Severity
Category
Status
Source
Language