CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Function initSortable has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        initSortable: function() {
            var collection = this.collection;

            if ( ! this.options.sortable || ! $.fn.sortable ) {
                return;
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/js/media-views.js - About 1 hr to fix

    Function init has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            init: function() {
                inputs.wrap = $('#wp-link-wrap');
                inputs.dialog = $( '#wp-link' );
                inputs.backdrop = $( '#wp-link-backdrop' );
                inputs.submit = $( '#wp-link-submit' );
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/js/wplink.js - About 1 hr to fix

      Function draw has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        draw: function(point) {
          var pos = Position.cumulativeOffset(this.element);
          if(this.options.ghosting) {
            var r   = Position.realOffset(this.element);
            pos[0] += r[0] - Position.deltaX; pos[1] += r[1] - Position.deltaY;
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js - About 1 hr to fix

        Function selector has 32 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              selector: function(instance) {
                var ret       = []; // Beginning matches
                var partial   = []; // Inside matches
                var entry     = instance.getToken();
                var count     = 0;
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/controls.js - About 1 hr to fix

          Function calculateMovingAverage has 32 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              SWFUpload.speed.calculateMovingAverage = function (history) {
                  var vals = [], size, sum = 0.0, mean = 0.0, varianceTemp = 0.0, variance = 0.0, standardDev = 0.0;
                  var i;
                  var mSum = 0, mCount = 0;
                  

            Method get_sample_permalink has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function get_sample_permalink($id, $title = null, $name = null) {
                $post = &get_post($id);
                if (!$post->ID) {
                    return array('', '');
                }
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-admin/includes/post.php - About 1 hr to fix

              Method after has 32 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function after() {
                      $this->decrement_update_count( 'theme' );
              
                      $update_actions = array();
                      if ( ! empty( $this->upgrader->result['destination_name'] ) && $theme_info = $this->upgrader->theme_info() ) {

                Method wp_get_nav_menu_to_edit has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function wp_get_nav_menu_to_edit( $menu_id = 0 ) {
                    $menu = wp_get_nav_menu_object( $menu_id );
                
                    // If the menu exists, get its items.
                    if ( is_nav_menu( $menu ) ) {
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/includes/nav-menu.php - About 1 hr to fix

                  Method get has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function get($remotefile, $localfile=NULL, $rest=0) {
                          if(is_null($localfile)) $localfile=$remotefile;
                          if (@file_exists($localfile)) $this->SendMSG("Warning : local file will be overwritten");
                          $fp = @fopen($localfile, "w");
                          if (!$fp) {
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-admin/includes/class-ftp.php - About 1 hr to fix

                    Method _list_meta_row has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function _list_meta_row( $entry, &$count ) {
                        static $update_nonce = false;
                        if ( !$update_nonce )
                            $update_nonce = wp_create_nonce( 'add-meta' );
                    
                    
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 hr to fix

                      Method wp_ajax_menu_get_metabox has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function wp_ajax_menu_get_metabox() {
                          if ( ! current_user_can( 'edit_theme_options' ) )
                              wp_die( -1 );
                      
                          require_once ABSPATH . 'wp-admin/includes/nav-menu.php';
                      Severity: Minor
                      Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 1 hr to fix

                        Method wp_ajax_get_comments has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Method list_meta has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function list_meta( $meta ) {
                              // Exit if no meta
                              if ( ! $meta ) {
                                  echo '
                          <table id="list-table" style="display: none;">
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 1 hr to fix

                            Method _page_rows has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                function _page_rows( &$children_pages, &$count, $parent, $level, $pagenum, $per_page ) {
                            
                                    if ( ! isset( $children_pages[$parent] ) )
                                        return;
                            
                            

                              Method load_image_to_edit has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function load_image_to_edit($post_id, $mime_type, $size = 'full') {
                                  $filepath = get_attached_file($post_id);
                              
                                  if ( $filepath && file_exists($filepath) ) {
                                      if ( 'full' != $size && ( $data = image_get_intermediate_size($post_id, $size) ) )
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-admin/includes/image-edit.php - About 1 hr to fix

                                Method put_post has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function put_post($postID) {
                                        // checked for valid content-types (atom+xml)
                                        // quick check and exit
                                        $this->get_accepted_content_type($this->atom_content_types);
                                
                                
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-app.php - About 1 hr to fix

                                  Method get_comment has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function &get_comment(&$comment, $output = OBJECT) {
                                      global $wpdb;
                                      $null = null;
                                  
                                      if ( empty($comment) ) {
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/comment.php - About 1 hr to fix

                                    Method submit_spam_comment has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public static function submit_spam_comment( $comment_id ) {
                                            global $wpdb, $current_user, $current_site;
                                    
                                            $comment_id = (int) $comment_id;
                                    
                                    

                                      Method CleanUp has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          private function CleanUp() {
                                      
                                              // remove possible empty keys
                                              $AVpossibleEmptyKeys = array('dataformat', 'bits_per_sample', 'encoder_options', 'streams', 'bitrate');
                                              foreach ($AVpossibleEmptyKeys as $dummy => $key) {
                                      Severity: Minor
                                      Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.php - About 1 hr to fix

                                        Method ParseRIFFdata has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function ParseRIFFdata(&$RIFFdata) {
                                                $info = &$this->getid3->info;
                                                if ($RIFFdata) {
                                                    $tempfile = tempnam(GETID3_TEMP_DIR, 'getID3');
                                                    $fp_temp  = fopen($tempfile, 'wb');
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language