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

      return $new_array;

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

    WC_Subscriptions_Manager::prepare_renewal($subscription->id);
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

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

Line indented incorrectly; expected 8 spaces, found 4
Open

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

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

    return false;
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

        return true;
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 6
Open

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

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

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

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

    $log = $data;
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

      set_transient($transient_key, $product, 1 * HOUR_IN_SECONDS);
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

    $product = $this->findProductByCode($code);
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

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

Usage of ELSE IF is discouraged; use ELSEIF instead
Open

        } else if ('PaymentMethod::BankSlip' === $method['type'] || 'PaymentMethod::OnlineBankSlip' === $method['type']) {
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Line indented incorrectly; expected 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

    $customer = $this->findCustomerById($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 (empty($customer))
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

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

Line indented incorrectly; expected 4 spaces, found 2
Open

  public function base_path()
Severity: Minor
Found in src/services/Api.php by phpcodesniffer

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

          delete_transient('vindi_plans');
Severity: Minor
Found in src/services/Api.php by phpcodesniffer

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

          return $error['id'];
Severity: Minor
Found in src/services/Api.php by phpcodesniffer
Severity
Category
Status
Source
Language