plugins/payment/classes/yf_payment_api__provider_payeer.class.php

Summary

Maintainability
F
1 wk
Test Coverage

File yf_payment_api__provider_payeer.class.php has 1119 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

_class('payment_api__provider_remote');

class yf_payment_api__provider_payeer extends yf_payment_api__provider_remote
Severity: Major
Found in plugins/payment/classes/yf_payment_api__provider_payeer.class.php - About 2 days to fix

    Method api_payout has 143 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function api_payout($options = null)
        {
            if ( ! $this->ENABLE) {
                return  null;
            }
    Severity: Major
    Found in plugins/payment/classes/yf_payment_api__provider_payeer.class.php - About 5 hrs to fix

      Function _external_response has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
      Open

          public function _external_response()
          {
              $ip = common()->get_ip();
              if ( ! in_array($ip, ['185.71.65.92', '185.71.65.189', '149.202.17.210'])) {
                  $this->external_response_errors[] = 'Invalid sender IP address ' . $ip;
      Severity: Minor
      Found in plugins/payment/classes/yf_payment_api__provider_payeer.class.php - About 3 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Method _external_response has 84 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function _external_response()
          {
              $ip = common()->get_ip();
              if ( ! in_array($ip, ['185.71.65.92', '185.71.65.189', '149.202.17.210'])) {
                  $this->external_response_errors[] = 'Invalid sender IP address ' . $ip;
      Severity: Major
      Found in plugins/payment/classes/yf_payment_api__provider_payeer.class.php - About 3 hrs to fix

        Method deposition has 81 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function deposition($options)
            {
                if ( ! $this->ENABLE) {
                    return  null;
                }
        Severity: Major
        Found in plugins/payment/classes/yf_payment_api__provider_payeer.class.php - About 3 hrs to fix

          Function api_payout has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
          Open

              public function api_payout($options = null)
              {
                  if ( ! $this->ENABLE) {
                      return  null;
                  }
          Severity: Minor
          Found in plugins/payment/classes/yf_payment_api__provider_payeer.class.php - About 3 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Method _form has 33 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function _form($data, $options = null)
              {
                  if ( ! $this->ENABLE) {
                      return  null;
                  }
          Severity: Minor
          Found in plugins/payment/classes/yf_payment_api__provider_payeer.class.php - About 1 hr to fix

            Method _api_response has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function _api_response($options)
                {
                    // import options
                    is_array($options) && extract($options, EXTR_PREFIX_ALL | EXTR_REFS, '');
                    $this->payment_api->dump(['name' => 'Payeer', 'operation_id' => @(int) $_POST['m_orderid'], 'ip' => common()->get_ip()]);
            Severity: Minor
            Found in plugins/payment/classes/yf_payment_api__provider_payeer.class.php - About 1 hr to fix

              Function _form has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
              Open

                  public function _form($data, $options = null)
                  {
                      if ( ! $this->ENABLE) {
                          return  null;
                      }
              Severity: Minor
              Found in plugins/payment/classes/yf_payment_api__provider_payeer.class.php - About 1 hr to fix

              Cognitive Complexity

              Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

              A method's cognitive complexity is based on a few simple rules:

              • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
              • Code is considered more complex for each "break in the linear flow of the code"
              • Code is considered more complex when "flow breaking structures are nested"

              Further reading

              Method _form_options has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function _form_options($options)
                  {
                      if ( ! $this->ENABLE) {
                          return  null;
                      }
              Severity: Minor
              Found in plugins/payment/classes/yf_payment_api__provider_payeer.class.php - About 1 hr to fix

                Avoid too many return statements within this method.
                Open

                            return  $result;
                Severity: Major
                Found in plugins/payment/classes/yf_payment_api__provider_payeer.class.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                              return  $result;
                  Severity: Major
                  Found in plugins/payment/classes/yf_payment_api__provider_payeer.class.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                            return  $result;
                    Severity: Major
                    Found in plugins/payment/classes/yf_payment_api__provider_payeer.class.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return  $result;
                      Severity: Major
                      Found in plugins/payment/classes/yf_payment_api__provider_payeer.class.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                return  $result;
                        Severity: Major
                        Found in plugins/payment/classes/yf_payment_api__provider_payeer.class.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                      return  $result;
                          Severity: Major
                          Found in plugins/payment/classes/yf_payment_api__provider_payeer.class.php - About 30 mins to fix

                            Similar blocks of code found in 2 locations. Consider refactoring.
                            Open

                                        'okpay' => [
                                            'title' => 'OkPay',
                                            'icon' => 'okpay',
                                            'currency' => [
                                                'RUB' => [
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 550..594

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 176.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 2 locations. Consider refactoring.
                            Open

                                        'qiwi' => [
                                            'title' => 'Qiwi',
                                            'icon' => 'qiwi',
                                            'currency' => [
                                                'USD' => [
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 462..506

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 176.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 5 locations. Consider refactoring.
                            Open

                                        'maestro' => [
                                            'title' => 'Maestro',
                                            'icon' => 'maestro',
                                            'currency' => [
                                                'RUB' => [
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 336..376
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 378..418
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 508..548
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 595..635

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 157.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 5 locations. Consider refactoring.
                            Open

                                        'bitcoin' => [
                                            'title' => 'Bitcoin',
                                            'icon' => 'bitcoin',
                                            'currency' => [
                                                'BTC' => [
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 336..376
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 378..418
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 420..460
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 508..548

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 157.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 5 locations. Consider refactoring.
                            Open

                                        'visa' => [
                                            'title' => 'Visa',
                                            'icon' => 'visa',
                                            'currency' => [
                                                'USD' => [
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 378..418
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 420..460
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 508..548
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 595..635

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 157.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 5 locations. Consider refactoring.
                            Open

                                        'paxum' => [
                                            'title' => 'Paxum',
                                            'icon' => 'paxum',
                                            'currency' => [
                                                'USD' => [
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 336..376
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 378..418
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 420..460
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 595..635

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 157.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 5 locations. Consider refactoring.
                            Open

                                        'mastercard' => [
                                            'title' => 'Mastercard',
                                            'icon' => 'mastercard',
                                            'currency' => [
                                                'RUB' => [
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 336..376
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 420..460
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 508..548
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 595..635

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 157.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 4 locations. Consider refactoring.
                            Open

                                        'qiwi' => [
                                            'title' => 'Qiwi',
                                            'icon' => 'qiwi',
                                            'ps' => '20916096',
                                            'currency' => [
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 43..75
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 109..141
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 167..199

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 147.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 4 locations. Consider refactoring.
                            Open

                                        'payeer' => [
                                            'title' => 'Payeer',
                                            'icon' => 'payeer',
                                            'ps' => '2609',
                                            'currency' => [
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 76..108
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 109..141
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 167..199

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 147.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 4 locations. Consider refactoring.
                            Open

                                        'advcash' => [
                                            'title' => 'Advcash',
                                            'icon' => 'advcash',
                                            'ps' => '88106414',
                                            'currency' => [
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 43..75
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 76..108
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 167..199

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 147.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 4 locations. Consider refactoring.
                            Open

                                        'okpay' => [
                                            'title' => 'OkPay',
                                            'icon' => 'okpay',
                                            'ps' => '1577275',
                                            'currency' => [
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 43..75
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 76..108
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 109..141

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 147.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Identical blocks of code found in 2 locations. Consider refactoring.
                            Open

                                public function _create_api_response($options)
                                {
                                    $url_options = [
                                        'account' => $this->ACCOUNT,
                                        'apiId' => $this->API_ID,
                            plugins/payment/classes/yf_payment_api__provider_bitpay.class.php on lines 405..416

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 119.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 2 locations. Consider refactoring.
                            Open

                                        'visa' => [
                                            'title' => 'Visa',
                                            'icon' => 'visa',
                                            'ps' => '21433878',
                                            'currency' => [
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 142..166

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 109.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            Similar blocks of code found in 2 locations. Consider refactoring.
                            Open

                                        'btc-e' => [
                                            'title' => 'BTC-E',
                                            'icon' => 'btc-e',
                                            'ps' => '35228575',
                                            'currency' => [
                            plugins/payment/classes/yf_payment_api__provider_payeer.class.php on lines 234..258

                            Duplicated Code

                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                            Tuning

                            This issue has a mass of 109.

                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                            Refactorings

                            Further Reading

                            There are no issues that match your filters.

                            Category
                            Status