shetabit/multipay

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

Summary

Maintainability
B
4 hrs
Test Coverage

Method translateStatus has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function translateStatus($status): string
    {
        $translations = [
            'erSucceed' => 'سرویس با موفقیت اجراء شد.',
            'erAAS_UseridOrPassIsRequired' => 'کد کاربری و رمز الزامی هست.',
Severity: Minor
Found in src/Drivers/Omidpay/Omidpay.php - About 1 hr to fix

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

        public function purchase(): string
        {
            $data = array(
                'WSContext' => [
                    'UserId' => $this->settings->username,
    Severity: Minor
    Found in src/Drivers/Omidpay/Omidpay.php - About 1 hr to fix

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

          public function verify(): ReceiptInterface
          {
              $token = $this->invoice->getTransactionId() ?? Request::input('token');
              $refNum = Request::input('RefNum');
      
      
      Severity: Minor
      Found in src/Drivers/Omidpay/Omidpay.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status