shetabit/multipay

View on GitHub
src/Drivers/Irankish/Irankish.php

Summary

Maintainability
B
5 hrs
Test Coverage

Method notVerified has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function notVerified($status)
    {
        $translations = [
            5 => 'از انجام تراکنش صرف نظر شد',
            17 => 'از انجام تراکنش صرف نظر شد',
Severity: Major
Found in src/Drivers/Irankish/Irankish.php - About 2 hrs to fix

    Method purchase has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function purchase()
        {
            if (!empty($this->invoice->getDetails()['description'])) {
                $description = $this->invoice->getDetails()['description'];
            } else {
    Severity: Minor
    Found in src/Drivers/Irankish/Irankish.php - About 1 hr to fix

      Method verify has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function verify() : ReceiptInterface
          {
              $status = Request::input('responseCode');
              if (Request::input('responseCode') != "00") {
                  return $this->notVerified($status);
      Severity: Minor
      Found in src/Drivers/Irankish/Irankish.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status