Showing 4,218 of 4,218 total issues

File sys_locale_translate.data.php has 6233 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

return [
  0 => [
    'var_id' => '1789',
Severity: Major
Found in .dev/install/installer_data/db_tables/sys_locale_translate.data.php - About 2 wks to fix

    File geo_countries.data.php has 4270 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    return [
      0 => [
        'code' => 'AD',
    Severity: Major
    Found in plugins/geo/share/db/data/geo_countries.data.php - About 1 wk to fix

      File geo_cities.data.php has 3864 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      <?php
      
      return [
        613273 => [
          'id' => '613273',
      Severity: Major
      Found in plugins/geo/share/db/data/geo_cities.data.php - About 1 wk to fix

        File sys_locale_vars.data.php has 3616 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        
        return [
          124 => [
            'id' => '124',
        Severity: Major
        Found in .dev/install/installer_data/db_tables/sys_locale_vars.data.php - About 1 wk to fix

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

          <?php
          
          return [
              'fields' => [
                  'code' => [
          Severity: Major
          Found in plugins/geo/share/db/sql_php/countries.sql_php.php and 1 other location - About 1 wk to fix
          plugins/geo/share/db/sql_php/geo_countries.sql_php.php on lines 1..247

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

          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

          <?php
          
          return [
              'fields' => [
                  'code' => [
          Severity: Major
          Found in plugins/geo/share/db/sql_php/geo_countries.sql_php.php and 1 other location - About 1 wk to fix
          plugins/geo/share/db/sql_php/countries.sql_php.php on lines 1..247

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

          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 icons.data.php has 2968 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          <?php
          
          return [
              1 => [
                  'id' => '1',
          Severity: Major
          Found in plugins/sys/share/db/data/icons.data.php - About 1 wk to fix

            File geo_lang_to_country.data.php has 2739 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            <?php
            
            return [
              0 => [
                'lang' => 'aa',
            Severity: Major
            Found in plugins/geo/share/db/data/geo_lang_to_country.data.php - About 1 wk to fix

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

              <?php
              
              /**
               * Form2 high-level generator and handler, mostly using bootstrap html/css framework.
               *
              Severity: Major
              Found in plugins/form2/classes/yf_form2.class.php - About 1 wk to fix

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

                class yf_manage_sphinx_config
                {
                    public $loaded = false;
                    public $sections = [];
                
                
                plugins/search/admin_modules/yf_manage_sphinx.class.php on lines 662..904

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

                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

                class sphinx_config
                {
                    public $loaded = false;
                    public $sections = [];
                
                
                Severity: Major
                Found in plugins/search/admin_modules/yf_manage_sphinx.class.php and 1 other location - About 1 wk to fix
                plugins/search/admin_modules/manage_sphinx/yf_manage_sphinx_config.class.php on lines 8..242

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

                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 timezones.data.php has 2535 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                <?php
                
                return [
                    0 => [
                        'name' => 'Africa/Abidjan',
                Severity: Major
                Found in plugins/geo/share/db/data/timezones.data.php - About 1 wk to fix

                  File timezones.php has 2535 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  <?php
                  
                  return [
                    'Pacific/Midway' => [
                      'name' => 'Pacific/Midway',
                  Severity: Major
                  Found in .dev/scripts/timezones/timezones.php - About 1 wk to fix

                    File fontawesome_icons.php has 2375 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    
                    $data = [
                      'fa-adjust' => [
                        'name' => 'fa-adjust',
                    Severity: Major
                    Found in .dev/scripts/fontawesome_icons/fontawesome_icons.php - About 6 days to fix

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

                      <?php
                      
                      class yf_manage_payout
                      {
                          public $IS_PAYOUT_INTERKASSA = null;
                      Severity: Major
                      Found in plugins/payment/admin_modules/yf_manage_payout.class.php - About 5 days to fix

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

                        <?php
                        
                        if ( ! function_exists('array_replace_recursive')) {
                            trigger_error('Not exists function "array_replace_recursive ( PHP 5 >= 5.3.0 )"', E_USER_ERROR);
                        }
                        Severity: Major
                        Found in plugins/payment/classes/yf_payment_api.class.php - About 5 days to fix

                          File countries_ru.php has 2011 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          <?php
                          
                          $data = [
                              'AU' => [
                                  'code' => 'AU',
                          Severity: Major
                          Found in .dev/scripts/countries/countries_ru.php - About 5 days to fix

                            File currencies.data.php has 2005 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            <?php
                            
                            return [
                              'AED' => [
                                'id' => 'AED',
                            Severity: Major
                            Found in plugins/sys/share/db/data/currencies.data.php - About 5 days to fix

                              File countries_uk.php has 2003 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              <?php
                              
                              $data = [
                                  'AU' => [
                                      'code' => 'AU',
                              Severity: Major
                              Found in .dev/scripts/countries/countries_uk.php - About 5 days to fix

                                File countries.php has 1995 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                <?php
                                
                                $data = [
                                  'AF' => [
                                    'code' => 'AF',
                                Severity: Major
                                Found in .dev/scripts/countries/countries.php - About 5 days to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language