vindi/vindi-woocommerce

View on GitHub
src/includes/gateways/CreditPayment.php

Summary

Maintainability
B
A
-3 hrs
Test Coverage

Method init_form_fields has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Fixed

Severity: Major
Found in src/includes/gateways/CreditPayment.php - About 2 hrs to fix

    Method __construct has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Fixed

    Severity: Minor
    Found in src/includes/gateways/CreditPayment.php - About 1 hr to fix

      Avoid unused local variables such as '$index'.
      Fixed

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpmd

      UnusedLocalVariable

      Since: 0.2

      Detects when a local variable is declared and/or assigned, but not used.

      Example

      class Foo {
          public function doSomething()
          {
              $i = 5; // Unused
          }
      }

      Source https://phpmd.org/rules/unusedcode.html#unusedlocalvariable

      Line exceeds 120 characters; contains 132 characters
      Fixed

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

      Line exceeds 120 characters; contains 167 characters
      Fixed

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

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

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

      Line indented incorrectly; expected 8 spaces, found 6
      Fixed

      Severity: Minor
      Found in src/includes/gateways/CreditPayment.php by phpcodesniffer

      There are no issues that match your filters.

      Category
      Status