CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

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

    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 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 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 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_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 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 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 _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_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_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 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 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

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

                                  function update_object_term_cache($object_ids, $object_type) {
                                      if ( empty($object_ids) )
                                          return;
                                  
                                      if ( !is_array($object_ids) )
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/taxonomy.php - About 1 hr to fix

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

                                        public static function numChannelsLookup($index) {
                                            switch ($index) {
                                                case 0:
                                                    return 1;
                                                    break;
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.dts.php - About 1 hr to fix

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

                                          public static function MPEGaudioFrameLength(&$bitrate, &$version, &$layer, $padding, &$samplerate) {
                                              static $AudioFrameLengthCache = array();
                                      
                                              if (!isset($AudioFrameLengthCache[$bitrate][$version][$layer][$padding][$samplerate])) {
                                                  $AudioFrameLengthCache[$bitrate][$version][$layer][$padding][$samplerate] = false;
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.mp3.php - About 1 hr to fix

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

                                            public static function bitrateLookup($index) {
                                                static $lookup = array(
                                                    0  => 32000,
                                                    1  => 56000,
                                                    2  => 64000,
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-includes/ID3/module.audio.dts.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language