CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

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

    public static function recheck_queue() {
        global $wpdb;

        Akismet::fix_scheduled_recheck();

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

        public function set_authority($authority)
        {
            static $cache;
            if (!$cache)
                $cache = array();
    Severity: Major
    Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/IRI.php - About 2 hrs to fix

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

      function wp_notify_moderator($comment_id) {
          global $wpdb;
      
          if( get_option( "moderation_notify" ) == 0 )
              return true;
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/pluggable.php - About 2 hrs to fix

        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 get_allowed_mime_types has 51 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function get_allowed_mime_types() {
              static $mimes = false;
          
              if ( !$mimes ) {
                  // Accepted MIME types are set here as PCRE unless provided.
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/functions.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 start_el has 51 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function start_el(&$output, $category, $depth, $args) {
                      extract($args);
              
                      $cat_name = esc_attr( $category->name);
                      $cat_name = apply_filters( 'list_cats', $cat_name, $category );
              Severity: Major
              Found in Web.Admin/2014/wordpress/wp-includes/classes.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

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

                              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 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
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language