CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Consider simplifying this complex logical expression.
Open

                    if( ( proxyXHR.statusText != 'abort' || proxyXHR.current ) && data ){
                        // Mark active job
                        _complete = false;

                        // Set current upload file
Severity: Major
Found in Web.Admin/z-scripts/FileAPI.js - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

            if ( !(button > 1 || e.ctrlKey || e.metaKey || e.shiftKey || element.attr('target')) ) {
              // HACK: This is to allow ng-clicks to be processed before the transition is initiated:
              var transition = $timeout(function() {
                $state.go(ref.state, params, options);
              });
    Severity: Major
    Found in Web.Admin/z-scripts/angular-ui-router.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

          if (Object.isString(insertions) || Object.isNumber(insertions) ||
              Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML)))
                insertions = { bottom: insertions };
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

              if (child.className && (cn = ' ' + child.className + ' ') && (cn.include(className) ||
                  (classNames && classNames.all(function(name) {
                    return !name.toString().blank() && cn.include(' ' + name + ' ');
                  }))))
                elements.push(Element.extend(child));
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

              if (Object.isString(insertions) || Object.isNumber(insertions) ||
                  Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML)))
                    insertions = {bottom:insertions};
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                            if ( ! range.collapsed || ( range.startOffset === 0 && container.length ) ||
                                container.nextSibling ||
                                ( container.nodeType === 3 && range.startOffset !== container.length ) ) { // Not at the end of the current range
            
                                return;
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/js/tinymce/plugins/wpview/plugin.js - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                          if ( event.ctrlKey || event.metaKey || event.altKey ||
                              ( keyCode < 48 && keyCode > 90 ) || keyCode > 186 ) {
                              return;
                          }

                Consider simplifying this complex logical expression.
                Open

                    if (Object.isString(insertions) || Object.isNumber(insertions) ||
                        Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML)))
                          insertions = {bottom:insertions};
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                        if (child.className && (cn = ' ' + child.className + ' ') && (cn.include(className) ||
                            (classNames && classNames.all(function(name) {
                              return !name.toString().blank() && cn.include(' ' + name + ' ');
                            }))))
                          elements.push(Element.extend(child));
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 40 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                        if (Object.isString(insertions) || Object.isNumber(insertions) ||
                            Object.isElement(insertions) || (insertions && (insertions.toElement || insertions.toHTML)))
                              insertions = { bottom: insertions };
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                            if((tag_name = src.tagName.toUpperCase()) && (
                              tag_name=='INPUT' ||
                              tag_name=='SELECT' ||
                              tag_name=='OPTION' ||
                              tag_name=='BUTTON' ||
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/dragdrop.js - About 40 mins to fix

                        Consider simplifying this complex logical expression.
                        Open

                          if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 2)) {
                            throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3')
                          }
                        Severity: Major
                        Found in Web.Admin/Content/bootstrap/js/bootstrap.js - About 40 mins to fix

                          Consider simplifying this complex logical expression.
                          Open

                                                  if ( ('reply' == $action || 'quickedit' == $action) && ! $from_ajax )
                                                      $action .= ' hide-if-no-js';
                                                  elseif ( ($action == 'untrash' && $the_comment_status == 'trash') || ($action == 'unspam' && $the_comment_status == 'spam') ) {
                                                      if ('1' == get_comment_meta($comment_id, '_wp_trash_meta_status', true))
                                                          $action .= ' approve';
                          Severity: Major
                          Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 40 mins to fix

                            Consider simplifying this complex logical expression.
                            Open

                                        if (
                                            empty( $_item_object_data['menu-item-object-id'] ) && // checkbox is not checked
                                            (
                                                ! isset( $_item_object_data['menu-item-type'] ) || // and item type either isn't set
                                                in_array( $_item_object_data['menu-item-url'], array( 'http://', '' ) ) || // or URL is the default
                            Severity: Major
                            Found in Web.Admin/2014/wordpress/wp-admin/includes/nav-menu.php - About 40 mins to fix

                              Consider simplifying this complex logical expression.
                              Open

                                      if ( 'cb' == $column || 'title' == $column || 'name' == $column || 'username' == $column || 'media' == $column || 'comment' == $column )
                                          continue;
                              Severity: Major
                              Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php - About 40 mins to fix

                                Consider simplifying this complex logical expression.
                                Open

                                    if ( isset($_POST['trash']) && 1 == $_POST['trash'] ) {
                                        if ( 'trash' == $status )
                                            wp_die( time() );
                                        $r = wp_trash_comment( $comment->comment_ID );
                                    } elseif ( isset($_POST['untrash']) && 1 == $_POST['untrash'] ) {
                                Severity: Major
                                Found in Web.Admin/2014/wordpress/wp-admin/includes/ajax-actions.php - About 40 mins to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                                  if ( ( 'reply' == $action || 'quickedit' == $action ) && ! defined('DOING_AJAX') )
                                                      $action .= ' hide-if-no-js';
                                                  elseif ( ( $action == 'untrash' && $the_comment_status == 'trash' ) || ( $action == 'unspam' && $the_comment_status == 'spam' ) ) {
                                                      if ( '1' == get_comment_meta( $comment->comment_ID, '_wp_trash_meta_status', true ) )
                                                          $action .= ' approve';

                                    Consider simplifying this complex logical expression.
                                    Open

                                        if ( (isset($_REQUEST['delete_all']) || isset($_REQUEST['delete_all2'])) && !empty($_REQUEST['pagegen_timestamp']) ) {
                                            $comment_status = $wpdb->escape($_REQUEST['comment_status']);
                                            $delete_time = $wpdb->escape($_REQUEST['pagegen_timestamp']);
                                            $comment_ids = $wpdb->get_col( "SELECT comment_ID FROM $wpdb->comments WHERE comment_approved = '$comment_status' AND '$delete_time' > comment_date_gmt" );
                                            $doaction = 'delete';
                                    Severity: Major
                                    Found in Web.Admin/2014/wordpress/wp-admin/edit-comments.php - About 40 mins to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                          if ( $approved > 0 || $deleted > 0 || $trashed > 0 || $untrashed > 0 || $spammed > 0 || $unspammed > 0 ) {
                                              echo '<div id="moderated" class="updated fade"><p>';
                                      
                                              if ( $approved > 0 ) {
                                                  printf( _n( '%s comment approved', '%s comments approved', $approved ), $approved );
                                      Severity: Major
                                      Found in Web.Admin/2014/wordpress/wp-admin/edit-comments.php - About 40 mins to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                        <?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) || isset($_GET['deleted']) || isset($_GET['trashed']) || isset($_GET['untrashed']) ) { ?>
                                        <div id="message" class="updated fade"><p>
                                        <?php if ( isset($_GET['updated']) && (int) $_GET['updated'] ) {
                                            printf( _n( '%s page updated.', '%s pages updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) );
                                            unset($_GET['updated']);
                                        Severity: Major
                                        Found in Web.Admin/2014/wordpress/wp-admin/edit-pages.php - About 40 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language