vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

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

      'meta_value' => $bill_id,
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

Closing brace must be on a line by itself
Open

    protected function __construct(){}

Line indented incorrectly; expected 8 spaces, found 4
Open

    if(!$get_type || !$get_interval_multiplier) {
Severity: Minor
Found in src/utils/Conversions.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  }
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

    if (isset($_GET['order_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

Line indented incorrectly; expected 4 spaces, found 2
Open

  public function process_payment($order_id)
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

        'result'   => 'fail',
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

            sprintf(__('[Transação #%2$s]: reembolsado R$%1$s', VINDI), $result['amount'], $result['id'])
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Whitespace found at end of line
Open

      (! is_user_logged_in() && get_option('woocommerce_enable_guest_checkout') == "no") 

Whitespace found at end of line
Open

      && (is_checkout()) 

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

      exit;

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

      __('Divergencia de valores do Pedido #%s: Valor Esperado R$ %s, Valor Pago R$ %s.', VINDI),
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

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

    );
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

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

    $query = $this->query_order_by_metas(array(
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

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

      $subscription->update_dates(array('end_date' => $end_date));
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

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

  {
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

Expected 1 space after closing parenthesis; found 0
Open

if (!$settings->check_ssl()): ?>

Expected 0 spaces before closing bracket; 1 found
Open

                                    <?php _e('Baixar boleto', VINDI ); ?>
Severity
Category
Status
Source
Language