PromisePay/promisepay-php

View on GitHub

Showing 72 of 72 total issues

File UserRepository.php has 301 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
namespace PromisePay;

use PromisePay\DataObjects\BankAccount;
use PromisePay\DataObjects\CardAccount;
Severity: Minor
Found in lib/UserRepository.php - About 3 hrs to fix

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

        public function getListOfPayPalAccountsForUser($id)
        {
            $this->checkIdNotNull($id);
            $response = $this->RestClient('get', 'users/'.$id.'/paypal_accounts');
            $jsonData =  $jsonData = json_decode($response->raw_body, true);
    Severity: Major
    Found in lib/UserRepository.php and 1 other location - About 2 hrs to fix
    lib/UserRepository.php on lines 169..185

    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 139.

    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

        public function getListOfBankAccountsForUser($id)
        {
            $this->checkIdNotNull($id);
            $response = $this->RestClient('get', 'users/'.$id.'/bank_accounts');
            $jsonData =  $jsonData = json_decode($response->raw_body, true);
    Severity: Major
    Found in lib/UserRepository.php and 1 other location - About 2 hrs to fix
    lib/UserRepository.php on lines 148..167

    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 139.

    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

    WireDetails has 25 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class WireDetails
    {
        private $_beneficiary;
        private $_addressLine1;
        private $_city;
    Severity: Minor
    Found in lib/DataObjects/WireDetails.php - About 2 hrs to fix

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

          public function getListFeesForItems($id)
          {
              $this->checkIdNotNull($id);
              $response = $this->RestClient('get', 'items/' . $id . '/fees');
              $jsonRaw = json_decode($response->raw_body, true);
      Severity: Major
      Found in lib/ItemRepository.php and 1 other location - About 2 hrs to fix
      lib/ItemRepository.php on lines 132..148

      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 137.

      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

          public function getListOfTransactionsForItem($id)
          {
              $this->checkIdNotNull($id);
              $response = $this->RestClient('get', 'items/' . $id . '/transactions');
              $jsonRaw = json_decode($response->raw_body, true);
      Severity: Major
      Found in lib/ItemRepository.php and 1 other location - About 2 hrs to fix
      lib/ItemRepository.php on lines 164..180

      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 137.

      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

      File Widget.php has 280 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      namespace PromisePay\DataObjects;
      
      /**
       * Class Widget
      Severity: Minor
      Found in lib/DataObjects/Widget.php - About 2 hrs to fix

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

            public function getListOfUploads($limit = 20, $offset = 0)
            {
                $this->paramsListCorrect($limit,$offset);
                $response = $this->RestClient('get', 'uploads?limit=' . $limit . '&offset=' . $offset, '', '');
                $allUploads = array();
        Severity: Major
        Found in lib/UploadRepository.php and 3 other locations - About 2 hrs to fix
        lib/CompanyRepository.php on lines 10..22
        lib/FeeRepository.php on lines 12..24
        lib/UserRepository.php on lines 17..29

        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 132.

        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

            public function getListOfFees($limit = 20, $offset = 0)
            {
                $this->paramsListCorrect($limit,$offset);
                $response = $this->RestClient('get', 'fees?limit=' . $limit . '&offset=' . $offset, '', '');
                $allFees = array();
        Severity: Major
        Found in lib/FeeRepository.php and 3 other locations - About 2 hrs to fix
        lib/CompanyRepository.php on lines 10..22
        lib/UploadRepository.php on lines 11..23
        lib/UserRepository.php on lines 17..29

        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 132.

        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

            public function getListOfCompanies($limit = 20, $offset = 0)
            {
                $this->paramsListCorrect($limit,$offset);
                $response = $this->RestClient('get', 'companies?limit=' . $limit . '&offset=' . $offset, '', '');
                $companiesList = array();
        Severity: Major
        Found in lib/CompanyRepository.php and 3 other locations - About 2 hrs to fix
        lib/FeeRepository.php on lines 12..24
        lib/UploadRepository.php on lines 11..23
        lib/UserRepository.php on lines 17..29

        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 132.

        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

            public function getListOfUsers($limit = 20, $offset = 0)
            {
                $this->paramsListCorrect($limit,$offset);
                $response = $this->RestClient('get', 'users?limit=' . $limit . '&offset=' . $offset, '', '');
                $allUsers = array();
        Severity: Major
        Found in lib/UserRepository.php and 3 other locations - About 2 hrs to fix
        lib/CompanyRepository.php on lines 10..22
        lib/FeeRepository.php on lines 12..24
        lib/UploadRepository.php on lines 11..23

        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 132.

        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

        Company has 23 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class Company extends Object
        {
            /**
             * @var
             */
        Severity: Minor
        Found in lib/DataObjects/Company.php - About 2 hrs to fix

          ItemRepository has 22 functions (exceeds 20 allowed). Consider refactoring.
          Open

          class ItemRepository extends ApiAbstract
          {
              public function getListOfItems($limit = 20, $offset = 0)
              {
                  $this->paramsListCorrect($limit,$offset);
          Severity: Minor
          Found in lib/ItemRepository.php - About 2 hrs to fix

            Function _future_serializeAsXml has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
            Open

                private function _future_serializeAsXml($value, $node = null, $dom = null)
                {
                    if (!$dom) {
                        $dom = new \DOMDocument;
                    }
            Severity: Minor
            Found in lib/Vendors/Httpful/Handlers/XmlHandler.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

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

                public function getFeeForTransaction($id)
                {
                    $this->checkIdNotNull($id);
                    $response = $this->RestClient('get', 'transactions/' . $id . '/fees');
                    $jsonRaw = json_decode($response->raw_body, true);
            Severity: Major
            Found in lib/TransactionRepository.php and 1 other location - About 1 hr to fix
            lib/TransactionRepository.php on lines 53..68

            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 115.

            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

                public function getUserForTransaction($id)
                {
                    $this->checkIdNotNull($id);
                    $response = $this->RestClient('get', 'transactions/' . $id . '/users');
                    $jsonRaw = json_decode($response->raw_body, true);
            Severity: Major
            Found in lib/TransactionRepository.php and 1 other location - About 1 hr to fix
            lib/TransactionRepository.php on lines 70..85

            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 115.

            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 14 locations. Consider refactoring.
            Open

                public function getWireDetailsForItem($id)
                {
                    $this->checkIdNotNull($id);
                    $response = $this->RestClient('get', 'items/' . $id . '/wire_details');
                    $jsonRaw = json_decode($response->raw_body, true);
            Severity: Major
            Found in lib/ItemRepository.php and 13 other locations - About 1 hr to fix
            lib/BankAccountRepository.php on lines 63..75
            lib/CardAccountRepository.php on lines 58..70
            lib/ItemRepository.php on lines 150..162
            lib/ItemRepository.php on lines 182..194
            lib/ItemRepository.php on lines 196..208
            lib/ItemRepository.php on lines 224..236
            lib/ItemRepository.php on lines 266..279
            lib/ItemRepository.php on lines 339..351
            lib/ItemRepository.php on lines 353..366
            lib/ItemRepository.php on lines 368..381
            lib/PayPalAccountRepository.php on lines 49..61
            lib/UploadRepository.php on lines 55..68
            lib/UploadRepository.php on lines 70..84

            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 112.

            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 14 locations. Consider refactoring.
            Open

                public function getUserForCardAccount($id)
                {
                    $this->checkIdNotNull($id);
                    $response = $this->RestClient('get','users/'.$id.'/bank_accounts');
                    $jsonRaw = json_decode($response->raw_body, true);
            Severity: Major
            Found in lib/CardAccountRepository.php and 13 other locations - About 1 hr to fix
            lib/BankAccountRepository.php on lines 63..75
            lib/ItemRepository.php on lines 150..162
            lib/ItemRepository.php on lines 182..194
            lib/ItemRepository.php on lines 196..208
            lib/ItemRepository.php on lines 210..222
            lib/ItemRepository.php on lines 224..236
            lib/ItemRepository.php on lines 266..279
            lib/ItemRepository.php on lines 339..351
            lib/ItemRepository.php on lines 353..366
            lib/ItemRepository.php on lines 368..381
            lib/PayPalAccountRepository.php on lines 49..61
            lib/UploadRepository.php on lines 55..68
            lib/UploadRepository.php on lines 70..84

            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 112.

            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 14 locations. Consider refactoring.
            Open

                public function getItemStatus($id)
                {
                    $this->checkIdNotNull($id);
                    $response = $this->RestClient('get', 'items/' . $id . '/status');
                    $jsonRaw = json_decode($response->raw_body, true);
            Severity: Major
            Found in lib/ItemRepository.php and 13 other locations - About 1 hr to fix
            lib/BankAccountRepository.php on lines 63..75
            lib/CardAccountRepository.php on lines 58..70
            lib/ItemRepository.php on lines 182..194
            lib/ItemRepository.php on lines 196..208
            lib/ItemRepository.php on lines 210..222
            lib/ItemRepository.php on lines 224..236
            lib/ItemRepository.php on lines 266..279
            lib/ItemRepository.php on lines 339..351
            lib/ItemRepository.php on lines 353..366
            lib/ItemRepository.php on lines 368..381
            lib/PayPalAccountRepository.php on lines 49..61
            lib/UploadRepository.php on lines 55..68
            lib/UploadRepository.php on lines 70..84

            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 112.

            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 14 locations. Consider refactoring.
            Open

                public function requestPayment($itemId)
                {
                    $this->checkIdNotNull($itemId);
            
                    $response = $this->RestClient('patch', 'items/' . $itemId . '/request_payment');
            Severity: Major
            Found in lib/ItemRepository.php and 13 other locations - About 1 hr to fix
            lib/BankAccountRepository.php on lines 63..75
            lib/CardAccountRepository.php on lines 58..70
            lib/ItemRepository.php on lines 150..162
            lib/ItemRepository.php on lines 182..194
            lib/ItemRepository.php on lines 196..208
            lib/ItemRepository.php on lines 210..222
            lib/ItemRepository.php on lines 224..236
            lib/ItemRepository.php on lines 339..351
            lib/ItemRepository.php on lines 353..366
            lib/ItemRepository.php on lines 368..381
            lib/PayPalAccountRepository.php on lines 49..61
            lib/UploadRepository.php on lines 55..68
            lib/UploadRepository.php on lines 70..84

            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 112.

            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

            Severity
            Category
            Status
            Source
            Language