CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Method render_content has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function render_content() {
        $src = $this->value();
        if ( isset( $this->get_url ) )
            $src = call_user_func( $this->get_url, $src );

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

    Method get_the_content has 38 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function get_the_content($more_link_text = null, $stripteaser = 0) {
        global $id, $post, $more, $page, $pages, $multipage, $preview, $pagenow;
    
        if ( null === $more_link_text )
            $more_link_text = __( '(more...)' );
    Severity: Minor
    Found in Web.Admin/2014/wordpress/wp-includes/post-template.php - About 1 hr to fix

      Method array_unique has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function array_unique($array)
          {
              if (version_compare(PHP_VERSION, '5.2', '>='))
              {
                  return array_unique($array);
      Severity: Minor
      Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 1 hr to fix

        Method restore_current_blog has 38 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function restore_current_blog() {
            global $wpdb, $wp_roles;
        
            if ( empty( $GLOBALS['_wp_switched_stack'] ) )
                return false;
        Severity: Minor
        Found in Web.Admin/2014/wordpress/wp-includes/ms-blogs.php - About 1 hr to fix

          Method switch_to_blog has 38 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function switch_to_blog( $new_blog, $deprecated = null ) {
              global $wpdb, $wp_roles;
          
              if ( empty( $new_blog ) )
                  $new_blog = $GLOBALS['blog_id'];
          Severity: Minor
          Found in Web.Admin/2014/wordpress/wp-includes/ms-blogs.php - About 1 hr to fix

            Method _changed has 38 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function _changed( $orig, $final ) {
                    $r = '';
            
                    // Does the aforementioned additional processing
                    // *_matches tell what rows are "the same" in orig and final.  Those pairs will be diffed to get word changes
            Severity: Minor
            Found in Web.Admin/2014/wordpress/wp-includes/wp-diff.php - About 1 hr to fix

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

                      public void Handle(ParticipantGameCompleted e)
                      {
                          var divisionName = SimplifyDivision(e.Division);
                          var year = "2014";
                          if (MatchYearLookup.ContainsKey(e.Id))
              Severity: Minor
              Found in ReadModels/StatisticsQueries.cs - About 1 hr to fix

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

                    protected function is_linear_whitespace()
                    {
                        return (bool) ($this->data[$this->position] === "\x09"
                            || $this->data[$this->position] === "\x20"
                            || ($this->data[$this->position] === "\x0A"
                Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 8015..8022

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

                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

                    function is_linear_whitespace()
                    {
                        return (bool) ($this->data[$this->position] === "\x09"
                            || $this->data[$this->position] === "\x20"
                            || ($this->data[$this->position] === "\x0A"
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 1 other location - About 1 hr to fix
                Web.Admin/2014/wordpress/wp-includes/SimplePie/HTTP/Parser.php on lines 185..192

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

                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

                    protected function _update_theme_mod( $value ) {
                        // Handle non-array theme mod.
                        if ( empty( $this->id_data[ 'keys' ] ) )
                            return set_theme_mod( $this->id_data[ 'base' ], $value );
                
                
                Web.Admin/2014/wordpress/wp-includes/class-wp-customize-setting.php on lines 283..293

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

                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

                    protected function linear_whitespace()
                    {
                        do
                        {
                            if (substr($this->data, $this->position, 2) === "\x0D\x0A")
                Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 8156..8171

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

                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

                    function linear_whitespace()
                    {
                        do
                        {
                            if (substr($this->data, $this->position, 2) === "\x0D\x0A")
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 1 other location - About 1 hr to fix
                Web.Admin/2014/wordpress/wp-includes/SimplePie/HTTP/Parser.php on lines 315..330

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

                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

                    protected function _update_option( $value ) {
                        // Handle non-array option.
                        if ( empty( $this->id_data[ 'keys' ] ) )
                            return update_option( $this->id_data[ 'base' ], $value );
                
                
                Web.Admin/2014/wordpress/wp-includes/class-wp-customize-setting.php on lines 263..273

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

                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

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

                {var c=Coords.getFixed();Coords.setPressed([c.x,c.y]);Coords.setCurrent([c.x2,c.y2]);updateVisible();};function updateVisible()
                Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.dev.js on lines 533..540

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

                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

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

                {$img2.css({top:px(-y),left:px(-x)});$sel.css({top:px(y),left:px(x)});};function resize(w,h)
                Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.dev.js on lines 522..525

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

                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

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

                        {
                            var c = Coords.getFixed();
                
                            Coords.setPressed([c.x,c.y]);
                            Coords.setCurrent([c.x2,c.y2]);
                Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.js on lines 73..73

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

                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

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

                        {
                            $img2.css({ top: px(-y), left: px(-x) });
                            $sel.css({ top: px(y), left: px(x) });
                        };
                Web.Admin/2014/wordpress/wp-includes/js/jcrop/jquery.Jcrop.js on lines 71..71

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

                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

                        if ( x ) {
                            h1 = (w.val() != '') ? this.intval( w.val() / this.hold['xy_ratio'] ) : '';
                            h.val( h1 );
                        } else {
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-admin/js/image-edit.dev.js and 1 other location - About 1 hr to fix
                Web.Admin/2014/wordpress/wp-admin/js/image-edit.dev.js on lines 77..80

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

                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

                                        flattenedTravelPlans.push({
                                            Province: contingent.Province,
                                            ModeOfTransportation: plan.ModeOfTransportation,
                                            When: plan.When,
                                            FlightNumber: plan.FlightNumber,
                Severity: Major
                Found in Web.Admin/AdminApp/Controllers/controller.reports.js and 1 other location - About 1 hr to fix
                Web.Admin/AdminApp/Services/service.data.js on lines 395..403

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

                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

                                case 'hspace':
                                    v = dom.getStyle(e, 'margin-left')
                                    v2 = dom.getStyle(e, 'margin-right');
                                    if (v && v == v2)
                                        return parseInt(v.replace(/[^0-9]/g, ''));
                Web.Admin/2014/wordpress/wp-includes/js/tinymce/themes/advanced/js/image.js on lines 190..196

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

                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

                Severity
                Category
                Status
                Source
                Language