CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Function scroll has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  scroll: function() {
    var current = new Date();
    var delta = current - this.lastScrolled;
    this.lastScrolled = current;
    if(this.options.scroll == window) {
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js - About 1 hr to fix

    Method privAddList has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function privAddList($p_filedescr_list, &$p_result_list, &$p_options)
      {
        $v_result=1;
    
        // ----- Add the files
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 1 hr to fix

      Function _getWH has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _getWH : function() {
      
              var $container = this.$( 'container' ),
                  $target = this.$( 'target' ),
                  self = this,
      Severity: Minor
      Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 1 hr to fix

        Function checkPosition has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          Affix.prototype.checkPosition = function () {
            if (!this.$element.is(':visible')) return
        
            var height       = this.$element.height()
            var offset       = this.options.offset
        Severity: Minor
        Found in Web.Admin/Content/bootstrap/js/bootstrap.js - About 1 hr to fix

          Method SetServer has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function SetServer($host, $port=21, $reconnect=true) {
                  if(!is_long($port)) {
                      $this->verbose=true;
                      $this->SendMSG("Incorrect port syntax");
                      return FALSE;
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-admin/includes/class-ftp.php - About 1 hr to fix

            Method add_menu_classes has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function add_menu_classes($menu) {
            
                $first = $lastorder = false;
                $i = 0;
                $mc = count($menu);
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-admin/includes/menu.php - About 1 hr to fix

              Method connect has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function connect($server=NULL) {
                      if(!empty($server)) {
                          if(!$this->SetServer($server)) return false;
                      }
                      if($this->_ready) return true;
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-admin/includes/class-ftp.php - About 1 hr to fix

                Method _get_list_table has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function _get_list_table( $class, $args = array() ) {
                    $core_classes = array(
                        //Site Admin
                        'WP_Posts_List_Table' => 'posts',
                        'WP_Media_List_Table' => 'media',
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/includes/list-table.php - About 1 hr to fix

                  Method wp_delete_user has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function wp_delete_user($id, $reassign = 'novalue') {
                      global $wpdb;
                  
                      $id = (int) $id;
                      $user = new WP_User($id);
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-admin/includes/user.php - About 1 hr to fix

                    Method wp_ajax_add_user has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function wp_ajax_add_user( $action ) {
                        global $wp_list_table;
                        if ( empty( $action ) )
                            $action = 'add-user';
                    
                    
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 1 hr to fix

                      Method extra_tablenav has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function extra_tablenav( $which ) {
                              global $comment_status, $comment_type;
                      ?>
                              <div class="alignleft actions">
                      <?php

                        Method wp_ajax_edit_comment has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function wp_ajax_edit_comment() {
                            global $wp_list_table;
                        
                            check_ajax_referer( 'replyto-comment', '_ajax_nonce-replyto-comment' );
                        
                        
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 1 hr to fix

                          Method get_plugin_files has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function get_plugin_files($plugin) {
                              $plugin_file = WP_PLUGIN_DIR . '/' . $plugin;
                              $dir = dirname($plugin_file);
                              $plugin_files = array($plugin);
                              if ( is_dir($dir) && $dir != WP_PLUGIN_DIR ) {
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-admin/includes/plugin.php - About 1 hr to fix

                            Method link_advanced_meta_box has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function link_advanced_meta_box($link) {
                            ?>
                            <table class="form-table" style="width: 100%;" cellspacing="2" cellpadding="5">
                                <tr class="form-field">
                                    <th valign="top"  scope="row"><label for="link_image"><?php _e('Image Address') ?></label></th>
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-admin/includes/meta-boxes.php - About 1 hr to fix

                              Method import_tags has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function import_tags ( ) {
                                      echo '<div class="narrow">';
                                      echo '<p><h3>'.__('Reading UTW Tags&#8230;').'</h3></p>';
                              
                                      $tags = $this->get_utw_tags();
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-admin/import/utw.php - About 1 hr to fix

                                Method cat2wp has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function cat2wp($categories='')
                                    {
                                        // General Housekeeping
                                        global $wpdb;
                                        $count = 0;
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-admin/import/textpattern.php - About 1 hr to fix

                                  Method add_menu_classes has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function add_menu_classes($menu) {
                                  
                                      $first = $lastorder = false;
                                      $i = 0;
                                      $mc = count($menu);
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-admin/menu.php - About 1 hr to fix

                                    Method twentyfourteen_customize_register has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function twentyfourteen_customize_register( $wp_customize ) {
                                        // Add custom description to Colors and Background sections.
                                        $wp_customize->get_section( 'colors' )->description           = __( 'Background may only be visible on wide screens.', 'twentyfourteen' );
                                        $wp_customize->get_section( 'background_image' )->description = __( 'Background may only be visible on wide screens.', 'twentyfourteen' );
                                    
                                    

                                      Method rightnow_stats has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public static function rightnow_stats() {
                                              global $submenu, $wp_db_version;
                                      
                                              if ( 8645 < $wp_db_version  ) // 2.7
                                                  $link = add_query_arg( array( 'comment_status' => 'spam' ), admin_url( 'edit-comments.php' ) );

                                        Method twentyfourteen_list_authors has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function twentyfourteen_list_authors() {
                                            $contributor_ids = get_users( array(
                                                'fields'  => 'ID',
                                                'orderby' => 'post_count',
                                                'order'   => 'DESC',
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language