XoopsModules25x/smallworld

View on GitHub
assets/js/jquery.oembed.js

Summary

Maintainability
F
2 wks
Test Coverage

File jquery.oembed.js has 956 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * jquery oembed plugin
 *
 * Copyright (c) 2009 Richard Chamorro
 * Licensed under the MIT license
Severity: Major
Found in assets/js/jquery.oembed.js - About 2 days to fix

    Function embedCode has 136 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function embedCode(container, externalUrl, embedProvider) {
            if (xoops_smallworld('#jqoembeddata').data(externalUrl) != undefined && embedProvider.embedtag.tag != 'iframe') {
                var oembedData = {code: xoops_smallworld('#jqoembeddata').data(externalUrl)};
                success(oembedData, externalUrl, container);
            } else if (embedProvider.yql) {
    Severity: Major
    Found in assets/js/jquery.oembed.js - About 5 hrs to fix

      Function md5 has 126 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      String.prototype.md5 = function () {
          var a = function (a, b) {
              var c = (a & 65535) + (b & 65535);
              var d = (a >> 16) + (b >> 16) + (c >> 16);
              return d << 16 | c & 65535
      Severity: Major
      Found in assets/js/jquery.oembed.js - About 5 hrs to fix

        Function oembed has 87 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            xoops_smallworld.fn.oembed = function (url, options, embedAction) {
        
                settings = xoops_smallworld.extend(true, xoops_smallworld.fn.oembed.defaults, options);
                var shortURLList = ["0rz.tw", "1link.in", "1url.com", "2.gp", "2big.at", "2tu.us", "3.ly", "307.to", "4ms.me", "4sq.com", "4url.cc", "6url.com", "7.ly", "a.gg", "a.nf", "aa.cx", "abcurl.net",
                    "ad.vu", "adf.ly", "adjix.com", "afx.cc", "all.fuseurl.com", "alturl.com", "amzn.to", "ar.gy", "arst.ch", "atu.ca", "azc.cc", "b23.ru", "b2l.me", "bacn.me", "bcool.bz", "binged.it",
        Severity: Major
        Found in assets/js/jquery.oembed.js - About 3 hrs to fix

          Function h has 80 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              var h = function (b) {
                  var c, h, i, j, k, l = b.length;
                  var m = 1732584193;
                  var n = -271733879;
                  var o = -1732584194;
          Severity: Major
          Found in assets/js/jquery.oembed.js - About 3 hrs to fix

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

                xoops_smallworld.fn.oembed.insertCode = function (container, embedMethod, oembedData) {
                    if (oembedData === null)
                        return;
            
                    if (embedMethod === 'auto' && container.attr('href') !== null) {
            Severity: Minor
            Found in assets/js/jquery.oembed.js - About 1 hr to fix

              Function OEmbedProvider has 43 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  xoops_smallworld.fn.oembed.OEmbedProvider = function (name, type, urlschemesarray, apiendpoint, extraSettings) {
                      this.name = name;
                      this.type = type; // "photo", "video", "link", "rich", null
                      this.urlschemes = urlschemesarray;
                      this.apiendpoint = apiendpoint;
              Severity: Minor
              Found in assets/js/jquery.oembed.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                            if (embedProvider.embedtag.tag !== '') {
                                var flashvars = embedProvider.embedtag.flashvars || '';
                                var tag = embedProvider.embedtag.tag || 'embed';
                                var width = embedProvider.embedtag.width || 'auto';
                                var height = embedProvider.embedtag.height || 'auto';
                Severity: Critical
                Found in assets/js/jquery.oembed.js - About 1 hr to fix

                  Function success has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                                  success: function (data) {
                                      var result;
                  
                                      if (embedProvider.yql.xpath && embedProvider.yql.xpath == '//meta|//title|//link') {
                                          var meta = {};
                  Severity: Minor
                  Found in assets/js/jquery.oembed.js - About 1 hr to fix

                    Function datareturn has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                        datareturn: function (results) {
                                            if (!results['og:title'] && results['title'] && results['description'])
                                                results['og:title'] = results['title'];
                    
                                            if (!results['og:title'] && !results['title'])
                    Severity: Minor
                    Found in assets/js/jquery.oembed.js - About 1 hr to fix

                      Function g has 7 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          var g = function (a, b, d, e, f, g, h) {
                      Severity: Major
                      Found in assets/js/jquery.oembed.js - About 50 mins to fix

                        Function f has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            var f = function (a, b, d, e, f, g, h) {
                        Severity: Major
                        Found in assets/js/jquery.oembed.js - About 50 mins to fix

                          Function d has 7 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              var d = function (a, b, d, e, f, g, h) {
                          Severity: Major
                          Found in assets/js/jquery.oembed.js - About 50 mins to fix

                            Function e has 7 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                var e = function (a, b, d, e, f, g, h) {
                            Severity: Major
                            Found in assets/js/jquery.oembed.js - About 50 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                              if (embedProvider.apikey)
                                                  embedProvider.apiendpoint = embedProvider.apiendpoint.replace('_APIKEY_', settings.apikeys[embedProvider.name]);
                              Severity: Major
                              Found in assets/js/jquery.oembed.js - About 45 mins to fix

                                Function c has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    var c = function (c, d, e, f, g, h) {
                                Severity: Minor
                                Found in assets/js/jquery.oembed.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          if (property !== null && extraSettings[property] !== null) {
                                                              xoops_smallworld.fn.oembed.providers[i][property] = extraSettings[property];
                                                          }
                                  Severity: Major
                                  Found in assets/js/jquery.oembed.js - About 45 mins to fix

                                    Function md5 has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                    String.prototype.md5 = function () {
                                        var a = function (a, b) {
                                            var c = (a & 65535) + (b & 65535);
                                            var d = (a >> 16) + (b >> 16) + (c >> 16);
                                            return d << 16 | c & 65535
                                    Severity: Minor
                                    Found in assets/js/jquery.oembed.js - About 45 mins to fix

                                    Cognitive Complexity

                                    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                    A method's cognitive complexity is based on a few simple rules:

                                    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                    • Code is considered more complex for each "break in the linear flow of the code"
                                    • Code is considered more complex when "flow breaking structures are nested"

                                    Further reading

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                    if (data.query.results.link[i].hasOwnProperty("rel")) {
                                                                        if (data.query.results.link[i].rel == "apple-touch-icon") {
                                                                            if (data.query.results.link[i].href.charAt(0) == "/") {
                                                                                meta["og:image"] = url.match(/^(([a-z]+:)?(\/\/)?[^\/]+\/).*$/)[1] + data.query.results.link[i].href;
                                                                            } else {
                                    Severity: Major
                                    Found in assets/js/jquery.oembed.js - About 45 mins to fix

                                      Function updateOEmbedProvider has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          xoops_smallworld.fn.updateOEmbedProvider = function (name, type, urlschemesarray, apiendpoint, extraSettings) {
                                      Severity: Minor
                                      Found in assets/js/jquery.oembed.js - About 35 mins to fix

                                        Function OEmbedProvider has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            xoops_smallworld.fn.oembed.OEmbedProvider = function (name, type, urlschemesarray, apiendpoint, extraSettings) {
                                        Severity: Minor
                                        Found in assets/js/jquery.oembed.js - About 35 mins to fix

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

                                                          if (provider !== null) {
                                                              provider.params = getNormalizedParams(settings[provider.name]) || {};
                                                              provider.maxWidth = settings.maxWidth;
                                                              provider.maxHeight = settings.maxHeight;
                                                              embedCode(container, resourceURL, provider);
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 1 other location - About 3 hrs to fix
                                          assets/js/jquery.oembed.js on lines 81..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 98.

                                          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

                                                                          if (provider !== null) {
                                                                              provider.params = getNormalizedParams(settings[provider.name]) || {};
                                                                              provider.maxWidth = settings.maxWidth;
                                                                              provider.maxHeight = settings.maxHeight;
                                                                              embedCode(container, resourceURL, provider);
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 1 other location - About 3 hrs to fix
                                          assets/js/jquery.oembed.js on lines 106..113

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

                                          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

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("lanyard", "rich", ["lanyrd.com/\\d+/.+"], null,
                                                      {
                                                          yql: {
                                                              xpath: '(//div[@class="primary"])[1]',
                                                              from: 'htmlstring',
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 1 other location - About 2 hrs to fix
                                          assets/js/jquery.oembed.js on lines 946..957

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

                                          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

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("asciiartfarts", "rich", ["asciiartfarts.com/\\d+.html"], null,
                                                      {
                                                          yql: {
                                                              xpath: '//pre/font',
                                                              from: 'htmlstring',
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 1 other location - About 2 hrs to fix
                                          assets/js/jquery.oembed.js on lines 934..945

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

                                          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 (provider.maxHeight !== null && (typeof provider.params.maxheight === 'undefined' || provider.params.maxheight === null)) {
                                                      provider.params.maxheight = provider.maxHeight;
                                                  }
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 1 other location - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 156..158

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

                                          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 (provider.maxWidth !== null && (typeof provider.params.maxwidth === 'undefined' || provider.params.maxwidth === null)) {
                                                      provider.params.maxwidth = provider.maxWidth;
                                                  }
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 1 other location - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 160..162

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

                                          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

                                                              return '<div><img src="' + data.image + '" align="left" style="margin-right: 1em;" /><span class="oembedall-ljuser"><a href="http://' + data.username + '.livejournal.com/profile"><img src="http://www.livejournal.com/img/userinfo.gif" alt="[info]" width="17" height="17" /></a><a href="http://' + data.username + '.livejournal.com/">' + data.username + '</a></span><br />' + data.name + '</div>';
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 1 other location - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 794..794

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

                                          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

                                                              return '<div id="content"><h3><a class="nav-link" href="http://imdb.com/title/' + data.imdbID + '/">' + data.Title + '</a> (' + data.Year + ')</h3><p>Rating: ' + data.imdbRating + '<br/>Genre: ' + data.Genre + '<br/>Starring: ' + data.Actors + '</p></div>  <div id="view-photo-caption">' + data.Plot + '</div></div>';
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 1 other location - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 803..803

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

                                          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 7 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("ponga", "rich", ["ponga\\.com/.+"], "https://www.ponga.com/embedded?id=$1", {templateRegex: [/.*ponga\.com\/embedded\?id=(\w+).*/, /.*ponga\.com\/(\w+).*/], embedtag: {tag: 'iframe', width: 480, height: 360}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 6 other locations - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 624..628
                                          assets/js/jquery.oembed.js on lines 634..634
                                          assets/js/jquery.oembed.js on lines 635..635
                                          assets/js/jquery.oembed.js on lines 646..646
                                          assets/js/jquery.oembed.js on lines 716..716
                                          assets/js/jquery.oembed.js on lines 717..717

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

                                          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 7 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("giflike", "photo", ["giflike\\.com/.+"], "http://www.giflike.com/embed/$1", {templateRegex: [/.*giflike\.com\/embed\/(\w+).*/, /.*giflike\.com\/a\/(\w+).*/], embedtag: {tag: 'iframe', width: 480, height: 360}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 6 other locations - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 624..628
                                          assets/js/jquery.oembed.js on lines 634..634
                                          assets/js/jquery.oembed.js on lines 635..635
                                          assets/js/jquery.oembed.js on lines 646..646
                                          assets/js/jquery.oembed.js on lines 716..716
                                          assets/js/jquery.oembed.js on lines 984..984

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

                                          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 7 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("coub", "video", ["coub\\.com/.+"], "http://www.coub.com/embed/$1?muted=false&autostart=false&originalSize=false&hideTopBar=false&noSiteButtons=false&startWithHD=false", {
                                                      templateRegex: [/.*coub\.com\/embed\/(\w+)\?*.*/, /.*coub\.com\/view\/(\w+).*/],
                                                      embedtag: {tag: 'iframe', width: 480, height: 360},
                                                      nocache: 1
                                                  }),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 6 other locations - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 634..634
                                          assets/js/jquery.oembed.js on lines 635..635
                                          assets/js/jquery.oembed.js on lines 646..646
                                          assets/js/jquery.oembed.js on lines 716..716
                                          assets/js/jquery.oembed.js on lines 717..717
                                          assets/js/jquery.oembed.js on lines 984..984

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

                                          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 7 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("minilogs", "video", ["minilogs\\.com/.+"], "http://www.minilogs.com/e/$1", {templateRegex: [/.*minilogs\.com\/e\/(\w+).*/, /.*minilogs\.com\/(\w+).*/], embedtag: {tag: 'iframe', width: 480, height: 360}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 6 other locations - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 624..628
                                          assets/js/jquery.oembed.js on lines 635..635
                                          assets/js/jquery.oembed.js on lines 646..646
                                          assets/js/jquery.oembed.js on lines 716..716
                                          assets/js/jquery.oembed.js on lines 717..717
                                          assets/js/jquery.oembed.js on lines 984..984

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

                                          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 7 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("chirbit", "audio", ["chirb\\.it/.+"], "http://chirb.it/wp/$1", {templateRegex: [/.*chirb\.it\/wp\/(\w+).*/, /.*chirb\.it\/(\w+).*/], embedtag: {tag: 'iframe', width: 480, height: 360}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 6 other locations - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 624..628
                                          assets/js/jquery.oembed.js on lines 634..634
                                          assets/js/jquery.oembed.js on lines 635..635
                                          assets/js/jquery.oembed.js on lines 716..716
                                          assets/js/jquery.oembed.js on lines 717..717
                                          assets/js/jquery.oembed.js on lines 984..984

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

                                          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 7 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("fotokritik", "photo", ["fotokritik\\.com/.+"], "http://www.fotokritik.com/embed/$1", {templateRegex: [/.*fotokritik\.com\/embed\/(\w+).*/, /.*fotokritik\.com\/(\w+).*/], embedtag: {tag: 'iframe', width: 480, height: 360}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 6 other locations - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 624..628
                                          assets/js/jquery.oembed.js on lines 634..634
                                          assets/js/jquery.oembed.js on lines 635..635
                                          assets/js/jquery.oembed.js on lines 646..646
                                          assets/js/jquery.oembed.js on lines 717..717
                                          assets/js/jquery.oembed.js on lines 984..984

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

                                          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 7 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("viddy", "video", ["viddy\\.com/.+"], "http://www.viddy.com/embed/video/$1", {templateRegex: [/.*viddy\.com\/embed\/video\/(\.*)/, /.*viddy\.com\/video\/(\.*)/], embedtag: {tag: 'iframe', width: 480, height: 360}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 6 other locations - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 624..628
                                          assets/js/jquery.oembed.js on lines 634..634
                                          assets/js/jquery.oembed.js on lines 646..646
                                          assets/js/jquery.oembed.js on lines 716..716
                                          assets/js/jquery.oembed.js on lines 717..717
                                          assets/js/jquery.oembed.js on lines 984..984

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("360io", "rich", ["360\\.io/.+"], "http://360.io/$1", {templateRegex: /.*360\.io\/(\w+).*/, embedtag: {tag: 'iframe', width: 480, height: 360}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 583..584
                                          assets/js/jquery.oembed.js on lines 636..636
                                          assets/js/jquery.oembed.js on lines 637..641
                                          assets/js/jquery.oembed.js on lines 715..715
                                          assets/js/jquery.oembed.js on lines 968..968
                                          assets/js/jquery.oembed.js on lines 971..975
                                          assets/js/jquery.oembed.js on lines 976..976
                                          assets/js/jquery.oembed.js on lines 977..977
                                          assets/js/jquery.oembed.js on lines 978..978
                                          assets/js/jquery.oembed.js on lines 979..983

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("bubbli", "rich", ["on\\.bubb\\.li/.+"], "http://on.bubb.li/$1", {templateRegex: /.*on\.bubb\.li\/(\w+).*/, embedtag: {tag: 'iframe', width: 480, height: 360}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 583..584
                                          assets/js/jquery.oembed.js on lines 636..636
                                          assets/js/jquery.oembed.js on lines 637..641
                                          assets/js/jquery.oembed.js on lines 715..715
                                          assets/js/jquery.oembed.js on lines 967..967
                                          assets/js/jquery.oembed.js on lines 971..975
                                          assets/js/jquery.oembed.js on lines 976..976
                                          assets/js/jquery.oembed.js on lines 977..977
                                          assets/js/jquery.oembed.js on lines 978..978
                                          assets/js/jquery.oembed.js on lines 979..983

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("polar", "rich", ["polarb\\.com/.+"], "http://assets-polarb-com.a.ssl.fastly.net/api/v4/publishers/unknown/embedded_polls/iframe?poll_id=$1", {
                                                      templateRegex: /.*polarb\.com\/polls\/(\w+).*/,
                                                      embedtag: {tag: 'iframe', width: 480, height: 360},
                                                      nocache: 1
                                                  }),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 583..584
                                          assets/js/jquery.oembed.js on lines 636..636
                                          assets/js/jquery.oembed.js on lines 637..641
                                          assets/js/jquery.oembed.js on lines 715..715
                                          assets/js/jquery.oembed.js on lines 967..967
                                          assets/js/jquery.oembed.js on lines 968..968
                                          assets/js/jquery.oembed.js on lines 971..975
                                          assets/js/jquery.oembed.js on lines 976..976
                                          assets/js/jquery.oembed.js on lines 977..977
                                          assets/js/jquery.oembed.js on lines 978..978

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("snotr", "video", ["snotr\\.com/video/.+"], "http://www.snotr.com/embed/$1",
                                                      {templateRegex: /.*\/(\d+).*/, embedtag: {tag: 'iframe', width: 400, height: 330}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 636..636
                                          assets/js/jquery.oembed.js on lines 637..641
                                          assets/js/jquery.oembed.js on lines 715..715
                                          assets/js/jquery.oembed.js on lines 967..967
                                          assets/js/jquery.oembed.js on lines 968..968
                                          assets/js/jquery.oembed.js on lines 971..975
                                          assets/js/jquery.oembed.js on lines 976..976
                                          assets/js/jquery.oembed.js on lines 977..977
                                          assets/js/jquery.oembed.js on lines 978..978
                                          assets/js/jquery.oembed.js on lines 979..983

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("googlemaps", "rich", ["google\\.com\/maps\/place/.+"], "http://maps.google.com/maps?t=m&q=$1&output=embed", {templateRegex: /.*google\.com\/maps\/place\/([\w\+]*)\/.*/, embedtag: {tag: 'iframe', width: 480, height: 360}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 583..584
                                          assets/js/jquery.oembed.js on lines 636..636
                                          assets/js/jquery.oembed.js on lines 637..641
                                          assets/js/jquery.oembed.js on lines 715..715
                                          assets/js/jquery.oembed.js on lines 967..967
                                          assets/js/jquery.oembed.js on lines 968..968
                                          assets/js/jquery.oembed.js on lines 971..975
                                          assets/js/jquery.oembed.js on lines 977..977
                                          assets/js/jquery.oembed.js on lines 978..978
                                          assets/js/jquery.oembed.js on lines 979..983

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("mapjam", "rich", ["mapjam\\.com/.+"], "http://www.mapjam.com/$1", {templateRegex: /.*mapjam\.com\/(.*)/, embedtag: {tag: 'iframe', width: 480, height: 360}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 583..584
                                          assets/js/jquery.oembed.js on lines 636..636
                                          assets/js/jquery.oembed.js on lines 637..641
                                          assets/js/jquery.oembed.js on lines 715..715
                                          assets/js/jquery.oembed.js on lines 967..967
                                          assets/js/jquery.oembed.js on lines 968..968
                                          assets/js/jquery.oembed.js on lines 971..975
                                          assets/js/jquery.oembed.js on lines 976..976
                                          assets/js/jquery.oembed.js on lines 977..977
                                          assets/js/jquery.oembed.js on lines 979..983

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("achewood", "photo", ["achewood\\.com\\/index.php\\?date=.+"], "http://www.achewood.com/comic.php?date=$1", {templateRegex: /.*achewood\.com\/index.php\?date=(\w+).*/, embedtag: {tag: 'iframe', width: 480, height: 360}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 583..584
                                          assets/js/jquery.oembed.js on lines 636..636
                                          assets/js/jquery.oembed.js on lines 637..641
                                          assets/js/jquery.oembed.js on lines 967..967
                                          assets/js/jquery.oembed.js on lines 968..968
                                          assets/js/jquery.oembed.js on lines 971..975
                                          assets/js/jquery.oembed.js on lines 976..976
                                          assets/js/jquery.oembed.js on lines 977..977
                                          assets/js/jquery.oembed.js on lines 978..978
                                          assets/js/jquery.oembed.js on lines 979..983

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("zapiks", "video", ["zapiks\\.fr\/.+"], "http://www.zapiks.fr/index.php?action=playerIframe&media_id=$1&autoStart=fals", {
                                                      templateRegex: /.*zapiks\.fr\/index.php\?[\w\=\&]*media_id=(\w+).*/,
                                                      embedtag: {tag: 'iframe', width: 480, height: 360},
                                                      nocache: 1
                                                  }),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 583..584
                                          assets/js/jquery.oembed.js on lines 636..636
                                          assets/js/jquery.oembed.js on lines 715..715
                                          assets/js/jquery.oembed.js on lines 967..967
                                          assets/js/jquery.oembed.js on lines 968..968
                                          assets/js/jquery.oembed.js on lines 971..975
                                          assets/js/jquery.oembed.js on lines 976..976
                                          assets/js/jquery.oembed.js on lines 977..977
                                          assets/js/jquery.oembed.js on lines 978..978
                                          assets/js/jquery.oembed.js on lines 979..983

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("googleviews", "rich", ["(.*maps\\.google\\.com\\/maps\\?).+(output=svembed).+(cbp=(.*)).*"], "https://maps.google.com/maps?layer=c&panoid=$3&ie=UTF8&source=embed&output=svembed&cbp=$5", {
                                                      templateRegex: /(.*maps\.google\.com\/maps\?).+(panoid=(\w+)&).*(cbp=(.*)).*/,
                                                      embedtag: {tag: 'iframe', width: 480, height: 360},
                                                      nocache: 1
                                                  }),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 583..584
                                          assets/js/jquery.oembed.js on lines 636..636
                                          assets/js/jquery.oembed.js on lines 637..641
                                          assets/js/jquery.oembed.js on lines 715..715
                                          assets/js/jquery.oembed.js on lines 967..967
                                          assets/js/jquery.oembed.js on lines 968..968
                                          assets/js/jquery.oembed.js on lines 976..976
                                          assets/js/jquery.oembed.js on lines 977..977
                                          assets/js/jquery.oembed.js on lines 978..978
                                          assets/js/jquery.oembed.js on lines 979..983

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("imajize", "rich", ["embed\\.imajize\\.com/.+"], "http://embed.imajize.com/$1", {templateRegex: /.*embed\.imajize\.com\/(.*)/, embedtag: {tag: 'iframe', width: 480, height: 360}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 583..584
                                          assets/js/jquery.oembed.js on lines 636..636
                                          assets/js/jquery.oembed.js on lines 637..641
                                          assets/js/jquery.oembed.js on lines 715..715
                                          assets/js/jquery.oembed.js on lines 967..967
                                          assets/js/jquery.oembed.js on lines 968..968
                                          assets/js/jquery.oembed.js on lines 971..975
                                          assets/js/jquery.oembed.js on lines 976..976
                                          assets/js/jquery.oembed.js on lines 978..978
                                          assets/js/jquery.oembed.js on lines 979..983

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("worldstarhiphop", "video", ["worldstarhiphop\\.com\/embed/.+"], "http://www.worldstarhiphop.com/embed/$1", {templateRegex: /.*worldstarhiphop\.com\/embed\/(\w+).*/, embedtag: {tag: 'iframe', width: 480, height: 360}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 1 hr to fix
                                          assets/js/jquery.oembed.js on lines 583..584
                                          assets/js/jquery.oembed.js on lines 637..641
                                          assets/js/jquery.oembed.js on lines 715..715
                                          assets/js/jquery.oembed.js on lines 967..967
                                          assets/js/jquery.oembed.js on lines 968..968
                                          assets/js/jquery.oembed.js on lines 971..975
                                          assets/js/jquery.oembed.js on lines 976..976
                                          assets/js/jquery.oembed.js on lines 977..977
                                          assets/js/jquery.oembed.js on lines 978..978
                                          assets/js/jquery.oembed.js on lines 979..983

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

                                          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

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("discoverychannel", "video", ["snagplayer\\.video\\.dp\\.discovery\\.com/.+"], "http://snagplayer.video.dp.discovery.com/$1/snag-it-player.htm?auto=no", {
                                                      templateRegex: [/.*snagplayer\.video\.dp\.discovery\/(\w+).*/],
                                                      embedtag: {tag: 'iframe', width: 480, height: 360}
                                                  }),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 2 other locations - About 50 mins to fix
                                          assets/js/jquery.oembed.js on lines 618..618
                                          assets/js/jquery.oembed.js on lines 969..969

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

                                          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

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("boxofficebuz", "video", ["boxofficebuz\\.com\\/embed/.+"], "http://boxofficebuz.com/embed/$1/$2", {templateRegex: [/.*boxofficebuz\.com\/embed\/(\w+)\/([\w*\-*]+)/], embedtag: {tag: 'iframe', width: 480, height: 360}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 2 other locations - About 50 mins to fix
                                          assets/js/jquery.oembed.js on lines 629..632
                                          assets/js/jquery.oembed.js on lines 969..969

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

                                          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

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("cloudup", "rich", ["cloudup\\.com/.+"], "http://cloudup.com/$1?chromeless", {templateRegex: [/.*cloudup\.com\/(\w+).*/], embedtag: {tag: 'iframe', width: 480, height: 360}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 2 other locations - About 50 mins to fix
                                          assets/js/jquery.oembed.js on lines 618..618
                                          assets/js/jquery.oembed.js on lines 629..632

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("scivee", "video", ["scivee.tv/node/.+"], "http://www.scivee.tv/flash/embedCast.swf?", {
                                                      templateRegex: /.*tv\/node\/(.+)/, embedtag: {width: '480', height: '400', flashvars: "id=$1&type=3"}
                                                  }),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 556..558
                                          assets/js/jquery.oembed.js on lines 806..814
                                          assets/js/jquery.oembed.js on lines 816..817
                                          assets/js/jquery.oembed.js on lines 818..819
                                          assets/js/jquery.oembed.js on lines 820..821
                                          assets/js/jquery.oembed.js on lines 822..823
                                          assets/js/jquery.oembed.js on lines 824..825
                                          assets/js/jquery.oembed.js on lines 826..827
                                          assets/js/jquery.oembed.js on lines 830..831
                                          assets/js/jquery.oembed.js on lines 832..833

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("linkedin", "rich", ["linkedin.com/pub/.+"], "https://www.linkedin.com/cws/member/public_profile?public_profile_url=$1&format=inline&isFramed=true",
                                                      {templateRegex: /(.*)/, embedtag: {tag: 'iframe', width: '368px', height: 'auto'}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 556..558
                                          assets/js/jquery.oembed.js on lines 559..561
                                          assets/js/jquery.oembed.js on lines 806..814
                                          assets/js/jquery.oembed.js on lines 816..817
                                          assets/js/jquery.oembed.js on lines 818..819
                                          assets/js/jquery.oembed.js on lines 820..821
                                          assets/js/jquery.oembed.js on lines 822..823
                                          assets/js/jquery.oembed.js on lines 824..825
                                          assets/js/jquery.oembed.js on lines 830..831
                                          assets/js/jquery.oembed.js on lines 832..833

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("googlecalendar", "rich", ["www.google.com/calendar/embed?.+"], "$1",
                                                      {templateRegex: /(.*)/, embedtag: {tag: 'iframe', width: '800', height: '600'}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 556..558
                                          assets/js/jquery.oembed.js on lines 559..561
                                          assets/js/jquery.oembed.js on lines 806..814
                                          assets/js/jquery.oembed.js on lines 818..819
                                          assets/js/jquery.oembed.js on lines 820..821
                                          assets/js/jquery.oembed.js on lines 822..823
                                          assets/js/jquery.oembed.js on lines 824..825
                                          assets/js/jquery.oembed.js on lines 826..827
                                          assets/js/jquery.oembed.js on lines 830..831
                                          assets/js/jquery.oembed.js on lines 832..833

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("pastebin", "rich", ["pastebin\\.com/[\\S]{8}"], "http://pastebin.com/embed_iframe.php?i=$1",
                                                      {templateRegex: /.*\/(\S{8}).*/, embedtag: {tag: 'iframe', width: '100%', height: 'auto'}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 556..558
                                          assets/js/jquery.oembed.js on lines 559..561
                                          assets/js/jquery.oembed.js on lines 806..814
                                          assets/js/jquery.oembed.js on lines 816..817
                                          assets/js/jquery.oembed.js on lines 818..819
                                          assets/js/jquery.oembed.js on lines 820..821
                                          assets/js/jquery.oembed.js on lines 822..823
                                          assets/js/jquery.oembed.js on lines 824..825
                                          assets/js/jquery.oembed.js on lines 826..827
                                          assets/js/jquery.oembed.js on lines 832..833

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("jotform", "rich", ["form.jotform.co/form/.+"], "$1?",
                                                      {templateRegex: /(.*)/, embedtag: {tag: 'iframe', width: '100%', height: '507'}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 556..558
                                          assets/js/jquery.oembed.js on lines 559..561
                                          assets/js/jquery.oembed.js on lines 806..814
                                          assets/js/jquery.oembed.js on lines 816..817
                                          assets/js/jquery.oembed.js on lines 818..819
                                          assets/js/jquery.oembed.js on lines 820..821
                                          assets/js/jquery.oembed.js on lines 824..825
                                          assets/js/jquery.oembed.js on lines 826..827
                                          assets/js/jquery.oembed.js on lines 830..831
                                          assets/js/jquery.oembed.js on lines 832..833

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("circuitbee", "rich", ["circuitbee\\.com/circuit/view/.+"], "http://c.circuitbee.com/build/r/schematic-embed.html?id=$1",
                                                      {
                                                          templateRegex: /.*circuit\/view\/(\d+).*/,
                                                          embedtag: {
                                                              tag: 'iframe',
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 556..558
                                          assets/js/jquery.oembed.js on lines 559..561
                                          assets/js/jquery.oembed.js on lines 816..817
                                          assets/js/jquery.oembed.js on lines 818..819
                                          assets/js/jquery.oembed.js on lines 820..821
                                          assets/js/jquery.oembed.js on lines 822..823
                                          assets/js/jquery.oembed.js on lines 824..825
                                          assets/js/jquery.oembed.js on lines 826..827
                                          assets/js/jquery.oembed.js on lines 830..831
                                          assets/js/jquery.oembed.js on lines 832..833

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("jsfiddle", "rich", ["jsfiddle.net/[^/]+/?"], "http://jsfiddle.net/$1/embedded/result,js,resources,html,css/?",
                                                      {templateRegex: /.*net\/([^\/]+).*/, embedtag: {tag: 'iframe', width: '100%', height: '300'}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 556..558
                                          assets/js/jquery.oembed.js on lines 559..561
                                          assets/js/jquery.oembed.js on lines 806..814
                                          assets/js/jquery.oembed.js on lines 816..817
                                          assets/js/jquery.oembed.js on lines 820..821
                                          assets/js/jquery.oembed.js on lines 822..823
                                          assets/js/jquery.oembed.js on lines 824..825
                                          assets/js/jquery.oembed.js on lines 826..827
                                          assets/js/jquery.oembed.js on lines 830..831
                                          assets/js/jquery.oembed.js on lines 832..833

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("xtranormal", "video", ["xtranormal\\.com/watch/.+"], "http://www.xtranormal.com/xtraplayr/$1/$2", {
                                                      templateRegex: /.*com\/watch\/([\w\-]+)\/([\w\-]+).*/, embedtag: {tag: 'iframe', width: '320', height: '269'}
                                                  }),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 559..561
                                          assets/js/jquery.oembed.js on lines 806..814
                                          assets/js/jquery.oembed.js on lines 816..817
                                          assets/js/jquery.oembed.js on lines 818..819
                                          assets/js/jquery.oembed.js on lines 820..821
                                          assets/js/jquery.oembed.js on lines 822..823
                                          assets/js/jquery.oembed.js on lines 824..825
                                          assets/js/jquery.oembed.js on lines 826..827
                                          assets/js/jquery.oembed.js on lines 830..831
                                          assets/js/jquery.oembed.js on lines 832..833

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("jsbin", "rich", ["jsbin.com/.+"], "http://jsbin.com/$1/?",
                                                      {templateRegex: /.*com\/([^\/]+).*/, embedtag: {tag: 'iframe', width: '100%', height: '300'}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 556..558
                                          assets/js/jquery.oembed.js on lines 559..561
                                          assets/js/jquery.oembed.js on lines 806..814
                                          assets/js/jquery.oembed.js on lines 816..817
                                          assets/js/jquery.oembed.js on lines 818..819
                                          assets/js/jquery.oembed.js on lines 822..823
                                          assets/js/jquery.oembed.js on lines 824..825
                                          assets/js/jquery.oembed.js on lines 826..827
                                          assets/js/jquery.oembed.js on lines 830..831
                                          assets/js/jquery.oembed.js on lines 832..833

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

                                          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 4 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("pearltrees", "rich", ["pearltrees.com/.*"], "http://cdn.pearltrees.com/s/embed/getApp?",
                                                      {
                                                          templateRegex: /.*N-f=1_(\d+).*N-p=(\d+).*/,
                                                          embedtag: {
                                                              width: 460,
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 3 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 568..570
                                          assets/js/jquery.oembed.js on lines 748..756
                                          assets/js/jquery.oembed.js on lines 770..778

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("reelapp", "rich", ["reelapp\\.com/.+"], "http://www.reelapp.com/$1/embed",
                                                      {templateRegex: /.*com\/(\S{6}).*/, embedtag: {tag: 'iframe', width: '400', height: '338'}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 556..558
                                          assets/js/jquery.oembed.js on lines 559..561
                                          assets/js/jquery.oembed.js on lines 806..814
                                          assets/js/jquery.oembed.js on lines 816..817
                                          assets/js/jquery.oembed.js on lines 818..819
                                          assets/js/jquery.oembed.js on lines 820..821
                                          assets/js/jquery.oembed.js on lines 822..823
                                          assets/js/jquery.oembed.js on lines 826..827
                                          assets/js/jquery.oembed.js on lines 830..831
                                          assets/js/jquery.oembed.js on lines 832..833

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

                                          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 4 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("funnyordie", "video", ["funnyordie\\.com/videos/.+"], "http://player.ordienetworks.com/flash/fodplayer.swf?", {
                                                      templateRegex: /.*videos\/([^\/]+)\/([^\/]+)?/, embedtag: {width: 512, height: 328, flashvars: "key=$1"}
                                                  }),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 3 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 738..746
                                          assets/js/jquery.oembed.js on lines 748..756
                                          assets/js/jquery.oembed.js on lines 770..778

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

                                          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 4 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("gigpans", "rich", ["gigapan\\.org/[-.\\w@]+/\\d+"], "http://gigapan.org/gigapans/$1/options/nosnapshots/iframe/flash.html",
                                                      {templateRegex: /.*\/(\d+)\/?.*/, embedtag: {tag: 'iframe', width: '100%', height: 400}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 3 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 914..915
                                          assets/js/jquery.oembed.js on lines 918..919
                                          assets/js/jquery.oembed.js on lines 920..921

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

                                          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 4 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("kickstarter", "rich", ["kickstarter\\.com/projects/.+"], "$1/widget/card.html",
                                                      {templateRegex: /([^\?]+).*/, embedtag: {tag: 'iframe', width: '220', height: 380}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 3 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 914..915
                                          assets/js/jquery.oembed.js on lines 916..917
                                          assets/js/jquery.oembed.js on lines 918..919

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

                                          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

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("youku", "video", ["v.youku.com/v_show/id_.+"], "http://player.youku.com/player.php/sid/$1/v.swf",
                                                      {templateRegex: /.*id_(.+)\.html.*/, embedtag: {width: 480, height: 400}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 2 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 587..588
                                          assets/js/jquery.oembed.js on lines 828..829

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

                                          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 11 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("mixlr", "rich", ["mixlr.com/.+"], "http://mixlr.com/embed/$1?autoplay=ae",
                                                      {templateRegex: /.*com\/([^\/]+).*/, embedtag: {tag: 'iframe', width: '100%', height: 'auto'}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 10 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 556..558
                                          assets/js/jquery.oembed.js on lines 559..561
                                          assets/js/jquery.oembed.js on lines 806..814
                                          assets/js/jquery.oembed.js on lines 816..817
                                          assets/js/jquery.oembed.js on lines 818..819
                                          assets/js/jquery.oembed.js on lines 820..821
                                          assets/js/jquery.oembed.js on lines 822..823
                                          assets/js/jquery.oembed.js on lines 824..825
                                          assets/js/jquery.oembed.js on lines 826..827
                                          assets/js/jquery.oembed.js on lines 830..831

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

                                          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 4 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("screenr", "rich", ["screenr\.com"], "http://www.screenr.com/embed/$1",
                                                      {templateRegex: /.*\/([^\/]+).*/, embedtag: {tag: 'iframe', width: '650', height: 396}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 3 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 916..917
                                          assets/js/jquery.oembed.js on lines 918..919
                                          assets/js/jquery.oembed.js on lines 920..921

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

                                          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 4 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("prezi", "rich", ["prezi.com/.*"], "//prezi.com/bin/preziloader.swf?",
                                                      {
                                                          templateRegex: /.*com\/([^\/]+)\/.*/,
                                                          embedtag: {
                                                              width: 550,
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 3 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 568..570
                                          assets/js/jquery.oembed.js on lines 738..746
                                          assets/js/jquery.oembed.js on lines 770..778

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

                                          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 4 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("ebay", "rich", ["ebay\\.*"], "http://togo.ebay.com/togo/togo.swf?2008013100",
                                                      {
                                                          templateRegex: /.*\/([^\/]+)\/(\d{10,13}).*/,
                                                          embedtag: {
                                                              width: 355,
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 3 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 568..570
                                          assets/js/jquery.oembed.js on lines 738..746
                                          assets/js/jquery.oembed.js on lines 748..756

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

                                          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 4 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("scribd", "rich", ["scribd\\.com/.+"], "http://www.scribd.com/embeds/$1/content?start_page=1&view_mode=list",
                                                      {templateRegex: /.*doc\/([^\/]+).*/, embedtag: {tag: 'iframe', width: '100%', height: 600}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 3 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 914..915
                                          assets/js/jquery.oembed.js on lines 916..917
                                          assets/js/jquery.oembed.js on lines 920..921

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

                                          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

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("timetoast", "rich", ["timetoast.com/timelines/[0-9]+"], "http://www.timetoast.com/flash/TimelineViewer.swf?passedTimelines=$1",
                                                      {templateRegex: /.*timelines\/([0-9]*)/, embedtag: {width: 550, height: 400}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 2 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 585..586
                                          assets/js/jquery.oembed.js on lines 587..588

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

                                          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

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("tudou", "video", ["tudou.com/programs/view/.+\/"], "http://www.tudou.com/v/$1/v.swf",
                                                      {templateRegex: /.*view\/(.+)\//, embedtag: {width: 480, height: 400}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 2 other locations - About 45 mins to fix
                                          assets/js/jquery.oembed.js on lines 585..586
                                          assets/js/jquery.oembed.js on lines 828..829

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

                                          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

                                                          if (!!settings.fallback === false) {
                                                              provider = provider.name.toLowerCase() === 'opengraph' ? null : provider;
                                                          }
                                          Severity: Minor
                                          Found in assets/js/jquery.oembed.js and 1 other location - About 40 mins to fix
                                          assets/js/jquery.oembed.js on lines 77..79

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

                                          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

                                                                          if (!!settings.fallback === false) {
                                                                              provider = provider.name.toLowerCase() === 'opengraph' ? null : provider;
                                                                          }
                                          Severity: Minor
                                          Found in assets/js/jquery.oembed.js and 1 other location - About 40 mins to fix
                                          assets/js/jquery.oembed.js on lines 103..105

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

                                          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 6 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("metacafe", "video", ["metacafe\\.com/watch/.+"], "http://www.metacafe.com/fplayer/$1/$2.swf",
                                                      {templateRegex: /.*watch\/(\d+)\/(\w+)\/.*/, embedtag: {width: 400, height: 345}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 5 other locations - About 30 mins to fix
                                          assets/js/jquery.oembed.js on lines 571..572
                                          assets/js/jquery.oembed.js on lines 575..576
                                          assets/js/jquery.oembed.js on lines 579..580
                                          assets/js/jquery.oembed.js on lines 589..590
                                          assets/js/jquery.oembed.js on lines 729..736

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

                                          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 6 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("popplet", "rich", ["popplet.com/app/.*"], "http://popplet.com/app/Popplet_Alpha.swf?page_id=$1&em=1",
                                                      {
                                                          templateRegex: /.*#\/([^\/]+).*/,
                                                          embedtag: {
                                                              width: 460,
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 5 other locations - About 30 mins to fix
                                          assets/js/jquery.oembed.js on lines 571..572
                                          assets/js/jquery.oembed.js on lines 573..574
                                          assets/js/jquery.oembed.js on lines 575..576
                                          assets/js/jquery.oembed.js on lines 579..580
                                          assets/js/jquery.oembed.js on lines 589..590

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

                                          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 6 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("embedr", "video", ["embedr\\.com/playlist/.+"], "http://embedr.com/swf/slider/$1/425/520/default/false/std?",
                                                      {templateRegex: /.*playlist\/([^\/]+).*/, embedtag: {width: 425, height: 520}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 5 other locations - About 30 mins to fix
                                          assets/js/jquery.oembed.js on lines 571..572
                                          assets/js/jquery.oembed.js on lines 573..574
                                          assets/js/jquery.oembed.js on lines 575..576
                                          assets/js/jquery.oembed.js on lines 579..580
                                          assets/js/jquery.oembed.js on lines 729..736

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

                                          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 6 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("colledgehumour", "video", ["collegehumor\\.com/video/.+"], "http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=$1&use_node_id=true&fullscreen=1",
                                                      {templateRegex: /.*video\/([^\/]+).*/, embedtag: {width: 600, height: 338}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 5 other locations - About 30 mins to fix
                                          assets/js/jquery.oembed.js on lines 573..574
                                          assets/js/jquery.oembed.js on lines 575..576
                                          assets/js/jquery.oembed.js on lines 579..580
                                          assets/js/jquery.oembed.js on lines 589..590
                                          assets/js/jquery.oembed.js on lines 729..736

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

                                          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 6 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("aniboom", "video", ["aniboom\\.com/animation-video/.+"], "http://api.aniboom.com/e/$1",
                                                      {templateRegex: /.*animation-video\/(\d+).*/, embedtag: {width: 594, height: 334}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 5 other locations - About 30 mins to fix
                                          assets/js/jquery.oembed.js on lines 571..572
                                          assets/js/jquery.oembed.js on lines 573..574
                                          assets/js/jquery.oembed.js on lines 575..576
                                          assets/js/jquery.oembed.js on lines 589..590
                                          assets/js/jquery.oembed.js on lines 729..736

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

                                          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 4 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("img.ly", "photo", ["img\\.ly/.+"], "//img.ly/show/thumb/$1",
                                                      {templateRegex: /.*ly\/([^\/]+).*/, embedtag: {tag: 'img'}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 3 other locations - About 30 mins to fix
                                          assets/js/jquery.oembed.js on lines 695..696
                                          assets/js/jquery.oembed.js on lines 704..705
                                          assets/js/jquery.oembed.js on lines 706..707

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

                                          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 6 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("bambuser", "video", ["bambuser\\.com\/channel\/.*\/broadcast\/.*"], "http://static.bambuser.com/r/player.swf?vid=$1",
                                                      {templateRegex: /.*bambuser\.com\/channel\/.*\/broadcast\/(\w+).*/, embedtag: {width: 512, height: 339}}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 5 other locations - About 30 mins to fix
                                          assets/js/jquery.oembed.js on lines 571..572
                                          assets/js/jquery.oembed.js on lines 573..574
                                          assets/js/jquery.oembed.js on lines 579..580
                                          assets/js/jquery.oembed.js on lines 589..590
                                          assets/js/jquery.oembed.js on lines 729..736

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

                                          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 4 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("twitgoo.com", "photo", ["twitgoo\\.com/.+"], "http://twitgoo.com/show/thumb/$1",
                                                      {templateRegex: /.*com\/([^\/]+).*/, embedtag: {tag: 'img'}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 3 other locations - About 30 mins to fix
                                          assets/js/jquery.oembed.js on lines 695..696
                                          assets/js/jquery.oembed.js on lines 702..703
                                          assets/js/jquery.oembed.js on lines 706..707

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

                                          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 4 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("imgur.com", "photo", ["imgur\\.com/gallery/.+"], "http://imgur.com/$1l.jpg",
                                                      {templateRegex: /.*gallery\/([^\/]+).*/, embedtag: {tag: 'img'}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 3 other locations - About 30 mins to fix
                                          assets/js/jquery.oembed.js on lines 695..696
                                          assets/js/jquery.oembed.js on lines 702..703
                                          assets/js/jquery.oembed.js on lines 704..705

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

                                          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 4 locations. Consider refactoring.
                                          Open

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("chart.ly", "photo", ["chart\\.ly/[a-z0-9]{6,8}"], "http://chart.ly/uploads/large_$1.png",
                                                      {templateRegex: /.*ly\/([^\/]+).*/, embedtag: {tag: 'img'}, nocache: 1}),
                                          Severity: Major
                                          Found in assets/js/jquery.oembed.js and 3 other locations - About 30 mins to fix
                                          assets/js/jquery.oembed.js on lines 702..703
                                          assets/js/jquery.oembed.js on lines 704..705
                                          assets/js/jquery.oembed.js on lines 706..707

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

                                          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

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("veoh", "video", ["veoh.com/watch/.+"], "http://www.veoh.com/swf/webplayer/WebPlayer.swf?version=AFrontend.5.7.0.1337&permalinkId=$1&player=videodetailsembedded&videoAutoPlay=0&id=anonymous", {
                                                      templateRegex: /.*watch\/([^\?]+).*/, embedtag: {width: '410', height: '341'}
                                                  }),
                                          Severity: Minor
                                          Found in assets/js/jquery.oembed.js and 1 other location - About 30 mins to fix
                                          assets/js/jquery.oembed.js on lines 565..567

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

                                          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

                                                  new xoops_smallworld.fn.oembed.OEmbedProvider("gametrailers", "video", ["gametrailers\\.com/video/.+"], "http://media.mtvnservices.com/mgid:moses:video:gametrailers.com:$2", {
                                                      templateRegex: /.*com\/video\/([\w\-]+)\/([\w\-]+).*/, embedtag: {width: '512', height: '288'}
                                                  }),
                                          Severity: Minor
                                          Found in assets/js/jquery.oembed.js and 1 other location - About 30 mins to fix
                                          assets/js/jquery.oembed.js on lines 562..564

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

                                          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

                                          There are no issues that match your filters.

                                          Category
                                          Status