CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Method print_plugins_table has 77 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function print_plugins_table($plugins, $context = '') {
    global $page;
?>
<table class="widefat" cellspacing="0" id="<?php echo $context ?>-plugins-table">
    <thead>
Severity: Major
Found in Web.Admin/2014/wordpress/wp-admin/plugins.php - About 3 hrs to fix

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

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

      Method diff has 77 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function diff($from_lines, $to_lines)
          {
              array_walk($from_lines, array('Text_Diff', 'trimNewlines'));
              array_walk($to_lines, array('Text_Diff', 'trimNewlines'));
      
      
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/Text/Diff/Engine/native.php - About 3 hrs to fix

        Method wp_generate_tag_cloud has 77 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function wp_generate_tag_cloud( $tags, $args = '' ) {
            global $wp_rewrite;
            $defaults = array(
                'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 0,
                'format' => 'flat', 'separator' => "\n", 'orderby' => 'name', 'order' => 'ASC',
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-includes/category-template.php - About 3 hrs to fix

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

              function get_authors()
              {
                  $authors = array();
                  foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'author') as $author)
                  {
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 3 hrs to fix

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

                        elseif ($ratings = $parent->get_channel_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'rating'))
                        {
                            foreach ($ratings as $rating)
                            {
                                $rating_scheme = null;
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 1 other location - About 3 hrs to fix
            Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 4205..4272

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

            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 ( ! $res ) {
                    $request = wp_remote_post('http://api.wordpress.org/themes/info/1.0/', array( 'body' => array('action' => $action, 'request' => serialize($args))) );
                    if ( is_wp_error($request) ) {
                        $res = new WP_Error('themes_api_failed', __('An Unexpected HTTP Error occured during the API request.</p> <p><a href="?" onclick="document.location.reload(); return false;">Try again</a>'), $request->get_error_message() );
                    } else {
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-admin/includes/theme-install.php and 1 other location - About 3 hrs to fix
            Web.Admin/2014/wordpress/wp-admin/includes/plugin-install.php on lines 40..51

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

            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 ( ! $res ) {
                    $request = wp_remote_post('http://api.wordpress.org/plugins/info/1.0/', array( 'body' => array('action' => $action, 'request' => serialize($args))) );
                    if ( is_wp_error($request) ) {
                        $res = new WP_Error('plugins_api_failed', __('An Unexpected HTTP Error occurred during the API request.</p> <p><a href="?" onclick="document.location.reload(); return false;">Try again</a>'), $request->get_error_message() );
                    } else {
            Web.Admin/2014/wordpress/wp-admin/includes/theme-install.php on lines 54..63

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

            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 ($ratings = $this->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'rating'))
                        {
                            foreach ($ratings as $rating)
                            {
                                $rating_scheme = null;
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 1 other location - About 3 hrs to fix
            Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 4239..4259

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

            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 Parser.php has 294 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/HTTP/Parser.php - About 3 hrs to fix

              Function $get has 76 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function $get(   $location,   $rootScope,   $injector,   $browser) {
              
                  var baseHref = $browser.baseHref(), location = $location.url(), lastPushedUrl;
              
                  function appendBasePath(url, isHtml5, absolute) {
              Severity: Major
              Found in Web.Admin/z-scripts/angular-ui-router.js - About 3 hrs to fix

                Function _send has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                                        _send: function (options, formData){
                                            if(
                                                   formData.nodeName
                                                || formData.append && api.support.html5
                                                || api.isArray(formData) && (typeof formData[0] === 'string')
                Severity: Major
                Found in Web.Admin/z-scripts/FileAPI.js - About 3 hrs to fix

                  Function show has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      show : function( index, rewind, _history ) {
                  
                          var swipe = this._options.swipe;
                  
                          // do nothing queue is long || index is false || queue is false and transition is in progress
                  Severity: Major
                  Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 3 hrs to fix

                    Function scheduleController has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        var scheduleController = function ($scope, $http, $filter, dataService) {
                            $scope.model = {};
                            $scope.schedule = {};
                    
                            $scope.loadLaneDraw = loadLaneDraw;
                    Severity: Major
                    Found in Web.Admin/ClientApp/Controllers/controller.schedule.js - About 3 hrs to fix

                      Function show has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          show : function( index, rewind, _history ) {
                      
                              var swipe = this._options.swipe;
                      
                              // do nothing queue is long || index is false || queue is false and transition is in progress
                      Severity: Major
                      Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 3 hrs to fix

                        Method single_row has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function single_row( $user_object, $style = '', $role = '', $numposts = 0 ) {
                                global $wp_roles;
                        
                                if ( !( is_object( $user_object ) && is_a( $user_object, 'WP_User' ) ) )
                                    $user_object = get_userdata( (int) $user_object );

                          Method link_cat_row has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function link_cat_row( $category, $name_override = false ) {
                              static $row_class = '';
                          
                              if ( !$category = get_term( $category, 'link_category', OBJECT, 'display' ) )
                                  return false;
                          Severity: Major
                          Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 3 hrs to fix

                            Method wp_ajax_add_meta has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function wp_ajax_add_meta() {
                                check_ajax_referer( 'add-meta', '_ajax_nonce-add-meta' );
                                $c = 0;
                                $pid = (int) $_POST['post_id'];
                                $post = get_post( $pid );
                            Severity: Major
                            Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 3 hrs to fix

                              Method favorite_actions has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function favorite_actions( $screen = null ) {
                                  switch ( $screen ) {
                                      case 'post-new.php':
                                          $default_action = array('edit.php' => array(__('Edit Posts'), 'edit_posts'));
                                          break;
                              Severity: Major
                              Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 3 hrs to fix

                                Method get_column_headers has 76 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function get_column_headers($page) {
                                    global $_wp_column_headers;
                                
                                    if ( !isset($_wp_column_headers) )
                                        $_wp_column_headers = array();
                                Severity: Major
                                Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 3 hrs to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language