CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

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

        rescale: function(event) {

            // calculate
             var width = M.min( $win.width()-40, lightbox.width ),
                height = M.min( $win.height()-60, lightbox.height ),
Severity: Minor
Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 1 hr to fix

    Function save has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        save : function(id) {
            var params, fields, tax = $('input[name="taxonomy"]').val() || '';
    
            if( typeof(id) == 'object' )
                id = this.getId(id);
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-admin/js/inline-edit-tax.dev.js - About 1 hr to fix

      Function schedule has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      (function($){$.scheduler=function(){this.bucket={};return;};$.scheduler.prototype={schedule:function(){var ctx={"id":null,"time":1000,"repeat":false,"protect":false,"obj":null,"func":function(){},"args":[]};function _isfn(fn){return(!!fn&&typeof fn!="string"&&typeof fn[0]=="undefined"&&RegExp("function","i").test(fn+""));};var i=0;var override=false;if(typeof arguments[i]=="object"&&arguments.length>1){override=true;i++;}
      if(typeof arguments[i]=="object"){for(var option in arguments[i])
      if(typeof ctx[option]!="undefined")
      ctx[option]=arguments[i][option];i++;}
      if(typeof arguments[i]=="number"||(typeof arguments[i]=="string"&&arguments[i].match(RegExp("^[0-9]+[smhdw]$"))))
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/js/jquery/jquery.schedule.js - About 1 hr to fix

        Function getShortcode has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function getShortcode( content ) {
                return content.replace( /<div (?:id="attachment_|class="mceTemp)[^>]*>([\s\S]+?)<\/div>/g, function( a, b ) {
                    var out = '';
        
                    if ( b.indexOf('<img ') === -1 ) {

          Function initialize has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  initialize: function() {
                      var current = api.HeaderTool.currentHeader.get('choice').replace(/^https?:\/\//, ''),
                          isRandom = this.isRandomChoice(api.get().header_image);
          
                      // Overridable by an extending class
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/js/customize-models.js - About 1 hr to fix

            Function render has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    function render() {
                        if (panel) {
                            if (!panel.visible()) {
                                show();
                            }

              Function moveForm has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  moveForm : function(commId, parentId, respondId, postId) {
                      var t = this, div, comm = t.I(commId), respond = t.I(respondId), cancel = t.I('cancel-comment-reply-link'), parent = t.I('comment_parent'), post = t.I('comment_post_ID');
              
                      if ( ! comm || ! respond || ! cancel || ! parent )
                          return;
              Severity: Minor
              Found in Web.Admin/2014/wordpress/wp-includes/js/comment-reply.dev.js - About 1 hr to fix

                Function applyRatioToAxis has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                },applyRatioToAxis:function(_33,_34,_35,_36){
                var _37=Object.extend(_33,{});
                var _38=_37.a2-_37.a1;
                var _3a=Math.floor(_38*_34.b/_34.a);
                var _3b;
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/js/crop/cropper.js - About 1 hr to fix

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

                          rescale: function(event) {
                  
                              // calculate
                               var width = M.min( $win.width()-40, lightbox.width ),
                                  height = M.min( $win.height()-60, lightbox.height ),
                  Severity: Minor
                  Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 1 hr to fix

                    Function startDrag has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      startDrag: function(event) {
                        if (Event.isLeftClick(event)) {
                          if (!this.disabled){
                            this.active = true;
                            
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/slider.js - About 1 hr to fix

                      Function bindControls has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              bindControls: function() {
                      
                                  var i;
                      
                                  carousel.next.on( 'click:fast', function(e) {
                      Severity: Minor
                      Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 1 hr to fix

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

                          Tab.prototype.show = function () {
                            var $this    = this.element
                            var $ul      = $this.closest('ul:not(.dropdown-menu)')
                            var selector = $this.data('target')
                        
                        Severity: Minor
                        Found in Web.Admin/Content/bootstrap/js/bootstrap.js - About 1 hr to fix

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

                              function get_views() {
                                  global $wp_roles, $role;
                          
                                  if ( $this->is_site_users ) {
                                      $url = 'site-users.php?id=' . $this->site_id;

                            Method wp_dashboard_recent_drafts has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function wp_dashboard_recent_drafts( $drafts = false ) {
                                if ( !$drafts ) {
                                    $drafts_query = new WP_Query( array(
                                        'post_type' => 'post',
                                        'post_status' => 'draft',
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-admin/includes/dashboard.php - About 1 hr to fix

                              Method months_dropdown has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function months_dropdown( $post_type ) {
                                      global $wpdb, $wp_locale;
                              
                                      $months = $wpdb->get_results( $wpdb->prepare( "
                                          SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-admin/includes/class-wp-list-table.php - About 1 hr to fix

                                Method wp_install has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function wp_install($blog_title, $user_name, $user_email, $public, $deprecated='') {
                                    global $wp_rewrite;
                                
                                    wp_check_mysql_version();
                                    wp_cache_flush();
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-admin/includes/upgrade.php - About 1 hr to fix

                                  Method start_el has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
                                          global $_nav_menu_placeholder;
                                  
                                          $_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? intval($_nav_menu_placeholder) - 1 : -1;
                                          $possible_object_id = isset( $item->post_type ) && 'nav_menu_item' == $item->post_type ? $item->object_id : $_nav_menu_placeholder;
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-admin/includes/nav-menu.php - About 1 hr to fix

                                    Method get_default_post_to_edit has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function get_default_post_to_edit() {
                                    
                                        $post_title = '';
                                        if ( !empty( $_REQUEST['post_title'] ) )
                                            $post_title = esc_html( stripslashes( $_REQUEST['post_title'] ));
                                    Severity: Minor
                                    Found in Web.Admin/2014/wordpress/wp-admin/includes/post.php - About 1 hr to fix

                                      Method wpmu_delete_user has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

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

                                        Method link_categories_meta_box has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function link_categories_meta_box($link) { ?>
                                        <ul id="category-tabs">
                                            <li class="tabs"><a href="#categories-all"><?php _e( 'All Categories' ); ?></a></li>
                                            <li class="hide-if-no-js"><a href="#categories-pop"><?php _e( 'Most Used' ); ?></a></li>
                                        </ul>
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-admin/includes/meta-boxes.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language