CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Method privFileDescrExpand has 66 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function privFileDescrExpand(&$p_filedescr_list, &$p_options)
  {
    $v_result=1;

    // ----- Create a result list
Severity: Major
Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 2 hrs to fix

    Method wp_insert_link has 66 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function wp_insert_link( $linkdata, $wp_error = false ) {
        global $wpdb, $current_user;
    
        $defaults = array( 'link_id' => 0, 'link_name' => '', 'link_url' => '', 'link_rating' => 0 );
    
    
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-admin/includes/bookmark.php - About 2 hrs to fix

      Method prepare_items has 66 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function prepare_items() {
              include( ABSPATH . 'wp-admin/includes/plugin-install.php' );
      
              global $tabs, $tab, $paged, $type, $term;
      
      

        Method wp_getPage has 66 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function wp_getPage($args) {
                $this->escape($args);
        
                $blog_id    = (int) $args[0];
                $page_id    = (int) $args[1];
        Severity: Major
        Found in Web.Admin/2014/wordpress/xmlrpc.php - About 2 hrs to fix

          Method render_content has 66 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              protected function render_content() {
                  switch( $this->type ) {
                      case 'text':
                          ?>
                          <label>
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/class-wp-customize-control.php - About 2 hrs to fix

            Method wp_link_pages has 66 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function wp_link_pages($args = '') {
                $defaults = array(
                    'before' => '<p>' . __('Pages:'), 'after' => '</p>',
                    'link_before' => '', 'link_after' => '',
                    'next_or_number' => 'number', 'nextpagelink' => __('Next page'),
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/post-template.php - About 2 hrs to fix

              Method call_widget_update has 66 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function call_widget_update( $widget_id ) {
                      global $wp_registered_widget_updates, $wp_registered_widget_controls;
              
                      $this->start_capturing_option_updates();
                      $parsed_id   = $this->parse_widget_id( $widget_id );
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/class-wp-customize-widgets.php - About 2 hrs to fix

                Method _diag has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function _diag ($xoff, $xlim, $yoff, $ylim, $nchunks)
                    {
                        $flip = false;
                
                        if ($xlim - $xoff > $ylim - $yoff) {
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/Text/Diff/Engine/native.php - About 2 hrs to fix

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

                      function space_seperated_tokens($string)
                      {
                          $space_characters = "\x20\x09\x0A\x0B\x0C\x0D";
                          $string_length = strlen($string);
                  
                  
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 1 other location - About 2 hrs to fix
                  Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php on lines 1929..1946

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

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

                      function get_longitude()
                      {
                          if ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'long'))
                          {
                              return (float) $return[0]['data'];
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 2 other locations - About 2 hrs to fix
                  Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 5592..5610
                  Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 6235..6253

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

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

                      function get_longitude()
                      {
                          if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'long'))
                          {
                              return (float) $return[0]['data'];
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 2 other locations - About 2 hrs to fix
                  Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 2790..2808
                  Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 5592..5610

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

                  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 static function percent_encoding_normalization($match)
                      {
                          $integer = hexdec($match[1]);
                          if ($integer >= 0x41 && $integer <= 0x5A || $integer >= 0x61 && $integer <= 0x7A || $integer >= 0x30 && $integer <= 0x39 || $integer === 0x2D || $integer === 0x2E || $integer === 0x5F || $integer === 0x7E)
                          {
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php and 1 other location - About 2 hrs to fix
                  Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 9346..9357

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

                  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 static function space_seperated_tokens($string)
                      {
                          $space_characters = "\x20\x09\x0A\x0B\x0C\x0D";
                          $string_length = strlen($string);
                  
                  
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php and 1 other location - About 2 hrs to fix
                  Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 11045..11062

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

                  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

                      function percent_encoding_normalization($match)
                      {
                          $integer = hexdec($match[1]);
                          if ($integer >= 0x41 && $integer <= 0x5A || $integer >= 0x61 && $integer <= 0x7A || $integer >= 0x30 && $integer <= 0x39 || $integer === 0x2D || $integer === 0x2E || $integer === 0x5F || $integer === 0x7E)
                          {
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 1 other location - About 2 hrs to fix
                  Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php on lines 256..267

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

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

                      function get_longitude()
                      {
                          if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'long'))
                          {
                              return (float) $return[0]['data'];
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 2 other locations - About 2 hrs to fix
                  Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 2790..2808
                  Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 6235..6253

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

                  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 ready has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          ready: function() {
                              var control = this,
                                  panels;
                  
                              this.uploader = {
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-admin/js/customize-controls.js - About 2 hrs to fix

                    File class-wp-terms-list-table.php has 275 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    /**
                     * Terms List Table class.
                     *
                     * @package WordPress

                      File class-wp-filesystem-ssh2.php has 275 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      /**
                       * WordPress SSH2 Filesystem.
                       *
                       * @package WordPress

                        Method convert_tags has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function convert_tags() {
                                global $wpdb;
                        
                                if ( (!isset($_POST['tags_to_convert']) || !is_array($_POST['tags_to_convert'])) && empty($this->tags_to_convert)) {
                                    echo '<div class="narrow">';
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-admin/import/wp-cat2tag.php - About 2 hrs to fix

                          Method get_authors has 65 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              public function get_authors()
                              {
                                  $authors = array();
                                  foreach ((array) $this->get_source_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'author') as $author)
                                  {
                          Severity: Major
                          Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Source.php - About 2 hrs to fix
                            Severity
                            Category
                            Status
                            Source
                            Language