vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

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

  {
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

    ), 'PUT', $data);
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

    return $response['plan'];
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

    return $response['customer'];
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

      $this->method_title         = __('Vindi - Cartão de Crédito', VINDI);

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

        INPUT_POST,

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

        'vindi-old-cc-data-check',

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

        FILTER_SANITIZE_NUMBER_INT

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

          $user_payment_profile['card_number']     = sprintf('**** **** **** %s', $payment_profile['card_number_last_four']);

Line indented incorrectly; expected 16 spaces, found 10
Open

          } elseif ($plan['installments'] < $installments) {

Line indented incorrectly; expected 4 spaces, found 2
Open

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

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

      'products/%s',
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

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

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

    $response = $this->api->request(sprintf(
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

      'customers/%s',
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

      $this->icon                 = apply_filters('vindi_woocommerce_credit_card_icon', '');

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

      $this->enable_interest_rate = $this->get_option('enable_interest_rate');

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

      $this->interest_rate = $this->get_option('interest_rate');

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

      return 'cc';

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

      return 'yes' === $this->enable_interest_rate;
Severity
Category
Status
Source
Language