YetiForceCompany/YetiForceCRM

View on GitHub

Showing 306,333 of 306,333 total issues

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

        getUi: function () {
            var html = '<select class="select2 form-control" multiple name="' + this.getName() + '[]">';
            var pickListValues = this.getPickListValues();
            var selectedOption = app.htmlDecode(this.getValue());
            var selectedOptionsArray = selectedOption.split(',');
Severity: Major
Found in public_html/layouts/resources/Field.js and 1 other location - About 7 hrs to fix
public_html/layouts/basic/modules/Vtiger/resources/AdvanceFilter.js on lines 740..756

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

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

        getUi: function () {
            var html = '<select class="select2" multiple name="' + this.getName() + '[]">';
            var pickListValues = this.getPickListValues();
            var selectedOption = app.htmlDecode(this.getValue());
            var selectedOptionsArray = selectedOption.split(',');
public_html/layouts/resources/Field.js on lines 217..233

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

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

Function relations has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring.
Open

    public static function relations(int $sourceId, array $records)
    {
        $sourceRecord = \Vtiger_Record_Model::getInstanceById($sourceId);
        foreach ($records as $recordId) {
            $recordModel = \Vtiger_Record_Model::getInstanceById($recordId);
Severity: Minor
Found in app/RecordTransfer.php - About 7 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

Function getRates has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring.
Open

    public function getRates($otherCurrencyCode, $dateParam, $cron = false)
    {
        $moduleModel = Settings_CurrencyUpdate_Module_Model::getCleanInstance();
        $selectedBank = $moduleModel->getActiveBankId();
        $yesterday = date('Y-m-d', strtotime('-1 day'));
Severity: Minor
Found in modules/Settings/CurrencyUpdate/bankmodels/NBP.php - About 7 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

File LangManagement.js has 480 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */
'use strict';

var Settings_Index_Js = {
    initEvants: function () {

    TextParser has 53 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class TextParser
    {
        /**
         * Examples of supported variables.
         *
    Severity: Major
    Found in app/TextParser.php - About 7 hrs to fix

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

      <?php
      /* +***********************************************************************************
       * The contents of this file are subject to the vtiger CRM Public License Version 1.0
       * ("License"); You may not use this file except in compliance with the License
       * The Original Code is:  vtiger CRM Open Source
      Severity: Minor
      Found in modules/Vtiger/models/Widget.php - About 7 hrs to fix

        Function _request has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring.
        Open

            _request: function (params, pjaxMode, rawData) {
                const aDeferred = jQuery.Deferred();
                if (typeof rawData === 'undefined') {
                    rawData = false;
                }
        Severity: Minor
        Found in public_html/layouts/resources/Connector.js - About 7 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

        Function checkZip has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring.
        Open

            public function checkZip($zipfile)
            {
                $manifestFound = $languagefile_found = $layoutfile_found = $updatefile_found = $extensionfile_found = $moduleVersionFound = $fontfile_found = false;
                $moduleName = null;
                $zip = \App\Zip::openFile($zipfile, ['checkFiles' => false]);
        Severity: Minor
        Found in vtlib/Vtiger/PackageImport.php - About 7 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

        Function addReport has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring.
        Open

            public static function addReport(array $data): string
            {
                $status = 0;
                if (\Config\Components\Mail::$rcListAcceptAutomatically ?? false) {
                    $status = 1;
        Severity: Minor
        Found in app/Mail/Rbl.php - About 7 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

        Function getFieldValue has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring.
        Open

            public function getFieldValue(string $magentoFieldName, ?string $crmFieldName = null)
            {
                $parsedFieldName = $crmFieldName ?? $this->getFieldNameCrm($magentoFieldName);
                $methodName = 'getCrm' . \ucfirst($parsedFieldName);
                $fieldLevels = explode('|', $magentoFieldName);
        Severity: Minor
        Found in app/Integrations/Magento/Synchronizer/Maps/Base.php - About 7 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

        Function save has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring.
        Open

            public function save()
            {
                $db = App\Db::getInstance();
                $profileName = $this->get('profilename');
                $description = $this->get('description');
        Severity: Minor
        Found in modules/Settings/Profiles/models/Record.php - About 7 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

        File DetailView.php has 475 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        /* +***********************************************************************************
         * The contents of this file are subject to the vtiger CRM Public License Version 1.0
         * ("License"); You may not use this file except in compliance with the License
         * The Original Code is:  vtiger CRM Open Source
        Severity: Minor
        Found in modules/Vtiger/models/DetailView.php - About 7 hrs to fix

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

          <?php
          /**
           * YetiForce shop YetiForceRcNorthData file.
           *
           * @see App\RecordCollectors\NorthData
          Severity: Major
          Found in app/YetiForce/Shop/Product/YetiForceRcNorthData.php and 13 other locations - About 7 hrs to fix
          app/YetiForce/Shop/Product/YetiForcePlGus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcBrReceitaWsCnpj.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcChZefix.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcDkCvr.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcFrEnterpriseGouv.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcNoBrregEnhetsreg.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlCeidg.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlKrs.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlVatPayerStatus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUkCompaniesHouse.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUkVatPayerStatus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUsaEdgar.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcVatifyEu.php on lines 1..61

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

          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

          <?php
          /**
           * YetiForce shop YetiForceRcBrReceitaWsCnpj file.
           *
           * @see App\RecordCollectors\BrReceitaWsCnpj
          Severity: Major
          Found in app/YetiForce/Shop/Product/YetiForceRcBrReceitaWsCnpj.php and 13 other locations - About 7 hrs to fix
          app/YetiForce/Shop/Product/YetiForcePlGus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcChZefix.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcDkCvr.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcFrEnterpriseGouv.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcNoBrregEnhetsreg.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcNorthData.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlCeidg.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlKrs.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlVatPayerStatus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUkCompaniesHouse.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUkVatPayerStatus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUsaEdgar.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcVatifyEu.php on lines 1..61

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

          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

          <?php
          /**
           * YetiForce shop YetiForceRcFrEnterpriseGouv file.
           *
           * @see App\RecordCollectors\FrEnterpriseGouv
          Severity: Major
          Found in app/YetiForce/Shop/Product/YetiForceRcFrEnterpriseGouv.php and 13 other locations - About 7 hrs to fix
          app/YetiForce/Shop/Product/YetiForcePlGus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcBrReceitaWsCnpj.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcChZefix.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcDkCvr.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcNoBrregEnhetsreg.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcNorthData.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlCeidg.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlKrs.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlVatPayerStatus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUkCompaniesHouse.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUkVatPayerStatus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUsaEdgar.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcVatifyEu.php on lines 1..61

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

          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

          <?php
          /**
           * YetiForce shop YetiForceRcUsaEdgar file.
           *
           * @see App\RecordCollectors\UsaEdgarRegistryFromSec
          Severity: Major
          Found in app/YetiForce/Shop/Product/YetiForceRcUsaEdgar.php and 13 other locations - About 7 hrs to fix
          app/YetiForce/Shop/Product/YetiForcePlGus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcBrReceitaWsCnpj.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcChZefix.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcDkCvr.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcFrEnterpriseGouv.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcNoBrregEnhetsreg.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcNorthData.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlCeidg.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlKrs.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlVatPayerStatus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUkCompaniesHouse.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUkVatPayerStatus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcVatifyEu.php on lines 1..61

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

          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

          <?php
          /**
           * YetiForce shop YetiForceRcVatifyEu file.
           *
           * @see App\RecordCollectors\VatifyEu
          Severity: Major
          Found in app/YetiForce/Shop/Product/YetiForceRcVatifyEu.php and 13 other locations - About 7 hrs to fix
          app/YetiForce/Shop/Product/YetiForcePlGus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcBrReceitaWsCnpj.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcChZefix.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcDkCvr.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcFrEnterpriseGouv.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcNoBrregEnhetsreg.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcNorthData.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlCeidg.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlKrs.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlVatPayerStatus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUkCompaniesHouse.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUkVatPayerStatus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUsaEdgar.php on lines 1..61

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

          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

          <?php
          /**
           * YetiForce shop YetiForceRcNoBrregEnhetsreg file.
           *
           * @see App\RecordCollectors\NoBrregEnhetsregisteret
          Severity: Major
          Found in app/YetiForce/Shop/Product/YetiForceRcNoBrregEnhetsreg.php and 13 other locations - About 7 hrs to fix
          app/YetiForce/Shop/Product/YetiForcePlGus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcBrReceitaWsCnpj.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcChZefix.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcDkCvr.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcFrEnterpriseGouv.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcNorthData.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlCeidg.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlKrs.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlVatPayerStatus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUkCompaniesHouse.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUkVatPayerStatus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUsaEdgar.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcVatifyEu.php on lines 1..61

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

          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

          <?php
          /**
           * YetiForce shop YetiForceRcPlKrs file.
           *
           * @see App\RecordCollectors\PlKrs
          Severity: Major
          Found in app/YetiForce/Shop/Product/YetiForceRcPlKrs.php and 13 other locations - About 7 hrs to fix
          app/YetiForce/Shop/Product/YetiForcePlGus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcBrReceitaWsCnpj.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcChZefix.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcDkCvr.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcFrEnterpriseGouv.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcNoBrregEnhetsreg.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcNorthData.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlCeidg.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcPlVatPayerStatus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUkCompaniesHouse.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUkVatPayerStatus.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcUsaEdgar.php on lines 1..61
          app/YetiForce/Shop/Product/YetiForceRcVatifyEu.php on lines 1..61

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

          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