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

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

Line indented incorrectly; expected 8 spaces, found 6
Open

      foreach ($this->vindi_settings->woocommerce->cart->cart_contents as $item) {

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

    $productExists = isset($response['product']['id']) ? $response['product'] : false;
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

            $installments = $plan['installments'];

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

    return $productExists;
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

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

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

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

      filter_var($plan_id, FILTER_SANITIZE_NUMBER_INT)
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

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

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

  {
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 4 spaces, found 2
Open

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

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

      filter_var($user_id, FILTER_SANITIZE_NUMBER_INT)
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

      filter_var($user_id, FILTER_SANITIZE_NUMBER_INT)
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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 4 spaces, found 2
Open

  exit;

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

          $user_payment_profile['payment_company'] = $payment_profile['payment_company']['code'];

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 6
Open

      );
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
Severity
Category
Status
Source
Language