CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

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

    function convert_categories() {
        global $wpdb;

        if ( (!isset($_POST['cats_to_convert']) || !is_array($_POST['cats_to_convert'])) && empty($this->categories_to_convert)) { ?>
            <div class="narrow">
Severity: Major
Found in Web.Admin/2014/wordpress/wp-admin/import/wp-cat2tag.php - About 3 hrs to fix

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

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

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

          public function customize_register() {
              global $wp_registered_widgets, $wp_registered_widget_controls, $wp_registered_sidebars;
      
              $sidebars_widgets = array_merge(
                  array( 'wp_inactive_widgets' => array() ),
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/class-wp-customize-widgets.php - About 3 hrs to fix

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

        <?php
        /**
         * SimplePie
         *
         * A PHP-Based RSS and Atom Feed Framework.
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Cache/MySQL.php - About 3 hrs to fix

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

                  if ( isset( $content_struct['parent'] ) ) {
                      if ( ! $taxonomy['hierarchical'] )
                          return new IXR_Error( 403, __( 'This taxonomy is not hierarchical.' ) );
          
                      $parent_term_id = (int) $content_struct['parent'];
          Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php on lines 1808..1822

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

          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

                      if ($copyright = $this->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'copyright'))
                      {
                          $copyright_url = null;
                          $copyright_label = null;
                          if (isset($copyright[0]['attribs']['']['url']))
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php and 1 other location - About 3 hrs to fix
          Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php on lines 1270..1283

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

          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

                  if ( isset( $content_struct['parent'] ) ) {
                      if ( ! $taxonomy['hierarchical'] )
                          return new IXR_Error( 403, __( "This taxonomy is not hierarchical so you can't set a parent." ) );
          
                      $parent_term_id = (int) $content_struct['parent'];
          Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php on lines 1708..1722

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

          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

                      elseif ($copyright = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'copyright'))
                      {
                          $copyright_url = null;
                          $copyright_label = null;
                          if (isset($copyright[0]['attribs']['']['url']))
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php and 1 other location - About 3 hrs to fix
          Web.Admin/2014/wordpress/wp-includes/SimplePie/Item.php on lines 1256..1283

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

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

                  init: function() {
                      var toolbar;
          
                      s.toolbar = toolbar = $('#fullscreen-topbar');
                      s.$fullscreenFader = $('#fullscreen-fader');
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-admin/js/wp-fullscreen.js - About 3 hrs to fix

            Function renderInlineUI has 80 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function renderInlineUI(args) {
                    var panel, inlineToolbarContainer;
            
                    if (settings.fixed_toolbar_container) {
                        inlineToolbarContainer = DOM.select(settings.fixed_toolbar_container)[0];

              Method extractByIndex has 80 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function extractByIndex($p_index)
                {
                  $v_result=1;
              
                  // ----- Reset the error handler
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 3 hrs to fix

                Method __construct has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function __construct() {
                        $this->methods = array(
                            // WordPress API
                            'wp.getUsersBlogs'        => 'this:wp_getUsersBlogs',
                            'wp.newPost'            => 'this:wp_newPost',
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 3 hrs to fix

                  Method paged_walk has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function paged_walk( $elements, $max_depth, $page_num, $per_page ) {
                  
                          /* sanity check */
                          if ( empty($elements) || $max_depth < -1 )
                              return '';
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/class-wp-walker.php - About 3 hrs to fix

                    Method paged_walk has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function paged_walk( $elements, $max_depth, $page_num, $per_page ) {
                    
                            /* sanity check */
                            if ( empty($elements) || $max_depth < -1 )
                                return '';
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/classes.php - About 3 hrs to fix

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

                      (function() {
                        this.bottom.initializeRange = this.top.initializeRange;
                        Object.extend(this.tags, {
                          THEAD: this.tags.TBODY,
                          TFOOT: this.tags.TBODY,
                      Web.Admin/2014/wordpress/wp-includes/js/prototype.js on lines 2528..2535

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

                      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

                      (function() {
                        this.bottom.initializeRange = this.top.initializeRange;
                        Object.extend(this.tags, {
                          THEAD: this.tags.TBODY,
                          TFOOT: this.tags.TBODY,
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js and 1 other location - About 3 hrs to fix
                      Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js on lines 2528..2535

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

                      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

                      SimplePie_IRI has 27 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      class SimplePie_IRI
                      {
                          /**
                           * Scheme
                           *
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/IRI.php - About 3 hrs to fix

                        Class TournamentQueries has 27 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                            public class TournamentQueries : BaseReadModel<TournamentQueries>,
                                IReadModel,
                                ITournamentQueries,
                                ISubscribeTo<TournamentCreated>,
                                ISubscribeTo<ChangeNotificationCutoffChanged>,
                        Severity: Minor
                        Found in ReadModels/TournamentQueries.cs - About 3 hrs to fix

                          Class ParticipantQueries has 27 methods (exceeds 20 allowed). Consider refactoring.
                          Open

                              public class ParticipantQueries : 
                                  IReadModel,
                                  IParticipantQueries,
                                  ISubscribeTo<ParticipantCreated>,
                                  ISubscribeTo<ParticipantRenamed>,
                          Severity: Minor
                          Found in ReadModels/ParticipantQueries.cs - About 3 hrs to fix

                            Function success has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                        success: function() {
                            
                                            // save the instance
                                            _galleries.push( self );
                            
                            
                            Severity: Major
                            Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 3 hrs to fix
                              Severity
                              Category
                              Status
                              Source
                              Language