CaffGeek/MBACNationals

View on GitHub

Showing 7,504 of 7,504 total issues

Function extractImageData has 67 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function extractImageData( imageNode ) {
        var classes, extraClasses, metadata, captionBlock, caption, link, width, height,
            dom = editor.dom,
            isIntRegExp = /^\d+$/;

    Function _parseData has 67 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        _parseData : function( callback ) {
    
            var self = this,
                current,
                ready = false,
    Severity: Major
    Found in Web.Admin/Content/galleria/galleria-1.4.2.js - About 2 hrs to fix

      Method wp_dashboard_setup has 67 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function wp_dashboard_setup() {
          global $wp_registered_widgets, $wp_registered_widget_controls, $wp_dashboard_control_callbacks;
          $wp_dashboard_control_callbacks = array();
      
          $update = false;
      Severity: Major
      Found in Web.Admin/2014/wordpress/wp-admin/includes/dashboard.php - About 2 hrs to fix

        Method dispatch has 67 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function dispatch()
            {
        
                if (empty ($_GET['step']))
                    $step = 0;
        Severity: Major
        Found in Web.Admin/2014/wordpress/wp-admin/import/textpattern.php - About 2 hrs to fix

          Method wp_mime_type_icon has 67 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function wp_mime_type_icon( $mime = 0 ) {
              if ( !is_numeric($mime) )
                  $icon = wp_cache_get("mime_type_icon_$mime");
              if ( empty($icon) ) {
                  $post_id = 0;
          Severity: Major
          Found in Web.Admin/2014/wordpress/wp-includes/post.php - About 2 hrs to fix

            Method get_links has 67 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function get_links($rel = 'alternate')
                {
                    if (!isset($this->data['links']))
                    {
                        $this->data['links'] = array();
            Severity: Major
            Found in Web.Admin/2014/wordpress/wp-includes/SimplePie/Source.php - About 2 hrs to fix

              Method feed_or_html has 67 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function feed_or_html()
                  {
                      $len = strlen($this->file->body);
                      $pos = strspn($this->file->body, "\x09\x0A\x0D\x20");
              
              

                Method feed_or_html has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function feed_or_html()
                    {
                        $len = strlen($this->file->body);
                        $pos = strspn($this->file->body, "\x09\x0A\x0D\x20");
                
                
                Severity: Major
                Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 2 hrs to fix

                  Method get_links has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function get_links($rel = 'alternate')
                      {
                          if (!isset($this->data['links']))
                          {
                              $this->data['links'] = array();
                  Severity: Major
                  Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 2 hrs to fix

                    Method absolutize has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function absolutize($base, $relative)
                        {
                            $relative = (string) $relative;
                            if ($relative !== '')
                            {
                    Severity: Major
                    Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 2 hrs to fix

                      Method get_links has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function get_links($rel = 'alternate')
                          {
                              if (!isset($this->data['links']))
                              {
                                  $this->data['links'] = array();
                      Severity: Major
                      Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php - About 2 hrs to fix

                        Method wp_fullscreen_html has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public static function wp_fullscreen_html() {
                                global $content_width;
                                $post = get_post();
                        
                                $width = isset( $content_width ) && 800 > $content_width ? $content_width : 800;
                        Severity: Major
                        Found in Web.Admin/2014/wordpress/wp-includes/class-wp-editor.php - About 2 hrs to fix

                          Method force_balance_tags has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function force_balance_tags( $text ) {
                              $tagstack = array(); $stacksize = 0; $tagqueue = ''; $newtext = '';
                              $single_tags = array('br', 'hr', 'img', 'input'); //Known single-entity/self-closing tags
                              $nestable_tags = array('blockquote', 'div', 'span'); //Tags that can be immediately nested within themselves
                          
                          
                          Severity: Major
                          Found in Web.Admin/2014/wordpress/wp-includes/formatting.php - About 2 hrs to fix

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

                                        foreach ( $wp_meta_boxes[$page][$context][$priority] as $box ) {
                                            if ( false == $box || ! $box['title'] )
                                                continue;
                                            // Submit box cannot be hidden
                                            if ( 'submitdiv' == $box['id'] || 'linksubmitdiv' == $box['id'] )
                            Severity: Major
                            Found in Web.Admin/2014/wordpress/wp-admin/includes/template.php and 1 other location - About 2 hrs to fix
                            Web.Admin/2014/wordpress/wp-admin/includes/screen.php on lines 78..88

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

                            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

                                        foreach ( $wp_meta_boxes[$screen->id][$context][$priority] as $box ) {
                                            if ( false == $box || ! $box['title'] )
                                                continue;
                                            // Submit box cannot be hidden
                                            if ( 'submitdiv' == $box['id'] || 'linksubmitdiv' == $box['id'] )
                            Severity: Major
                            Found in Web.Admin/2014/wordpress/wp-admin/includes/screen.php and 1 other location - About 2 hrs to fix
                            Web.Admin/2014/wordpress/wp-admin/includes/template.php on lines 3060..3070

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

                            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

                                public function text_or_binary()
                                {
                                    if (substr($this->file->body, 0, 2) === "\xFE\xFF"
                                        || substr($this->file->body, 0, 2) === "\xFF\xFE"
                                        || substr($this->file->body, 0, 4) === "\x00\x00\xFE\xFF"
                            Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 13555..13572

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

                            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 text_or_binary()
                                {
                                    if (substr($this->file->body, 0, 2) === "\xFE\xFF"
                                        || substr($this->file->body, 0, 2) === "\xFF\xFE"
                                        || substr($this->file->body, 0, 4) === "\x00\x00\xFE\xFF"
                            Severity: Major
                            Found in Web.Admin/2014/wordpress/wp-includes/class-simplepie.php and 1 other location - About 2 hrs to fix
                            Web.Admin/2014/wordpress/wp-includes/SimplePie/Content/Type/Sniffer.php on lines 149..166

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

                            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 0:
                                                                //$PictureSizeEnc = getid3_lib::BigEndian2Int(substr($FLVvideoHeader, 5, 2));
                                                                //$PictureSizeEnc <<= 1;
                                                                //$info['video']['resolution_x'] = ($PictureSizeEnc & 0xFF00) >> 8;
                                                                //$PictureSizeEnc = getid3_lib::BigEndian2Int(substr($FLVvideoHeader, 6, 2));
                            Web.Admin/2014/wordpress/wp-includes/ID3/module.audio-video.flv.php on lines 196..203

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

                            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

                                public static function iconv_fallback_utf16le_iso88591($string) {
                                    if (substr($string, 0, 2) == "\xFF\xFE") {
                                        // strip BOM
                                        $string = substr($string, 2);
                                    }
                            Severity: Major
                            Found in Web.Admin/2014/wordpress/wp-includes/ID3/getid3.lib.php and 1 other location - About 2 hrs to fix
                            Web.Admin/2014/wordpress/wp-includes/ID3/getid3.lib.php on lines 891..902

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

                            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

                                public function parse()
                                {
                                    while ($this->state && $this->state !== 'emit' && $this->has_data())
                                    {
                                        $state = $this->state;
                            Web.Admin/2014/wordpress/wp-includes/class-simplepie.php on lines 7975..7996

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

                            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