vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Spaces must be used to indent lines; tabs are not allowed
Open

        if ($response = $this->api->request("subscriptions/". filter_var($subscription_id, FILTER_SANITIZE_NUMBER_INT),'GET')['subscription'])
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Line exceeds 120 characters; contains 122 characters
Open

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

Inline control structures are not allowed
Open

      if (!$response || !$response['merchant'])
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Inline control structures are not allowed
Open

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

Inline control structures are not allowed
Open

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

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return array|bool|mixed
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Inline control structures are not allowed
Open

    if(false !== $product)
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Line exceeds 120 characters; contains 128 characters
Open

    $this->logger->log(sprintf("[Request #%s]: Novo Request para a API.\n%s %s\n%s", $request_id, $method, $url, $data_to_log));
Severity: Minor
Found in src/services/Api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

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

Inline control structures are not allowed
Open

    if (empty($customer))
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

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

Inline control structures are not allowed
Open

    if (isset($response['bill']))
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Inline control structures are not allowed
Open

      if (false == $response)
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Line exceeds 120 characters; contains 141 characters
Open

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

Line exceeds 120 characters; contains 136 characters
Open

    $this->logger->log(sprintf("[Request #%s]: Nova Resposta da API.\n%s\n%s", $request_id, $status, print_r($response['body'], true)));
Severity: Minor
Found in src/services/Api.php by phpcodesniffer

Inline control structures are not allowed
Open

    if ('charge_underpay' !== $issue_type)
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

Inline control structures are not allowed
Open

    if(!$cancel_bills)
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Line exceeds 120 characters; contains 136 characters
Open

    $this->logger->log(sprintf("[Request #%s]: Nova Resposta da API.\n%s\n%s", $request_id, $status, print_r($response['body'], true)));
Severity: Minor
Found in src/services/Api.php by phpcodesniffer

Line exceeds 120 characters; contains 130 characters
Open

      $this->logger->log(sprintf('[Request #%s]: Erro ao recuperar corpo do request! %s', $request_id, print_r($response, true)));
Severity: Minor
Found in src/services/Api.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

        $subscriptions = wcs_get_subscriptions_for_order($order, array('order_type' => 'parent'));
Severity
Category
Status
Source
Language