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

      $subscription = $this->find_subscription_by_id($data->bill->subscription->code);
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  <?php $settings->generate_settings_html();?>

Expected 1 space after ELSE keyword; 0 found
Open

    <?php else: ?>

Expected 1 space after closing parenthesis; found 0
Open

                <?php if (is_array($subscription) && array_key_exists('product', $subscription) && !in_array($subscription['bill']['status'], array('paid', 'canceled'))): ?>

Expected 1 space after closing parenthesis; found 0
Open

  <?php if(!empty($user_payment_profile)): ?>

Line indented incorrectly; expected 12 spaces, found 10
Open

          <?php _e("Cartão Cadastrado", VINDI); ?>

Line indented incorrectly; expected 12 spaces, found 10
Open

          <?php echo $user_payment_profile['card_number']; ?>

Line indented incorrectly; expected 12 spaces, found 10
Open

          <?php _e("Validade (mm/aa)", VINDI) ?>

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

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

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

      "month" => 1,
Severity: Minor
Found in src/utils/Conversions.php by phpcodesniffer

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

        'credit_card' => array(),
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

      $response = $this->api->request('payment_methods', 'GET');
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

            $method['payment_companies']
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

      $merchant = $is_config ? $this->getMerchant($is_config) : $this->getMerchant();
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

    if (false === ($merchant = get_transient('vindi_merchant')) || $is_config) {
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  public function getPaymentProfile($user_vindi_id)
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

    if (end($response['payment_profiles']) !== null)
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  private function convert_body_to_json($data)
Severity: Minor
Found in src/services/Api.php by phpcodesniffer

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

    $error_id         = empty($error['id']) ? '' : $error['id'];
Severity: Minor
Found in src/services/Api.php by phpcodesniffer

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

    $method      = 'GET';
Severity: Minor
Found in src/services/Api.php by phpcodesniffer
Severity
Category
Status
Source
Language