vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Line indented incorrectly; expected 4 spaces, found 2
Open

  public function refundCharge($charge_id, $data)
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  }
Severity: Minor
Found in src/services/Api.php by phpcodesniffer

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

    $url         = $this->base_path() . 'merchant';
Severity: Minor
Found in src/services/Api.php by phpcodesniffer

Line indented incorrectly; expected 16 spaces, found 8
Open

        if ('unauthorized' == $error['id'] and 'authorization' == $error['parameter']) {
Severity: Minor
Found in src/services/Api.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

    }
Severity: Minor
Found in src/services/Api.php by phpcodesniffer

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

    $url  = sprintf('%s%s', $this->base_path(), $endpoint);
Severity: Minor
Found in src/services/Api.php by phpcodesniffer

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

      'headers' => array(
Severity: Minor
Found in src/services/Api.php by phpcodesniffer

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

    $this->is_active   = $is_active;
Severity: Minor
Found in src/services/Logger.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  public static function get_vindi_amount($total, $currency = '')

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

  {

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

    return version_compare(WC_VERSION, $version, '<');

Line indented incorrectly; expected 12 spaces, found 6
Open

      foreach ($subscription->get_items() as $subscription_item) {

Closing parenthesis of a multi-line function call must be on a line by itself
Open

      sprintf('subscriptions/%s%s', filter_var($subscription_id, FILTER_SANITIZE_NUMBER_INT), $query), 'DELETE');
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

    if ($response && array_key_exists('status', $response)) {
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

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

Line indented incorrectly; expected 4 spaces, found 2
Open

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

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

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

Line indented incorrectly; expected 8 spaces, found 4
Open

    if (false === empty($response['products'])) {
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

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

        'name'           => $name,
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
Severity
Category
Status
Source
Language