CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

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

function _response_to_rss ($resp) {
    $rss = new MagpieRSS( $resp->results );

    // if RSS parsed successfully
    if ( $rss && (!isset($rss->ERROR) || !$rss->ERROR) ) {
Severity: Minor
Found in Web.Admin/2014/wordpress/wp-includes/rss.php - About 1 hr to fix

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

    function get_post_class( $class = '', $post_id = null ) {
        $post = get_post($post_id);
    
        $classes = array();
    
    
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/post-template.php - About 1 hr to fix

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

          function replace_urls($data, $tag, $attributes)
          {
              if (!is_array($this->strip_htmltags) || !in_array($tag, $this->strip_htmltags))
              {
                  $elements = SimplePie_Misc::get_element($tag, $data);
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 hr to fix

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

            function fix_protocol($url, $http = 1)
            {
                $url = SimplePie_Misc::normalize_url($url);
                $parsed = SimplePie_Misc::parse_url($url);
                if ($parsed['scheme'] !== '' && $parsed['scheme'] !== 'http' && $parsed['scheme'] !== 'https')
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 hr to fix

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

          function get_comment_link( $comment = null, $args = array() ) {
              global $wp_rewrite, $in_comment_loop;
          
              $comment = get_comment($comment);
          
          
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/comment-template.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 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 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

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

                        Similar blocks of code found in 3 locations. Consider refactoring.
                        Open

                            function get_latitude()
                            {
                                if ($return = $this->get_channel_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lat'))
                                {
                                    return (float) $return[0]['data'];
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 2 other locations - About 1 hr to fix
                        Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 5576..5590
                        Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 6219..6233

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 101.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 3 locations. Consider refactoring.
                        Open

                            function get_latitude()
                            {
                                if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lat'))
                                {
                                    return (float) $return[0]['data'];
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 2 other locations - About 1 hr to fix
                        Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 2774..2788
                        Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 6219..6233

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 101.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 3 locations. Consider refactoring.
                        Open

                            function get_latitude()
                            {
                                if ($return = $this->get_source_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lat'))
                                {
                                    return (float) $return[0]['data'];
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 2 other locations - About 1 hr to fix
                        Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 2774..2788
                        Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 5576..5590

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 101.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                                foreach ( (array) array_keys($data) as $field ) {
                                    if ( !empty($format) )
                                        $form = ( $form = array_shift($formats) ) ? $form : $format[0];
                                    elseif ( isset($this->field_types[$field]) )
                                        $form = $this->field_types[$field];
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-includes/wp-db.php and 1 other location - About 1 hr to fix
                        Web.Admin/2014/wordpress/wp-includes/wp-db.php on lines 817..825

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 101.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 2 locations. Consider refactoring.
                        Open

                                foreach ( (array) array_keys($where) as $field ) {
                                    if ( !empty($where_format) )
                                        $form = ( $form = array_shift($where_formats) ) ? $form : $where_format[0];
                                    elseif ( isset($this->field_types[$field]) )
                                        $form = $this->field_types[$field];
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-includes/wp-db.php and 1 other location - About 1 hr to fix
                        Web.Admin/2014/wordpress/wp-includes/wp-db.php on lines 806..814

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 101.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

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