CaffGeek/MBACNationals

View on GitHub

Showing 5,566 of 7,504 total issues

Method send_through_proxy has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function send_through_proxy( $uri ) {
        // parse_url() only handles http, https type URLs, and will emit E_WARNING on failure.
        // This will be displayed on blogs, which is not reasonable.
        $check = @parse_url($uri);

Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/class-http.php - About 1 hr to fix

    Method block_request has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function block_request($uri) {
            // We don't need to block requests, because nothing is blocked.
            if ( ! defined( 'WP_HTTP_BLOCK_EXTERNAL' ) || ! WP_HTTP_BLOCK_EXTERNAL )
                return false;
    
    
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/class-http.php - About 1 hr to fix

      Method BatchImpl has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              private static IEnumerable<TResult> BatchImpl<TSource, TResult>(this IEnumerable<TSource> source, int size,
                  Func<IEnumerable<TSource>, TResult> resultSelector)
              {
                  Debug.Assert(source != null);
                  Debug.Assert(size > 0);
      Severity: Minor
      Found in AzureTableHelper/MoreLinq/MoreEnumerable.Batch.cs - About 1 hr to fix

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

            function start_el(&$output, $page, $depth, $args, $current_page) {
                if ( $depth )
                    $indent = str_repeat("\t", $depth);
                else
                    $indent = '';
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/classes.php - About 1 hr to fix

          Method Handle has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  public IEnumerable Handle(Func<Guid, ContingentAggregate> al, SaveTravelPlans command)
                  {
                      var contingentAggregate = al(command.Id);
          
                      var travelPlans = command.TravelPlans.Select(x => new TravelPlansChanged.TravelPlan
          Severity: Minor
          Found in Aggregates/Contingent/ContingentCommandHandlers.cs - About 1 hr to fix

            Method Index has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    public ActionResult Index(string year)
                    {
                        var connectionString = ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString;
            
                        using (var con = new SqlConnection(connectionString))
            Severity: Minor
            Found in Web.Admin/Controllers/HistoryController.cs - About 1 hr to fix

              Function modalParticipantController has 8 arguments (exceeds 4 allowed). Consider refactoring.
              Open

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

                Consider simplifying this complex logical expression.
                Open

                            if(!shift && !ctrl && !alt && !meta) { // No Modifiers
                                mapPoint = cbMap[special] ||  cbMap[character]
                            }
                            // deals with combinaitons (alt|ctrl|shift+anything)
                            else{

                  Consider simplifying this complex logical expression.
                  Open

                          if (value != null && (element.type != 'submit' || (!submitted &&
                              submit !== false && (!submit || key == submit) && (submitted = true)))) {
                            if (key in result) {
                              // a key is already present; construct an array of values
                              if (!Object.isArray(result[key])) result[key] = [result[key]];
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/js/prototype.js - About 1 hr to fix

                    Consider simplifying this complex logical expression.
                    Open

                            if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images
                    
                                TB_PrevCaption = "";
                                TB_PrevURL = "";
                                TB_PrevHTML = "";
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/js/thickbox/thickbox.js - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                              if (value != null && (element.type != 'submit' || (!submitted &&
                                  submit !== false && (!submit || key == submit) && (submitted = true)))) {
                                if (key in result) {
                                  // a key is already present; construct an array of values
                                  if (!Object.isArray(result[key])) result[key] = [result[key]];
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/js/scriptaculous/prototype.js - About 1 hr to fix

                        Method get_image_send_to_editor has 8 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        function get_image_send_to_editor($id, $caption, $title, $align, $url='', $rel = false, $size='medium', $alt = '') {
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-admin/includes/media.php - About 1 hr to fix

                          Method image_add_caption has 8 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          function image_add_caption( $html, $id, $caption, $title, $align, $url, $size, $alt = '' ) {
                          Severity: Major
                          Found in Web.Admin/2014/wordpress/wp-admin/includes/media.php - About 1 hr to fix

                            Method _rows has 8 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                function _rows( $taxonomy, $terms, &$children, $start, $per_page, &$count, $parent = 0, $level = 0 ) {

                              Consider simplifying this complex logical expression.
                              Open

                                  if ( ! $error &&
                                          (
                                              ( !empty($credentials['password']) && !empty($credentials['username']) && !empty($credentials['hostname']) ) ||
                                              ( 'ssh' == $credentials['connection_type'] && !empty($credentials['public_key']) && !empty($credentials['private_key']) )
                                          ) ) {
                              Severity: Major
                              Found in Web.Admin/2014/wordpress/wp-admin/includes/file.php - About 1 hr to fix

                                Consider simplifying this complex logical expression.
                                Open

                                                if ( isset( $plugin_page ) &&
                                                    ($plugin_page == $submenu_array[2] ) &&
                                                    (($parent == $pagenow ) || ($parent == $plugin_page ) || ($plugin_page == $hook ) || (($pagenow == 'admin.php' ) && ($parent1 != $submenu_array[2] ) ) )
                                                    ) {
                                                        $title = $submenu_array[3];
                                Severity: Major
                                Found in Web.Admin/2014/wordpress/wp-admin/includes/plugin.php - About 1 hr to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                              <?php if ( is_404() || is_category() || is_day() || is_month() ||
                                                          is_year() || is_search() || is_paged() ) {
                                              ?> <li>
                                  
                                              <?php /* If this is a 404 page */ if (is_404()) { ?>
                                  Severity: Major
                                  Found in Web.Admin/2014/wordpress/wp-content/themes/default/sidebar.php - About 1 hr to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                                if ( $show_all || ( $n <= $end_size || ( $current && $n >= $current - $mid_size && $n <= $current + $mid_size ) || $n > $total - $end_size ) ) :
                                                    $link = str_replace('%_%', 1 == $n ? '' : $format, $base);
                                                    $link = str_replace('%#%', $n, $link);
                                                    if ( $add_args )
                                                        $link = add_query_arg( $add_args, $link );
                                    Severity: Major
                                    Found in Web.Admin/2014/wordpress/wp-includes/general-template.php - About 1 hr to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                                      if (!in_array($href, $done) && in_array('feed', $rel) || (in_array('alternate', $rel) && !in_array('stylesheet', $rel) && $link->hasAttribute('type') && in_array(strtolower($this->registry->call('Misc', 'parse_mime', array($link->getAttribute('type')))), array('application/rss+xml', 'application/atom+xml'))) && !isset($feeds[$href]))
                                                      {
                                                          $this->checked_feeds++;
                                                          $headers = array(
                                                              'Accept' => 'application/atom+xml, application/rss+xml, application/rdf+xml;q=0.9, application/xml;q=0.8, text/xml;q=0.8, text/html;q=0.7, unknown/unknown;q=0.1, application/unknown;q=0.1, */*;q=0.1',
                                      Severity: Major
                                      Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Locator.php - About 1 hr to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                            if ( ( !$menu || is_wp_error($menu) || ( isset($menu_items) && empty($menu_items) && !$args->theme_location ) )
                                                && $args->fallback_cb && is_callable( $args->fallback_cb ) )
                                                    return call_user_func( $args->fallback_cb, (array) $args );
                                        Severity: Major
                                        Found in Web.Admin/2014/wordpress/wp-includes/nav-menu-template.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language