CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method SmtpSend has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function SmtpSend($header, $body) {
    include_once($this->PluginDir . 'class-smtp.php');
    $error = '';
    $bad_rcpt = array();

Severity: Major
Found in Web.Admin/2014/wordpress/wp-includes/class-phpmailer.php - About 2 hrs to fix

    Method CreateHeader has 51 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function CreateHeader() {
        $result = '';
    
        /* Set the boundaries */
        $uniq_id = md5(uniqid(time()));
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/class-phpmailer.php - About 2 hrs to fix

      Method send_headers has 51 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function send_headers() {
              $headers = array('X-Pingback' => get_bloginfo('pingback_url'));
              $status = null;
              $exit_required = false;
      
      
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/classes.php - About 2 hrs to fix

        Function link has 50 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            link: function(scope, element, attrs, uiSrefActive) {
              var ref = parseStateRef(attrs.uiSref, $state.current.name);
              var params = null, url = null, base = stateContext(element) || $state.$current;
              // SVGAElement does not use the href attribute, but rather the 'xlinkHref' attribute.
              var hrefKind = Object.prototype.toString.call(element.prop('href')) === '[object SVGAnimatedString]' ?
        Severity: Minor
        Found in Web.Admin/z-scripts/angular-ui-router.js - About 2 hrs to fix

          Function sponsorsController has 50 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              var sponsorsController = function ($http, $q, $location, dataService) {
                  var url = $location.absUrl();
                  var lastSlash = url.lastIndexOf('/');
                  var year = url.slice(lastSlash + 1);
          
          
          Severity: Minor
          Found in Web.Admin/AdminApp/Controllers/controller.sponsors.js - About 2 hrs to fix

            Function _exit has 50 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    _exit: function( callback ) {
            
                        fullscreen.active = false;
            
                        var inBrowser = !self._options.trueFullscreen || !_nativeFullscreen.support,
            Severity: Minor
            Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 2 hrs to fix

              Consider simplifying this complex logical expression.
              Open

                              if ( ! inputs[i].checked &&
                              ( 'left' == side && 1 > checkCount || 'right' == side && 1 < checkCount && ( ! inputs[i-1] || ! inputs[i-1].checked ) ) &&
                              ! ( inputs[i+1] && inputs[i+1].checked && 'right' == inputs[i+1].getAttribute('name') ) )
                                  inputs[i].style.visibility = 'hidden';
                              else if ( 'left' == side || 'right' == side )
              Severity: Critical
              Found in Web.Admin/2014/wordpress/wp-includes/js/wp-list-revisions.js - About 2 hrs to fix

                Function _setupUpdateUI has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        _setupUpdateUI: function() {
                            var self = this, $widgetRoot, $widgetContent,
                                $saveBtn, updateWidgetDebounced, formSyncHandler;
                
                            $widgetRoot = this.container.find( '.widget:first' );
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-admin/js/customize-widgets.js - About 2 hrs to fix

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

                              init: function() {
                                  slider.animating = false;
                                  slider.currentSlide = 0;
                                  slider.animatingTo = slider.currentSlide;
                                  slider.atEnd = ( slider.currentSlide === 0 || slider.currentSlide === slider.last );

                    Function calculateImageSelectOptions has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            calculateImageSelectOptions: function(attachment, controller) {
                                var xInit = parseInt(_wpCustomizeHeader.data.width, 10),
                                    yInit = parseInt(_wpCustomizeHeader.data.height, 10),
                                    flexWidth = !! parseInt(_wpCustomizeHeader.data['flex-width'], 10),
                                    flexHeight = !! parseInt(_wpCustomizeHeader.data['flex-height'], 10),
                    Severity: Minor
                    Found in Web.Admin/2014/wordpress/wp-admin/js/customize-controls.js - About 2 hrs to fix

                      Function mapColors has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function mapColors() {
                              var i, colors = [], colorMap;
                      
                              colorMap = editor.settings.textcolor_map || [
                                  "000000", "Black",

                        Function _exit has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                _exit: function( callback ) {
                        
                                    fullscreen.active = false;
                        
                                    var inBrowser = !self._options.trueFullscreen || !_nativeFullscreen.support,
                        Severity: Minor
                        Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 2 hrs to fix

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

                            initialize: function(element) {
                              var defaults = {
                                handle: false,
                                reverteffect: function(element, top_offset, left_offset) {
                                  var dur = Math.sqrt(Math.abs(top_offset^2)+Math.abs(left_offset^2))*0.02;
                          Severity: Minor
                          Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js - About 2 hrs to fix

                            Method privReadFileHeader has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              function privReadFileHeader(&$p_header)
                              {
                                $v_result=1;
                            
                                // ----- Read the 4 bytes signature
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-admin/includes/class-pclzip.php - About 2 hrs to fix

                              Method wp_nav_menu_update_menu_items has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function wp_nav_menu_update_menu_items ( $nav_menu_selected_id, $nav_menu_selected_title ) {
                                  $unsorted_menu_items = wp_get_nav_menu_items( $nav_menu_selected_id, array( 'orderby' => 'ID', 'output' => ARRAY_A, 'output_key' => 'ID', 'post_status' => 'draft,publish' ) );
                              
                                  $menu_items = array();
                                  // Index menu items by db ID
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-admin/includes/nav-menu.php - About 2 hrs to fix

                                Method wp_ajax_save_widget has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function wp_ajax_save_widget() {
                                    global $wp_registered_widgets, $wp_registered_widget_controls, $wp_registered_widget_updates;
                                
                                    check_ajax_referer( 'save-sidebar-widgets', 'savewidgets' );
                                
                                
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 2 hrs to fix

                                  Method meta_form has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function meta_form() {
                                      global $wpdb;
                                      $limit = (int) apply_filters( 'postmeta_form_limit', 30 );
                                      $keys = $wpdb->get_col( "
                                          SELECT meta_key
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 2 hrs to fix

                                    Method wp_ajax_inline_save has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

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

                                      Method _display_rows_hierarchical has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function _display_rows_hierarchical( $pages, $pagenum = 1, $per_page = 20 ) {
                                              global $wpdb;
                                      
                                              $level = 0;
                                      
                                      

                                        Method get_feed has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function get_feed($page = 1, $post_type = 'post') {
                                                global $post, $wp, $wp_query, $posts, $wpdb, $blog_id;
                                                log_app('function',"get_feed($page, '$post_type')");
                                                ob_start();
                                        
                                        
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-app.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language