dwmsw/sagepay

View on GitHub
src/Direct.php

Summary

Maintainability
B
6 hrs
Test Coverage

Method register has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function register($txType)
    {
        if (in_array(strtoupper($txType), $this->validTxTypes)) {
            $txType = strtoupper($txType);
        } else {
Severity: Major
Found in src/Direct.php - About 2 hrs to fix

    Method repeat has 46 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function repeat()
        {
            $data = array(
                'VPSProtocol'        => $this->protocol,
                'TxType'             => "REPEAT",
    Severity: Minor
    Found in src/Direct.php - About 1 hr to fix

      Method authorise has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public function authorise($VendorTxCode, $Amount, $RelatedVPSTxId, $RelatedVendorTxCode, $RelatedSecurityKey, $RelatedTxAuthNo, $Description = '')
      Severity: Major
      Found in src/Direct.php - About 50 mins to fix

        Method refund has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            public function refund($VendorTxCode, $Amount, $RelatedVPSTxId, $RelatedVendorTxCode, $RelatedSecurityKey, $RelatedTxAuthNo, $Description = '')
        Severity: Major
        Found in src/Direct.php - About 50 mins to fix

          Method release has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              public function release($VPSTxId, $SecurityKey, $VendorTxCode, $TxAuthNo, $ReleaseAmount)
          Severity: Minor
          Found in src/Direct.php - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status