CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

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

    function take_action() {

        if ( empty($_POST) )
            return;

Severity: Minor
Found in Web.Admin/2014/wordpress/wp-admin/custom-background.php - About 2 hrs to fix

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

        function wp_getPosts( $args ) {
            if ( ! $this->minimum_args( $args, 3 ) )
                return $this->error;
    
            $this->escape( $args );
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/class-wp-xmlrpc-server.php - About 2 hrs to fix

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

      function get_theme_data( $theme_file ) {
          $default_headers = array( 
              'Name' => 'Theme Name', 
              'URI' => 'Theme URI', 
              'Description' => 'Description', 
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/theme.php - About 2 hrs to fix

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

        function wp_set_object_terms($object_id, $terms, $taxonomy, $append = false) {
            global $wpdb;
        
            $object_id = (int) $object_id;
        
        
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/taxonomy.php - About 2 hrs to fix

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

              function import_from_reader($reader) {
                  $endian_string = MO::get_byteorder($reader->readint32());
                  if (false === $endian_string) {
                      return false;
                  }
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/pomo/mo.php - About 2 hrs to fix

            Consider simplifying this complex logical expression.
            Open

                    if ( 'post' == $current_screen->base
                        && 'add' != $current_screen->action
                        && ( $post_type_object = get_post_type_object( $post->post_type ) )
                        && current_user_can( 'read_post', $post->ID )
                        && ( $post_type_object->public )
            Severity: Critical
            Found in Web.Admin/2014/wordpress/wp-includes/admin-bar.php - About 2 hrs to fix

              Consider simplifying this complex logical expression.
              Open

                      if ($integer >= 0x41 && $integer <= 0x5A || $integer >= 0x61 && $integer <= 0x7A || $integer >= 0x30 && $integer <= 0x39 || $integer === 0x2D || $integer === 0x2E || $integer === 0x5F || $integer === 0x7E)
                      {
                          return chr($integer);
                      }
                      else
              Severity: Critical
              Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Misc.php - About 2 hrs to fix

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

                    function print_header_image_template() {
                        ?>
                        <script type="text/template" id="tmpl-header-choice">
                            <# if (data.random) { #>
                                    <button type="button" class="button display-options random">
                Severity: Minor
                Found in Web.Admin/2014/wordpress/wp-includes/class-wp-customize-control.php - About 2 hrs to fix

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

                      function render($diff)
                      {
                          $xi = $yi = 1;
                          $block = false;
                          $context = array();
                  Severity: Minor
                  Found in Web.Admin/2014/wordpress/wp-includes/Text/Diff/Renderer.php - About 2 hrs to fix

                    Consider simplifying this complex logical expression.
                    Open

                            if ( isset( $hour ) && ! isset( $minute ) && ! isset( $second ) && false !== ( $value = $this->build_value( $compare, $hour ) ) ) {
                                return "HOUR( $column ) $compare $value";
                            } elseif ( ! isset( $hour ) && isset( $minute ) && ! isset( $second ) && false !== ( $value = $this->build_value( $compare, $minute ) ) ) {
                                return "MINUTE( $column ) $compare $value";
                            } elseif ( ! isset( $hour ) && ! isset( $minute ) && isset( $second ) && false !== ( $value = $this->build_value( $compare, $second ) ) ) {
                    Severity: Critical
                    Found in Web.Admin/2014/wordpress/wp-includes/date.php - About 2 hrs to fix

                      Consider simplifying this complex logical expression.
                      Open

                              if ($integer >= 0x41 && $integer <= 0x5A || $integer >= 0x61 && $integer <= 0x7A || $integer >= 0x30 && $integer <= 0x39 || $integer === 0x2D || $integer === 0x2E || $integer === 0x5F || $integer === 0x7E)
                              {
                                  return chr($integer);
                              }
                              else
                      Severity: Critical
                      Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 2 hrs to fix

                        Function addTheme has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        Galleria.addTheme = function( theme ) {
                        
                            // make sure we have a name
                            if ( !theme.name ) {
                                Galleria.raise('No theme name specified');
                        Severity: Minor
                        Found in Web.Admin/2015/js/galleria/galleria-1.4.2.js - About 1 hr to fix

                          Function modalParticipantController has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              var modalParticipantController = function ($scope, $q, $modalInstance, dataService, participant, team, year, guestpackages) {
                                  $scope.model = {};
                                  
                                  $scope.model.title = team.Name;
                                  $scope.model.participant = participant || { Package: {} };
                          Severity: Minor
                          Found in Web.Admin/AdminApp/Controllers/controller.modal.participant.js - About 1 hr to fix

                            Function _setupWideWidget has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    _setupWideWidget: function() {
                                        var self = this, $widgetInside, $widgetForm, $customizeSidebar,
                                            $themeControlsContainer, positionWidget;
                            
                                        if ( ! this.params.is_wide ) {
                            Severity: Minor
                            Found in Web.Admin/2014/wordpress/wp-admin/js/customize-widgets.js - About 1 hr to fix

                              Function sync has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      sync: function( method, model, options ) {
                                          // If the attachment does not yet have an `id`, return an instantly
                                          // rejected promise. Otherwise, all of our requests will fail.
                                          if ( _.isUndefined( this.id ) ) {
                                              return $.Deferred().rejectWith( this ).promise();
                              Severity: Minor
                              Found in Web.Admin/2014/wordpress/wp-includes/js/media-models.js - About 1 hr to fix

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

                                    function show() {
                                        var parent = $('#wp-auth-check'),
                                            form = $('#wp-auth-check-form'),
                                            noframe = wrap.find('.wp-auth-fallback-expired'),
                                            frame, loaded = false;
                                Severity: Minor
                                Found in Web.Admin/2014/wordpress/wp-includes/js/wp-auth-check.js - About 1 hr to fix

                                  Function connect has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          function connect() {
                                              var ajaxData, heartbeatData;
                                  
                                              // If the connection to the server is slower than the interval,
                                              // heartbeat connects as soon as the previous connection's response is received.
                                  Severity: Minor
                                  Found in Web.Admin/2014/wordpress/wp-includes/js/heartbeat.js - About 1 hr to fix

                                    Function addTheme has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    Galleria.addTheme = function( theme ) {
                                    
                                        // make sure we have a name
                                        if ( !theme.name ) {
                                            Galleria.raise('No theme name specified');
                                    Severity: Minor
                                    Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 1 hr to fix

                                      Method privReadCentralFileHeader has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        function privReadCentralFileHeader(&$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 1 hr to fix

                                        Method update_core has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function update_core($from, $to) {
                                            global $wp_filesystem, $_old_files, $wpdb;
                                        
                                            @set_time_limit( 300 );
                                        
                                        
                                        Severity: Minor
                                        Found in Web.Admin/2014/wordpress/wp-admin/includes/update-core.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language