vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Space after opening parenthesis of function call prohibited
Open

if ( ! defined( 'ABSPATH' ) ) {
Severity: Minor
Found in src/views/product-status.php by phpcodesniffer

Expected 0 spaces before closing bracket; 1 found
Open

        <p><strong><?php _e('Vindi', VINDI);?></strong>: <?php printf( __( 'O produto foi criado na Vindi com sucesso!', VINDI ) ); ?></p>
Severity: Minor
Found in src/views/product-status.php by phpcodesniffer

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

      __('O Plugin Vindi WooCommerce depende da versão %s+ do %s para funcionar! Como a versão atual do %s é mais antiga, o plugin foi DESATIVADO!', VINDI),

Expected 1 space after IF keyword; 0 found
Open

        if(!empty($errors)) {

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

      $version,

Expected 0 spaces before closing bracket; 1 found
Open

if ( ! defined( 'ABSPATH' ) ) {
Severity: Minor
Found in src/views/product-status.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 8 spaces, found 4
Open

    return !(boolean) preg_grep('/subscription/', $types);
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

    $results = [];
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

    if(!$bill) {
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 6
Open

      <?php _e('Clique aqui para acessar uma conta existente ou criá-la.', VINDI ); ?>

Line indented incorrectly; expected 8 spaces, found 4
Open

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

Line indented incorrectly; expected 8 spaces, found 4
Open

    foreach ($this->vindi_settings->woocommerce->cart->cart_contents as $item) {
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

    $order_id = filter_var($order_id, FILTER_SANITIZE_NUMBER_INT);
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

      return new WP_Error('error', __('Não é possível realizar reembolsos parciais, faça um reembolso manual caso você opte por esta opção.', VINDI));
Severity: Minor
Found in src/utils/PaymentGateway.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 12 spaces, found 6
Open

      switch (strtolower($result['status'])) {
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 6
Open

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

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

    $charges = $bill['charges'];
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

    $refund = $this->routes->refundCharge($charge_id, $data);
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer
Severity
Category
Status
Source
Language