CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Function parseAjaxResponse has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    parseAjaxResponse: function( x, r, e ) { // 1 = good, 0 = strange (bad data?), -1 = you lack permission
        var parsed = {}, re = jQuery('#' + r).html(''), err = '';

        if ( x && typeof x == 'object' && x.getElementsByTagName('wp_ajax') ) {
            parsed.responses = [];
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/js/wp-ajax-response.dev.js - About 1 hr to fix

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

            get: (function(){
                /**
                 * @static
                 * @type Array
                 */
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/js/media-models.js - About 1 hr to fix

      Function bindSelectorChanged has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                      function bindSelectorChanged() {
                          var selection = editor.selection;
      
                          if (itemName == "bullist") {
                              selection.selectorChanged('ul > li', function(state, args) {

        Function renderReplaceImageToolbar has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                renderReplaceImageToolbar: function() {
                    var frame = this,
                        lastState = frame.lastState(),
                        previous = lastState && lastState.id;
        
        
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/js/media-views.js - About 1 hr to fix

          Function rescale has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              rescale : function( width, height, complete ) {
          
                  var self = this;
          
                  // allow rescale(fn)
          Severity: Minor
          Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 1 hr to fix

            Method privList has 35 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function privList(&$p_list)
              {
                $v_result=1;
            
                // ----- Magic quotes trick
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 1 hr to fix

              Method _get_row_actions has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function _get_row_actions( $post, $att_title ) {
                      $actions = array();
              
                      if ( $this->detached ) {
                          if ( current_user_can( 'edit_post', $post->ID ) )

                Method wp_edit_posts_query has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function wp_edit_posts_query( $q = false ) {
                    if ( false === $q )
                        $q = $_GET;
                    $q['m']   = isset($q['m']) ? (int) $q['m'] : 0;
                    $q['cat'] = isset($q['cat']) ? (int) $q['cat'] : 0;
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/includes/post.php - About 1 hr to fix

                  Method get_views has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function get_views() {
                          global $totals, $status;
                  
                          $status_links = array();
                          foreach ( $totals as $type => $count ) {

                    Method wp_dashboard_recent_comments has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function wp_dashboard_recent_comments() {
                        global $wpdb;
                    
                        if ( current_user_can('edit_posts') )
                            $allowed_states = array('0', '1');
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-admin/includes/dashboard.php - About 1 hr to fix

                      Method media_handle_upload has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function media_handle_upload($file_id, $post_id, $post_data = array()) {
                          $overrides = array('test_form'=>false);
                      
                          $time = current_time('mysql');
                          if ( $post = get_post($post_id) ) {
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-admin/includes/media.php - About 1 hr to fix

                        Method wp_insert_category has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function wp_insert_category($catarr, $wp_error = false) {
                            $cat_defaults = array('cat_ID' => 0, 'cat_name' => '', 'category_description' => '', 'category_nicename' => '', 'category_parent' => '');
                            $catarr = wp_parse_args($catarr, $cat_defaults);
                            extract($catarr, EXTR_SKIP);
                        
                        
                        Severity: Minor
                        Found in Web.Admin/2014/wordpress/wp-admin/includes/taxonomy.php - About 1 hr to fix

                          Method put has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function put($localfile, $remotefile=NULL, $rest=0) {
                                  if(is_null($remotefile)) $remotefile=$localfile;
                                  if (!file_exists($localfile)) {
                                      $this->PushError("put","can't open local file", "No such file or directory \"".$localfile."\"");
                                      return FALSE;
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-admin/includes/class-ftp.php - About 1 hr to fix

                            Method dirlist has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function dirlist($path = '.', $include_hidden = true, $recursive = false) {
                                    if ( $this->is_file($path) ) {
                                        $limit_file = basename($path);
                                        $path = dirname($path) . '/';
                                    } else {

                              Method wp_ajax_inline_save_tax has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

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

                                Method populate_roles_210 has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function populate_roles_210() {
                                    $roles = array('administrator', 'editor');
                                    foreach ($roles as $role) {
                                        $role =& get_role($role);
                                        if ( empty($role) )
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-admin/includes/schema.php - About 1 hr to fix

                                  Method download_comment_meta has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function download_comment_meta() {
                                          $cookie = $this->get_session();
                                          if ( is_wp_error( $cookie ) )
                                              return $cookie;
                                  
                                  
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-admin/import/livejournal.php - About 1 hr to fix

                                    Method download_post_bodies has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function download_post_bodies() {
                                            $imported_count  = (int) get_option( 'ljapi_imported_count' );
                                            $sync_item_times = get_option( 'ljapi_sync_item_times' );
                                            $lastsync        = get_option( 'ljapi_lastsync_posts' );
                                            if ( !$lastsync )
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-admin/import/livejournal.php - About 1 hr to fix

                                      Method mt_getRecentPostTitles has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function mt_getRecentPostTitles($args) {
                                      
                                              $this->escape($args);
                                      
                                              $blog_ID     = (int) $args[0];
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/xmlrpc.php - About 1 hr to fix

                                        Method put_file has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function put_file($postID) {
                                        
                                                // first check if user can upload
                                                if(!current_user_can('upload_files'))
                                                    $this->auth_required(__('You do not have permission to upload files.'));
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-app.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language