webcol/Calima

View on GitHub
public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js

Summary

Maintainability
F
4 mos
Test Coverage

Function pdfjsWrapper has 8220 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  (function pdfjsWrapper() {



(function (root, factory) {
Severity: Major
Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 mo to fix

    File pdf.js has 8267 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /* Copyright 2012 Mozilla Foundation
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
    Severity: Major
    Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 3 wks to fix

      Function CanvasGraphicsClosure has 1512 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var CanvasGraphics = (function CanvasGraphicsClosure() {
        // Defines the time the executeOperatorList is going to be executing
        // before it stops and shedules a continue of execution.
        var EXECUTION_TIME = 15;
        // Defines the number of steps before checking the execution time
      Severity: Major
      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 wk to fix

        Function SVGGraphicsClosure has 803 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var SVGGraphics = (function SVGGraphicsClosure() {
          function createScratchSVG(width, height) {
            var NS = 'http://www.w3.org/2000/svg';
            var svg = document.createElementNS(NS, 'svg:svg');
            svg.setAttributeNS(null, 'version', '1.1');
        Severity: Major
        Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 4 days to fix

          Function checkURLConstructor has 540 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          (function checkURLConstructor(scope) {
            /* jshint ignore:start */
          
            // feature detect for URL constructor
            var hasWorkingUrl = false;
          Severity: Major
          Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 days to fix

            Function WorkerTransportClosure has 388 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            var WorkerTransport = (function WorkerTransportClosure() {
              function WorkerTransport(messageHandler, loadingTask, pdfDataRangeTransport) {
                this.messageHandler = messageHandler;
                this.loadingTask = loadingTask;
                this.pdfDataRangeTransport = pdfDataRangeTransport;
            Severity: Major
            Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 day to fix

              Function WebGLUtilsClosure has 355 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              var WebGLUtils = (function WebGLUtilsClosure() {
                function loadShader(gl, code, shaderType) {
                  var shader = gl.createShader(shaderType);
                  gl.shaderSource(shader, code);
                  gl.compileShader(shader);
              Severity: Major
              Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 day to fix

                Function parse has 341 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function parse(input, stateOverride, base) {
                    function err(message) {
                      errors.push(message)
                    }
                
                
                Severity: Major
                Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 day to fix

                  Function WorkerTransport_setupMessageHandler has 256 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                        function WorkerTransport_setupMessageHandler() {
                        var messageHandler = this.messageHandler;
                  
                        function updatePassword(password) {
                          messageHandler.send('UpdatePassword', password);
                  Severity: Major
                  Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 day to fix

                    Function PromiseClosure has 248 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    (function PromiseClosure() {
                      if (globalScope.Promise) {
                        // Promises existing in the DOM/Worker, checking presence of all/resolve
                        if (typeof globalScope.Promise.all !== 'function') {
                          globalScope.Promise.all = function (iterable) {
                    Severity: Major
                    Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 day to fix

                      Function PDFPageProxyClosure has 226 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      var PDFPageProxy = (function PDFPageProxyClosure() {
                        function PDFPageProxy(pageIndex, pageInfo, transport) {
                          this.pageIndex = pageIndex;
                          this.pageInfo = pageInfo;
                          this.transport = transport;
                      Severity: Major
                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 day to fix

                        Function PDFWorkerClosure has 189 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        var PDFWorker = (function PDFWorkerClosure() {
                          var nextFakeWorkerId = 0;
                        
                          function getWorkerSrc() {
                            if (typeof workerSrc !== 'undefined') {
                        Severity: Major
                        Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 7 hrs to fix

                          Function UtilClosure has 173 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          var Util = (function UtilClosure() {
                            function Util() {}
                          
                            var rgbBuf = ['rgb(', 0, ',', 0, ',', 0, ')'];
                          
                          
                          Severity: Major
                          Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 6 hrs to fix

                            Function convertImgDataToPngClosure has 161 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            var convertImgDataToPng = (function convertImgDataToPngClosure() {
                              var PNG_HEADER =
                                new Uint8Array([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]);
                            
                              var CHUNK_WRAPPER_SIZE = 12;
                            Severity: Major
                            Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 6 hrs to fix

                              Function createMeshCanvasClosure has 153 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              var createMeshCanvas = (function createMeshCanvasClosure() {
                                function drawTriangle(data, context, p1, p2, p3, c1, c2, c3) {
                                  // Very basic Gouraud-shaded triangle rasterization algorithm.
                                  var coords = context.coords, colors = context.colors;
                                  var bytes = data.data, rowSize = data.width * 4;
                              Severity: Major
                              Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 6 hrs to fix

                                Function renderTextLayerClosure has 151 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                var renderTextLayer = (function renderTextLayerClosure() {
                                  var MAX_TEXT_DIVS_TO_RENDER = 100000;
                                
                                  var NonWhitespaceRegexp = /\S/;
                                
                                
                                Severity: Major
                                Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 6 hrs to fix

                                  Function SVGGraphics_executeOpTree has 139 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      executeOpTree: function SVGGraphics_executeOpTree(opTree) {
                                        var opTreeLen = opTree.length;
                                        for(var x = 0; x < opTreeLen; x++) {
                                          var fn = opTree[x].fn;
                                          var fnId = opTree[x].fnId;
                                  Severity: Major
                                  Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 5 hrs to fix

                                    Function compileType3Glyph has 127 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function compileType3Glyph(imgData) {
                                      var POINT_TO_PROCESS_LIMIT = 1000;
                                    
                                      var width = imgData.width, height = imgData.height;
                                      var i, j, j0, width1 = width + 1;
                                    Severity: Major
                                    Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 5 hrs to fix

                                      Function CanvasGraphics_showText has 116 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          showText: function CanvasGraphics_showText(glyphs) {
                                            var current = this.current;
                                            var font = current.font;
                                            if (font.isType3Font) {
                                              return this.showType3Text(glyphs);
                                      Severity: Major
                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 4 hrs to fix

                                        Function drawFigures has 107 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          function drawFigures(width, height, backgroundColor, figures, context) {
                                            if (!figuresCache) {
                                              initFiguresGL();
                                            }
                                            var cache = figuresCache, canvas = cache.canvas, gl = cache.gl;
                                        Severity: Major
                                        Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 4 hrs to fix

                                          Function TilingPatternClosure has 106 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                          var TilingPattern = (function TilingPatternClosure() {
                                            var PaintType = {
                                              COLORED: 1,
                                              UNCOLORED: 2
                                            };
                                          Severity: Major
                                          Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 4 hrs to fix

                                            Function encode has 100 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                              function encode(imgData, kind, forceDataSchema) {
                                                var width = imgData.width;
                                                var height = imgData.height;
                                                var bitDepth, colorType, lineSize;
                                                var bytes = imgData.data;
                                            Severity: Major
                                            Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 4 hrs to fix

                                              Function AnnotationElementClosure has 100 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                              var AnnotationElement = (function AnnotationElementClosure() {
                                                function AnnotationElement(parameters, isRenderable) {
                                                  this.isRenderable = isRenderable || false;
                                                  this.data = parameters.data;
                                                  this.layer = parameters.layer;
                                              Severity: Major
                                              Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 4 hrs to fix

                                                Function InternalRenderTaskClosure has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                var InternalRenderTask = (function InternalRenderTaskClosure() {
                                                
                                                  function InternalRenderTask(callback, params, objs, commonObjs, operatorList,
                                                                              pageNumber) {
                                                    this.callback = callback;
                                                Severity: Major
                                                Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 3 hrs to fix

                                                  Function putBinaryImageData has 92 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                    function putBinaryImageData(ctx, imgData) {
                                                      if (typeof ImageData !== 'undefined' && imgData instanceof ImageData) {
                                                        ctx.putImageData(imgData, 0, 0);
                                                        return;
                                                      }
                                                  Severity: Major
                                                  Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 3 hrs to fix

                                                    Function addContextCurrentTransform has 89 lines of code (exceeds 25 allowed). Consider refactoring.
                                                    Open

                                                    function addContextCurrentTransform(ctx) {
                                                      // If the context doesn't expose a `mozCurrentTransform`, add a JS based one.
                                                      if (!ctx.mozCurrentTransform) {
                                                        ctx._originalSave = ctx.save;
                                                        ctx._originalRestore = ctx.restore;
                                                    Severity: Major
                                                    Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 3 hrs to fix

                                                      Function getDocument has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                      function getDocument(src, pdfDataRangeTransport,
                                                                           passwordCallback, progressCallback) {
                                                        var task = new PDFDocumentLoadingTask();
                                                      
                                                        // Support of the obsolete arguments (for compatibility with API v1.0)
                                                      Severity: Major
                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 3 hrs to fix

                                                        Function PDFWorker_initialize has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                                                        Open

                                                            _initialize: function PDFWorker_initialize() {
                                                              // If worker support isn't disabled explicit and the browser has worker
                                                              // support, create a new web worker and test if it/the browser fulfills
                                                              // all requirements to run parts of pdf.js in a web worker.
                                                              // Right now, the requirement is, that an Uint8Array is still an
                                                        Severity: Major
                                                        Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 3 hrs to fix

                                                          Function PopupElementClosure has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                          var PopupElement = (function PopupElementClosure() {
                                                            var BACKGROUND_ENLIGHT = 0.7;
                                                          
                                                            function PopupElement(parameters) {
                                                              this.container = parameters.container;
                                                          Severity: Major
                                                          Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 3 hrs to fix

                                                            Function SVGGraphics_constructPath has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                                            Open

                                                                constructPath: function SVGGraphics_constructPath(ops, args) {
                                                                  var current = this.current;
                                                                  var x = current.x, y = current.y;
                                                                  current.path = document.createElementNS(NS, 'svg:path');
                                                                  var d = [];
                                                            Severity: Major
                                                            Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                              Function PageViewportClosure has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                                              Open

                                                              var PageViewport = (function PageViewportClosure() {
                                                                /**
                                                                 * @constructor
                                                                 * @private
                                                                 * @param viewBox {Array} xMin, yMin, xMax and yMax coordinates.
                                                              Severity: Major
                                                              Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                Function fontLoaderPrepareFontLoadEvent has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                  prepareFontLoadEvent: function fontLoaderPrepareFontLoadEvent(rules,
                                                                                                                                fonts,
                                                                                                                                request) {
                                                                      /** Hack begin */
                                                                      // There's currently no event when a font has finished downloading so the
                                                                Severity: Major
                                                                Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                  Function FontFaceObjectClosure has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                  Open

                                                                  var FontFaceObject = (function FontFaceObjectClosure() {
                                                                    function FontFaceObject(translatedData, options) {
                                                                      this.compiledGlyphs = Object.create(null);
                                                                      // importing translated data
                                                                      for (var i in translatedData) {
                                                                  Severity: Major
                                                                  Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                    Function CanvasGraphics_beginGroup has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                    Open

                                                                        beginGroup: function CanvasGraphics_beginGroup(group) {
                                                                          this.save();
                                                                          var currentCtx = this.ctx;
                                                                          // TODO non-isolated groups - according to Rik at adobe non-isolated
                                                                          // group results aren't usually that different and they even have tools
                                                                    Severity: Major
                                                                    Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                      Function PDFPageProxy_render has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                      Open

                                                                          render: function PDFPageProxy_render(params) {
                                                                            var stats = this.stats;
                                                                            stats.time('Overall');
                                                                      
                                                                            // If there was a pending destroy cancel it so no cleanup happens during
                                                                      Severity: Major
                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                        Function CanvasGraphics_setGState has 70 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                        Open

                                                                            setGState: function CanvasGraphics_setGState(states) {
                                                                              for (var i = 0, ii = states.length; i < ii; i++) {
                                                                                var state = states[i];
                                                                                var key = state[0];
                                                                                var value = state[1];
                                                                        Severity: Major
                                                                        Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                          Function CanvasGraphics_constructPath has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                          Open

                                                                              constructPath: function CanvasGraphics_constructPath(ops, args) {
                                                                                var ctx = this.ctx;
                                                                                var current = this.current;
                                                                                var x = current.x, y = current.y;
                                                                                for (var i = 0, j = 0, ii = ops.length; i < ii; i++) {
                                                                          Severity: Major
                                                                          Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                            Function AnnotationElement_createContainer has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                                _createContainer: function AnnotationElement_createContainer() {
                                                                                  var data = this.data, page = this.page, viewport = this.viewport;
                                                                                  var container = document.createElement('section');
                                                                                  var width = data.rect[2] - data.rect[0];
                                                                                  var height = data.rect[3] - data.rect[1];
                                                                            Severity: Major
                                                                            Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                              Function MessageHandler has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                              Open

                                                                              function MessageHandler(sourceName, targetName, comObj) {
                                                                                this.sourceName = sourceName;
                                                                                this.targetName = targetName;
                                                                                this.comObj = comObj;
                                                                                this.callbackIndex = 1;
                                                                              Severity: Major
                                                                              Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                                Function drawTriangle has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                Open

                                                                                  function drawTriangle(data, context, p1, p2, p3, c1, c2, c3) {
                                                                                    // Very basic Gouraud-shaded triangle rasterization algorithm.
                                                                                    var coords = context.coords, colors = context.colors;
                                                                                    var bytes = data.data, rowSize = data.width * 4;
                                                                                    var tmp;
                                                                                Severity: Major
                                                                                Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                                  Function SVGGraphics_showText has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                  Open

                                                                                      showText: function SVGGraphics_showText(glyphs) {
                                                                                        var current = this.current;
                                                                                        var font = current.font;
                                                                                        var fontSize = current.fontSize;
                                                                                  
                                                                                  
                                                                                  Severity: Major
                                                                                  Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                                    Function PDFObjectsClosure has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                    Open

                                                                                    var PDFObjects = (function PDFObjectsClosure() {
                                                                                      function PDFObjects() {
                                                                                        this.objs = Object.create(null);
                                                                                      }
                                                                                    
                                                                                    
                                                                                    Severity: Major
                                                                                    Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                                      Function CanvasGraphics_paintInlineImageXObject has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                      Open

                                                                                            function CanvasGraphics_paintInlineImageXObject(imgData) {
                                                                                            var width = imgData.width;
                                                                                            var height = imgData.height;
                                                                                            var ctx = this.ctx;
                                                                                      
                                                                                      
                                                                                      Severity: Major
                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                                        Function createMeshCanvas has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                        Open

                                                                                          function createMeshCanvas(bounds, combinesScale, coords, colors, figures,
                                                                                                                    backgroundColor, cachedCanvases) {
                                                                                            // we will increase scale on some weird factor to let antialiasing take
                                                                                            // care of "rough" edges
                                                                                            var EXPECTED_SCALE = 1.1;
                                                                                        Severity: Major
                                                                                        Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                                          Function PDFDocumentProxyClosure has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                          Open

                                                                                          var PDFDocumentProxy = (function PDFDocumentProxyClosure() {
                                                                                            function PDFDocumentProxy(pdfInfo, transport, loadingTask) {
                                                                                              this.pdfInfo = pdfInfo;
                                                                                              this.transport = transport;
                                                                                              this.loadingTask = loadingTask;
                                                                                          Severity: Major
                                                                                          Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                                            Function pdfDataRangeTransportClosure has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                            Open

                                                                                            var PDFDataRangeTransport = (function pdfDataRangeTransportClosure() {
                                                                                              function PDFDataRangeTransport(length, initialData) {
                                                                                                this.length = length;
                                                                                                this.initialData = initialData;
                                                                                            
                                                                                            
                                                                                            Severity: Major
                                                                                            Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                                              Function getDefaultSetting has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                              Open

                                                                                              function getDefaultSetting(id) {
                                                                                                // The list of the settings and their default is maintained for backward
                                                                                                // compatibility and shall not be extended or modified. See also global.js.
                                                                                                var globalSettings = sharedUtil.globalScope.PDFJS;
                                                                                                switch (id) {
                                                                                              Severity: Major
                                                                                              Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                                                Function StatTimerClosure has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                Open

                                                                                                var StatTimer = (function StatTimerClosure() {
                                                                                                  function rpad(str, pad, length) {
                                                                                                    while (str.length < length) {
                                                                                                      str += pad;
                                                                                                    }
                                                                                                Severity: Major
                                                                                                Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                                                  Function PageViewport has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                  Open

                                                                                                    function PageViewport(viewBox, scale, rotation, offsetX, offsetY, dontFlip) {
                                                                                                      this.viewBox = viewBox;
                                                                                                      this.scale = scale;
                                                                                                      this.rotation = rotation;
                                                                                                      this.offsetX = offsetX;
                                                                                                  Severity: Major
                                                                                                  Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                                                    Function messageHandlerComObjOnMessage has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                    Open

                                                                                                      this._onComObjOnMessage = function messageHandlerComObjOnMessage(event) {
                                                                                                        var data = event.data;
                                                                                                        if (data.targetName !== this.sourceName) {
                                                                                                          return;
                                                                                                        }
                                                                                                    Severity: Minor
                                                                                                    Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                                                      Function CanvasGraphics_showType3Text has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                      Open

                                                                                                          showType3Text: function CanvasGraphics_showType3Text(glyphs) {
                                                                                                            // Type3 fonts - each glyph is a "mini-PDF"
                                                                                                            var ctx = this.ctx;
                                                                                                            var current = this.current;
                                                                                                            var font = current.font;
                                                                                                      Severity: Minor
                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 2 hrs to fix

                                                                                                        Function CanvasGraphics_paintChar has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                        Open

                                                                                                            paintChar: function CanvasGraphics_paintChar(character, x, y) {
                                                                                                              var ctx = this.ctx;
                                                                                                              var current = this.current;
                                                                                                              var font = current.font;
                                                                                                              var textRenderingMode = current.textRenderingMode;
                                                                                                        Severity: Minor
                                                                                                        Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                          Function render has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                          Open

                                                                                                            function render(task) {
                                                                                                              if (task._canceled) {
                                                                                                                return;
                                                                                                              }
                                                                                                              var textLayerFrag = task._container;
                                                                                                          Severity: Minor
                                                                                                          Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                            Function LinkAnnotationElementClosure has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                            Open

                                                                                                            var LinkAnnotationElement = (function LinkAnnotationElementClosure() {
                                                                                                              function LinkAnnotationElement(parameters) {
                                                                                                                AnnotationElement.call(this, parameters, true);
                                                                                                              }
                                                                                                            
                                                                                                            
                                                                                                            Severity: Minor
                                                                                                            Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                              Function CanvasGraphics_executeOperatorList has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                              Open

                                                                                                                  executeOperatorList: function CanvasGraphics_executeOperatorList(
                                                                                                                                                  operatorList,
                                                                                                                                                  executionStartIdx, continueCallback,
                                                                                                                                                  stepper) {
                                                                                                                    var argsArray = operatorList.argsArray;
                                                                                                              Severity: Minor
                                                                                                              Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                Function appendText has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                Open

                                                                                                                  function appendText(textDivs, viewport, geom, styles) {
                                                                                                                    var style = styles[geom.fontName];
                                                                                                                    var textDiv = document.createElement('div');
                                                                                                                    textDivs.push(textDiv);
                                                                                                                    if (isAllWhitespace(geom.str)) {
                                                                                                                Severity: Minor
                                                                                                                Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                  Function transportObj has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                  Open

                                                                                                                        messageHandler.on('commonobj', function transportObj(data) {
                                                                                                                          if (this.destroyed) {
                                                                                                                            return; // Ignore any pending requests if the worker was terminated.
                                                                                                                          }
                                                                                                                  
                                                                                                                  
                                                                                                                  Severity: Minor
                                                                                                                  Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                    Consider simplifying this complex logical expression.
                                                                                                                    Open

                                                                                                                                if (
                                                                                                                                  'file' != this._scheme || !ALPHA.test(c) ||
                                                                                                                                  (nextC != ':' && nextC != '|') ||
                                                                                                                                  (EOF != nextNextC && '/' != nextNextC && '\\' != nextNextC && '?' != nextNextC && '#' != nextNextC)) {
                                                                                                                                  this._host = base._host;
                                                                                                                    Severity: Critical
                                                                                                                    Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

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

                                                                                                                      var SVGExtraState = (function SVGExtraStateClosure() {
                                                                                                                        function SVGExtraState() {
                                                                                                                          this.fontSizeScale = 1;
                                                                                                                          this.fontWeight = SVG_DEFAULTS.fontWeight;
                                                                                                                          this.fontSize = 0;
                                                                                                                      Severity: Minor
                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

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

                                                                                                                          function composeSMask(layer, mask, properties) {
                                                                                                                            var width = layer.width, height = layer.height;
                                                                                                                        
                                                                                                                            if (!smaskCache) {
                                                                                                                              initSmaskGL();
                                                                                                                        Severity: Minor
                                                                                                                        Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                          Function Promise_all has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                          Open

                                                                                                                            Promise.all = function Promise_all(promises) {
                                                                                                                              var resolveAll, rejectAll;
                                                                                                                              var deferred = new Promise(function (resolve, reject) {
                                                                                                                                resolveAll = resolve;
                                                                                                                                rejectAll = reject;
                                                                                                                          Severity: Minor
                                                                                                                          Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                            Function fontLoaderBind has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                            Open

                                                                                                                              bind: function fontLoaderBind(fonts, callback) {
                                                                                                                                var rules = [];
                                                                                                                                var fontsToLoad = [];
                                                                                                                                var fontLoadPromises = [];
                                                                                                                                var getNativeFontPromise = function(nativeFontFace) {
                                                                                                                            Severity: Minor
                                                                                                                            Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                              Function CanvasExtraStateClosure has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                              Open

                                                                                                                              var CanvasExtraState = (function CanvasExtraStateClosure() {
                                                                                                                                function CanvasExtraState(old) {
                                                                                                                                  // Are soft masks and alpha values shapes or opacities?
                                                                                                                                  this.alphaIsShape = false;
                                                                                                                                  this.fontSize = 0;
                                                                                                                              Severity: Minor
                                                                                                                              Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                Function WidgetAnnotationElementClosure has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                Open

                                                                                                                                var WidgetAnnotationElement = (function WidgetAnnotationElementClosure() {
                                                                                                                                  function WidgetAnnotationElement(parameters) {
                                                                                                                                    var isRenderable = !parameters.data.hasAppearance &&
                                                                                                                                                       !!parameters.data.fieldValue;
                                                                                                                                    AnnotationElement.call(this, parameters, isRenderable);
                                                                                                                                Severity: Minor
                                                                                                                                Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                  Function SVGGraphics_setGState has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                  Open

                                                                                                                                      setGState: function SVGGraphics_setGState(states) {
                                                                                                                                        for (var i = 0, ii = states.length; i < ii; i++) {
                                                                                                                                          var state = states[i];
                                                                                                                                          var key = state[0];
                                                                                                                                          var value = state[1];
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                    Function AnnotationLayerClosure has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                    Open

                                                                                                                                    var AnnotationLayer = (function AnnotationLayerClosure() {
                                                                                                                                      return {
                                                                                                                                        /**
                                                                                                                                         * Render a new annotation layer with all annotation elements.
                                                                                                                                         *
                                                                                                                                    Severity: Minor
                                                                                                                                    Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                      Function Mesh_fromIR has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                      Open

                                                                                                                                        fromIR: function Mesh_fromIR(raw) {
                                                                                                                                          //var type = raw[1];
                                                                                                                                          var coords = raw[2];
                                                                                                                                          var colors = raw[3];
                                                                                                                                          var figures = raw[4];
                                                                                                                                      Severity: Minor
                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                        Function TilinPattern_createPatternCanvas has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                        Open

                                                                                                                                            createPatternCanvas: function TilinPattern_createPatternCanvas(owner) {
                                                                                                                                              var operatorList = this.operatorList;
                                                                                                                                              var bbox = this.bbox;
                                                                                                                                              var xstep = this.xstep;
                                                                                                                                              var ystep = this.ystep;
                                                                                                                                        Severity: Minor
                                                                                                                                        Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                          Function PDFWorker_setupFakeWorker has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                          Open

                                                                                                                                              _setupFakeWorker: function PDFWorker_setupFakeWorker() {
                                                                                                                                                if (!isWorkerDisabled && !getDefaultSetting('disableWorker')) {
                                                                                                                                                  warn('Setting up fake worker.');
                                                                                                                                                  isWorkerDisabled = true;
                                                                                                                                                }
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                            Function initSmaskGL has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                            Open

                                                                                                                                              function initSmaskGL() {
                                                                                                                                                var canvas, gl;
                                                                                                                                            
                                                                                                                                                generateGL();
                                                                                                                                                canvas = currentCanvas;
                                                                                                                                            Severity: Minor
                                                                                                                                            Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                              Function PDFPageProxy_getOperatorList has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                  getOperatorList: function PDFPageProxy_getOperatorList() {
                                                                                                                                                    function operatorListChanged() {
                                                                                                                                                      if (intentState.operatorList.lastChunk) {
                                                                                                                                                        intentState.opListReadCapability.resolve(intentState.operatorList);
                                                                                                                                              
                                                                                                                                              
                                                                                                                                              Severity: Minor
                                                                                                                                              Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                                Function Uint32ArrayViewClosure has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                Open

                                                                                                                                                var Uint32ArrayView = (function Uint32ArrayViewClosure() {
                                                                                                                                                
                                                                                                                                                  function Uint32ArrayView(buffer, length) {
                                                                                                                                                    this.buffer = buffer;
                                                                                                                                                    this.byteLength = buffer.length;
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                                  Function CachedCanvasesClosure has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                  Open

                                                                                                                                                  var CachedCanvases = (function CachedCanvasesClosure() {
                                                                                                                                                    function CachedCanvases() {
                                                                                                                                                      this.cache = Object.create(null);
                                                                                                                                                    }
                                                                                                                                                    CachedCanvases.prototype = {
                                                                                                                                                  Severity: Minor
                                                                                                                                                  Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                                    Function CanvasGraphics_setFont has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                    Open

                                                                                                                                                        setFont: function CanvasGraphics_setFont(fontRefName, size) {
                                                                                                                                                          var fontObj = this.commonObjs.get(fontRefName);
                                                                                                                                                          var current = this.current;
                                                                                                                                                    
                                                                                                                                                          if (!fontObj) {
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                                      Function PDFDocumentLoadingTaskClosure has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                      Open

                                                                                                                                                      var PDFDocumentLoadingTask = (function PDFDocumentLoadingTaskClosure() {
                                                                                                                                                        var nextDocumentId = 0;
                                                                                                                                                      
                                                                                                                                                        /** @constructs PDFDocumentLoadingTask */
                                                                                                                                                        function PDFDocumentLoadingTask() {
                                                                                                                                                      Severity: Minor
                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                                        Function runHandlers has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                            runHandlers: function runHandlers() {
                                                                                                                                                              var RUN_TIMEOUT = 1; // ms
                                                                                                                                                              var timeoutAt = Date.now() + RUN_TIMEOUT;
                                                                                                                                                              while (this.handlers.length > 0) {
                                                                                                                                                                var handler = this.handlers.shift();
                                                                                                                                                        Severity: Minor
                                                                                                                                                        Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

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

                                                                                                                                                            function drawFigure(data, figure, context) {
                                                                                                                                                              var ps = figure.coords;
                                                                                                                                                              var cs = figure.colors;
                                                                                                                                                              var i, ii;
                                                                                                                                                              switch (figure.type) {
                                                                                                                                                          Severity: Minor
                                                                                                                                                          Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

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

                                                                                                                                                                fill: function CanvasGraphics_fill(consumePath) {
                                                                                                                                                                  consumePath = typeof consumePath !== 'undefined' ? consumePath : true;
                                                                                                                                                                  var ctx = this.ctx;
                                                                                                                                                                  var fillColor = this.current.fillColor;
                                                                                                                                                                  var isPatternFill = this.current.patternFill;
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

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

                                                                                                                                                                      function SVGGraphics_paintInlineImageXObject(imgData, mask) {
                                                                                                                                                                    var current = this.current;
                                                                                                                                                                    var width = imgData.width;
                                                                                                                                                                    var height = imgData.height;
                                                                                                                                                              
                                                                                                                                                              
                                                                                                                                                              Severity: Minor
                                                                                                                                                              Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                                                Function PopupAnnotationElementClosure has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                Open

                                                                                                                                                                var PopupAnnotationElement = (function PopupAnnotationElementClosure() {
                                                                                                                                                                  function PopupAnnotationElement(parameters) {
                                                                                                                                                                    var isRenderable = !!(parameters.data.title || parameters.data.contents);
                                                                                                                                                                    AnnotationElement.call(this, parameters, isRenderable);
                                                                                                                                                                  }
                                                                                                                                                                Severity: Minor
                                                                                                                                                                Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                                                  Function WorkerTransport_destroy has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                  Open

                                                                                                                                                                      destroy: function WorkerTransport_destroy() {
                                                                                                                                                                        if (this.destroyCapability) {
                                                                                                                                                                          return this.destroyCapability.promise;
                                                                                                                                                                        }
                                                                                                                                                                  
                                                                                                                                                                  
                                                                                                                                                                  Severity: Minor
                                                                                                                                                                  Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                                                    Function CustomStyleClosure has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                    Open

                                                                                                                                                                    var CustomStyle = (function CustomStyleClosure() {
                                                                                                                                                                    
                                                                                                                                                                      // As noted on: http://www.zachstronaut.com/posts/2009/02/17/
                                                                                                                                                                      //              animate-css-transforms-firefox-webkit.html
                                                                                                                                                                      // in some versions of IE9 it is critical that ms appear in this list
                                                                                                                                                                    Severity: Minor
                                                                                                                                                                    Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                                                      Function FontFaceObject_getPathGenerator has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                      Open

                                                                                                                                                                              function FontFaceObject_getPathGenerator(objs, character) {
                                                                                                                                                                            if (!(character in this.compiledGlyphs)) {
                                                                                                                                                                              var cmds = objs.get(this.loadedName + '_path_' + character);
                                                                                                                                                                              var current, i, len;
                                                                                                                                                                      
                                                                                                                                                                      
                                                                                                                                                                      Severity: Minor
                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                                                        Function SVGExtraState has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                        Open

                                                                                                                                                                          function SVGExtraState() {
                                                                                                                                                                            this.fontSizeScale = 1;
                                                                                                                                                                            this.fontWeight = SVG_DEFAULTS.fontWeight;
                                                                                                                                                                            this.fontSize = 0;
                                                                                                                                                                        
                                                                                                                                                                        
                                                                                                                                                                        Severity: Minor
                                                                                                                                                                        Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                                                          Function transportObj has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                          Open

                                                                                                                                                                                messageHandler.on('obj', function transportObj(data) {
                                                                                                                                                                                  if (this.destroyed) {
                                                                                                                                                                                    return; // Ignore any pending requests if the worker was terminated.
                                                                                                                                                                                  }
                                                                                                                                                                          
                                                                                                                                                                          
                                                                                                                                                                          Severity: Minor
                                                                                                                                                                          Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                                                            Function CanvasGraphics_paintImageMaskXObject has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                            Open

                                                                                                                                                                                paintImageMaskXObject: function CanvasGraphics_paintImageMaskXObject(img) {
                                                                                                                                                                                  var ctx = this.ctx;
                                                                                                                                                                                  var width = img.width, height = img.height;
                                                                                                                                                                                  var fillColor = this.current.fillColor;
                                                                                                                                                                                  var isPatternFill = this.current.patternFill;
                                                                                                                                                                            Severity: Minor
                                                                                                                                                                            Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                                                              Function FileAttachmentAnnotationElementClosure has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                              Open

                                                                                                                                                                                  function FileAttachmentAnnotationElementClosure() {
                                                                                                                                                                                function FileAttachmentAnnotationElement(parameters) {
                                                                                                                                                                                  AnnotationElement.call(this, parameters, true);
                                                                                                                                                                              
                                                                                                                                                                                  this.filename = getFilenameFromUrl(parameters.data.file.filename);
                                                                                                                                                                              Severity: Minor
                                                                                                                                                                              Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                                                                Function _fetchDocument has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                Open

                                                                                                                                                                                function _fetchDocument(worker, source, pdfDataRangeTransport, docId) {
                                                                                                                                                                                  if (worker.destroyed) {
                                                                                                                                                                                    return Promise.reject(new Error('Worker was destroyed'));
                                                                                                                                                                                  }
                                                                                                                                                                                
                                                                                                                                                                                
                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                                                                  Function arraysToBytes has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                  Open

                                                                                                                                                                                  function arraysToBytes(arr) {
                                                                                                                                                                                    // Shortcut: if first and only item is Uint8Array, return it.
                                                                                                                                                                                    if (arr.length === 1 && (arr[0] instanceof Uint8Array)) {
                                                                                                                                                                                      return arr[0];
                                                                                                                                                                                    }
                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                  Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                                                                    Function SVGGraphics_setFont has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                    Open

                                                                                                                                                                                        setFont: function SVGGraphics_setFont(details) {
                                                                                                                                                                                          var current = this.current;
                                                                                                                                                                                          var fontObj = this.commonObjs.get(details[0]);
                                                                                                                                                                                          var size = details[1];
                                                                                                                                                                                          this.current.font = fontObj;
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                                                                      Function putBinaryImageMask has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                      Open

                                                                                                                                                                                        function putBinaryImageMask(ctx, imgData) {
                                                                                                                                                                                          var height = imgData.height, width = imgData.width;
                                                                                                                                                                                          var partialChunkHeight = height % FULL_CHUNK_HEIGHT;
                                                                                                                                                                                          var fullChunks = (height - partialChunkHeight) / FULL_CHUNK_HEIGHT;
                                                                                                                                                                                          var totalChunks = partialChunkHeight === 0 ? fullChunks : fullChunks + 1;
                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

                                                                                                                                                                                        Function Metadata_parse has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                        Open

                                                                                                                                                                                            parse: function Metadata_parse() {
                                                                                                                                                                                              var doc = this.metaDocument;
                                                                                                                                                                                              var rdf = doc.documentElement;
                                                                                                                                                                                        
                                                                                                                                                                                              if (rdf.nodeName.toLowerCase() !== 'rdf:rdf') { // Wrapped in <xmpmeta>
                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                        Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

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

                                                                                                                                                                                            function drawTriangle(data, context, p1, p2, p3, c1, c2, c3) {
                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                          Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 1 hr to fix

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

                                                                                                                                                                                              function genericComposeSMask(maskCtx, layerCtx, width, height,
                                                                                                                                                                                                                           subtype, backdrop, transferMap) {
                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                            Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 50 mins to fix

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

                                                                                                                                                                                                function createMeshCanvas(bounds, combinesScale, coords, colors, figures,
                                                                                                                                                                                                                          backgroundColor, cachedCanvases) {
                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                              Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 50 mins to fix

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

                                                                                                                                                                                                    setTextMatrix: function CanvasGraphics_setTextMatrix(a, b, c, d, e, f) {
                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

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

                                                                                                                                                                                                      setCharWidthAndBounds: function CanvasGraphics_setCharWidthAndBounds(xWidth,
                                                                                                                                                                                                                                                                          yWidth,
                                                                                                                                                                                                                                                                          llx,
                                                                                                                                                                                                                                                                          lly,
                                                                                                                                                                                                                                                                          urx,
                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                  Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

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

                                                                                                                                                                                                        ctx.setTransform = function ctxSetTransform(a, b, c, d, e, f) {
                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                    Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

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

                                                                                                                                                                                                          clipBbox: function clipBbox(graphics, bbox, x0, y0, x1, y1) {
                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

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

                                                                                                                                                                                                          function PageViewport(viewBox, scale, rotation, offsetX, offsetY, dontFlip) {
                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                        Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

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

                                                                                                                                                                                                              setTextMatrix: function SVGGraphics_setTextMatrix(a, b, c, d, e, f) {
                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                          Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

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

                                                                                                                                                                                                                transform: function SVGGraphics_transform(a, b, c, d, e, f) {
                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                            Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

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

                                                                                                                                                                                                                function InternalRenderTask(callback, params, objs, commonObjs, operatorList,
                                                                                                                                                                                                                                            pageNumber) {
                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                              Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

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

                                                                                                                                                                                                                    transform: function CanvasGraphics_transform(a, b, c, d, e, f) {
                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

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

                                                                                                                                                                                                                      ctx.transform = function ctxTransform(a, b, c, d, e, f) {
                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                  Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

                                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                  if ('\t' == cp || '\n' == cp || '\r' == cp) {
                                                                                                                                                                                                                                    err('Invalid whitespace in authority.');
                                                                                                                                                                                                                                    continue;
                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                    Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

                                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                   if (mask === 0) {
                                                                                                                                                                                                                                     srcByte = src[srcPos++];
                                                                                                                                                                                                                                     mask = 128;
                                                                                                                                                                                                                                   }
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

                                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                for (j = elemsInThisChunk; j--;) {
                                                                                                                                                                                                                                  dest[destPos++] = src[srcPos++];
                                                                                                                                                                                                                                  dest[destPos++] = src[srcPos++];
                                                                                                                                                                                                                                  dest[destPos++] = src[srcPos++];
                                                                                                                                                                                                                                  dest[destPos++] = 255;
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

                                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                  if (i >= fullChunks) {
                                                                                                                                                                                                                                    thisChunkHeight = partialChunkHeight;
                                                                                                                                                                                                                                    elemsInThisChunk = width * thisChunkHeight;
                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                          Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

                                                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                        if (stateOverride) {
                                                                                                                                                                                                                                          break loop;
                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                            Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

                                                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                            if ('/' != c && '\\' != c) {
                                                                                                                                                                                                                                              this._path.push('');
                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                              Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

                                                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                            } else if ('.' == buffer && '/' != c && '\\' != c) {
                                                                                                                                                                                                                                              this._path.push('');
                                                                                                                                                                                                                                            } else if ('.' != buffer) {
                                                                                                                                                                                                                                              if ('file' == this._scheme && this._path.length == 0 && buffer.length == 2 && ALPHA.test(buffer[0]) && buffer[1] == '|') {
                                                                                                                                                                                                                                                buffer = buffer[0] + ':';
                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

                                                                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                if (':' == cp && null === this._password) {
                                                                                                                                                                                                                                                  this._password = '';
                                                                                                                                                                                                                                                  continue;
                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                  Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

                                                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                              } else if ('\t' != c && '\n' != c && '\r' != c) {
                                                                                                                                                                                                                                                if ('[' == c) {
                                                                                                                                                                                                                                                  seenBracket = true;
                                                                                                                                                                                                                                                } else if (']' == c) {
                                                                                                                                                                                                                                                  seenBracket = false;
                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                    Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

                                                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                    if (temp != relative[this._scheme]) {
                                                                                                                                                                                                                                                      this._port = temp + '';
                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

                                                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                    if (
                                                                                                                                                                                                                                                      'file' != this._scheme || !ALPHA.test(c) ||
                                                                                                                                                                                                                                                      (nextC != ':' && nextC != '|') ||
                                                                                                                                                                                                                                                      (EOF != nextNextC && '/' != nextNextC && '\\' != nextNextC && '?' != nextNextC && '#' != nextNextC)) {
                                                                                                                                                                                                                                                      this._host = base._host;
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 45 mins to fix

                                                                                                                                                                                                                                          Consider simplifying this complex logical expression.
                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                    } else if (EOF == c || '/' == c || '\\' == c || '?' == c || '#' == c || stateOverride) {
                                                                                                                                                                                                                                                      if ('' != buffer) {
                                                                                                                                                                                                                                                        var temp = parseInt(buffer, 10);
                                                                                                                                                                                                                                                        if (temp != relative[this._scheme]) {
                                                                                                                                                                                                                                                          this._port = temp + '';
                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                          Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 40 mins to fix

                                                                                                                                                                                                                                            Consider simplifying this complex logical expression.
                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                      if (EOF == c || '/' == c || '\\' == c || (!stateOverride && ('?' == c || '#' == c))) {
                                                                                                                                                                                                                                                        if ('\\' == c) {
                                                                                                                                                                                                                                                          err('\\ not allowed in relative path.');
                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                        var tmp;
                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                            Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 40 mins to fix

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

                                                                                                                                                                                                                                                function drawFigures(width, height, backgroundColor, figures, context) {
                                                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                                                              Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 35 mins to fix

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

                                                                                                                                                                                                                                                  function TilingPattern(IR, color, ctx, canvasGraphicsFactory, baseTransform) {
                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 35 mins to fix

                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                              return i;
                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                  Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 30 mins to fix

                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                        return 'matrix(' + pf(m[0]) + ' ' + pf(m[1]) + ' ' + pf(m[2]) + ' ' +
                                                                                                                                                                                                                                                          pf(m[3]) + ' ' + pf(m[4]) + ' ' + pf(m[5]) + ')';
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js - About 30 mins to fix

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

                                                                                                                                                                                                                                                      var StrikeOutAnnotationElement = (
                                                                                                                                                                                                                                                          function StrikeOutAnnotationElementClosure() {
                                                                                                                                                                                                                                                        function StrikeOutAnnotationElement(parameters) {
                                                                                                                                                                                                                                                          var isRenderable = !!(parameters.data.hasPopup ||
                                                                                                                                                                                                                                                                                parameters.data.title || parameters.data.contents);
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 3 other locations - About 7 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4897..4925
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4931..4959
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4965..4992

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                      var HighlightAnnotationElement = (
                                                                                                                                                                                                                                                          function HighlightAnnotationElementClosure() {
                                                                                                                                                                                                                                                        function HighlightAnnotationElement(parameters) {
                                                                                                                                                                                                                                                          var isRenderable = !!(parameters.data.hasPopup ||
                                                                                                                                                                                                                                                                                parameters.data.title || parameters.data.contents);
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 3 other locations - About 7 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4931..4959
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4965..4992
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4998..5026

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                      var UnderlineAnnotationElement = (
                                                                                                                                                                                                                                                          function UnderlineAnnotationElementClosure() {
                                                                                                                                                                                                                                                        function UnderlineAnnotationElement(parameters) {
                                                                                                                                                                                                                                                          var isRenderable = !!(parameters.data.hasPopup ||
                                                                                                                                                                                                                                                                                parameters.data.title || parameters.data.contents);
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 3 other locations - About 7 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4897..4925
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4965..4992
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4998..5026

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                      var SquigglyAnnotationElement = (function SquigglyAnnotationElementClosure() {
                                                                                                                                                                                                                                                        function SquigglyAnnotationElement(parameters) {
                                                                                                                                                                                                                                                          var isRenderable = !!(parameters.data.hasPopup ||
                                                                                                                                                                                                                                                                                parameters.data.title || parameters.data.contents);
                                                                                                                                                                                                                                                          AnnotationElement.call(this, parameters, isRenderable);
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 3 other locations - About 7 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4897..4925
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4931..4959
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4998..5026

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

                                                                                                                                                                                                                                                      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 (rotateA === 0) {
                                                                                                                                                                                                                                                            offsetCanvasX = Math.abs(centerY - viewBox[1]) * scale + offsetX;
                                                                                                                                                                                                                                                            offsetCanvasY = Math.abs(centerX - viewBox[0]) * scale + offsetY;
                                                                                                                                                                                                                                                            width = Math.abs(viewBox[3] - viewBox[1]) * scale;
                                                                                                                                                                                                                                                            height = Math.abs(viewBox[2] - viewBox[0]) * scale;
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 967..972

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                          } else {
                                                                                                                                                                                                                                                            offsetCanvasX = Math.abs(centerX - viewBox[0]) * scale + offsetX;
                                                                                                                                                                                                                                                            offsetCanvasY = Math.abs(centerY - viewBox[1]) * scale + offsetY;
                                                                                                                                                                                                                                                            width = Math.abs(viewBox[2] - viewBox[0]) * scale;
                                                                                                                                                                                                                                                            height = Math.abs(viewBox[3] - viewBox[1]) * scale;
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 962..967

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                              k = y > y3 ? 1 : y2 === y3 ? 0 : (y2 - y) / (y2 - y3);
                                                                                                                                                                                                                                                              xa = x2 - (x2 - x3) * k;
                                                                                                                                                                                                                                                              car = c2r - (c2r - c3r) * k;
                                                                                                                                                                                                                                                              cag = c2g - (c2g - c3g) * k;
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 5896..5902

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

                                                                                                                                                                                                                                                      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 (y < y2) {
                                                                                                                                                                                                                                                              k = y < y1 ? 0 : y1 === y2 ? 1 : (y1 - y) / (y1 - y2);
                                                                                                                                                                                                                                                              xa = x1 - (x1 - x2) * k;
                                                                                                                                                                                                                                                              car = c1r - (c1r - c2r) * k;
                                                                                                                                                                                                                                                              cag = c1g - (c1g - c2g) * k;
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 5902..5908

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

                                                                                                                                                                                                                                                      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 (isArray(bbox) && 4 === bbox.length) {
                                                                                                                                                                                                                                                              var width = bbox[2] - bbox[0];
                                                                                                                                                                                                                                                              var height = bbox[3] - bbox[1];
                                                                                                                                                                                                                                                              this.ctx.rect(bbox[0], bbox[1], width, height);
                                                                                                                                                                                                                                                              this.clip();
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 8185..8191

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

                                                                                                                                                                                                                                                      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 (isArray(rect) && 4 === rect.length) {
                                                                                                                                                                                                                                                              var width = rect[2] - rect[0];
                                                                                                                                                                                                                                                              var height = rect[3] - rect[1];
                                                                                                                                                                                                                                                              this.ctx.rect(rect[0], rect[1], width, height);
                                                                                                                                                                                                                                                              this.clip();
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 8024..8030

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                          onDataProgressiveRead:
                                                                                                                                                                                                                                                              function PDFDataRangeTransport_onDataProgress(chunk) {
                                                                                                                                                                                                                                                            this._readyCapability.promise.then(function () {
                                                                                                                                                                                                                                                              var listeners = this._progressiveReadListeners;
                                                                                                                                                                                                                                                              for (var i = 0, n = listeners.length; i < n; ++i) {
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 8965..8972

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                          onDataProgress: function PDFDataRangeTransport_onDataProgress(loaded) {
                                                                                                                                                                                                                                                            this._readyCapability.promise.then(function () {
                                                                                                                                                                                                                                                              var listeners = this._progressListeners;
                                                                                                                                                                                                                                                              for (var i = 0, n = listeners.length; i < n; ++i) {
                                                                                                                                                                                                                                                                listeners[i](loaded);
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 8974..8982

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                      var UnknownErrorException = (function UnknownErrorExceptionClosure() {
                                                                                                                                                                                                                                                        function UnknownErrorException(msg, details) {
                                                                                                                                                                                                                                                          this.name = 'UnknownErrorException';
                                                                                                                                                                                                                                                          this.message = msg;
                                                                                                                                                                                                                                                          this.details = details;
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 383..394
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 433..445

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                      var PasswordException = (function PasswordExceptionClosure() {
                                                                                                                                                                                                                                                        function PasswordException(msg, code) {
                                                                                                                                                                                                                                                          this.name = 'PasswordException';
                                                                                                                                                                                                                                                          this.message = msg;
                                                                                                                                                                                                                                                          this.code = code;
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 396..407
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 433..445

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                      var UnexpectedResponseException =
                                                                                                                                                                                                                                                          (function UnexpectedResponseExceptionClosure() {
                                                                                                                                                                                                                                                        function UnexpectedResponseException(msg, status) {
                                                                                                                                                                                                                                                          this.name = 'UnexpectedResponseException';
                                                                                                                                                                                                                                                          this.message = msg;
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 2 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 383..394
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 396..407

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                            messageHandler.on('IncorrectPassword',
                                                                                                                                                                                                                                                                              function transportIncorrectPassword(exception) {
                                                                                                                                                                                                                                                              var loadingTask = this.loadingTask;
                                                                                                                                                                                                                                                              if (loadingTask.onPassword) {
                                                                                                                                                                                                                                                                return loadingTask.onPassword(updatePassword,
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 9924..9933

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                            messageHandler.on('NeedPassword',
                                                                                                                                                                                                                                                                              function transportNeedPassword(exception) {
                                                                                                                                                                                                                                                              var loadingTask = this.loadingTask;
                                                                                                                                                                                                                                                              if (loadingTask.onPassword) {
                                                                                                                                                                                                                                                                return loadingTask.onPassword(updatePassword,
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 9935..9944

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                      var NotImplementedException = (function NotImplementedExceptionClosure() {
                                                                                                                                                                                                                                                        function NotImplementedException(msg) {
                                                                                                                                                                                                                                                          this.message = msg;
                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 473..483

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                      var XRefParseException = (function XRefParseExceptionClosure() {
                                                                                                                                                                                                                                                        function XRefParseException(msg) {
                                                                                                                                                                                                                                                          this.message = msg;
                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 447..457

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                      var MissingPDFException = (function MissingPDFExceptionClosure() {
                                                                                                                                                                                                                                                        function MissingPDFException(msg) {
                                                                                                                                                                                                                                                          this.name = 'MissingPDFException';
                                                                                                                                                                                                                                                          this.message = msg;
                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 409..419

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                      var InvalidPDFException = (function InvalidPDFExceptionClosure() {
                                                                                                                                                                                                                                                        function InvalidPDFException(msg) {
                                                                                                                                                                                                                                                          this.name = 'InvalidPDFException';
                                                                                                                                                                                                                                                          this.message = msg;
                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 421..431

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

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

                                                                                                                                                                                                                                                            if (current.pendingClip) {
                                                                                                                                                                                                                                                              this.cgrp.appendChild(this.tgrp);
                                                                                                                                                                                                                                                              this.pgrp.appendChild(this.cgrp);
                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                              this.pgrp.appendChild(this.tgrp);
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 3996..4001
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4155..4160

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

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

                                                                                                                                                                                                                                                            if (current.pendingClip) {
                                                                                                                                                                                                                                                              this.cgrp.appendChild(this.tgrp);
                                                                                                                                                                                                                                                              this.pgrp.appendChild(this.cgrp);
                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                              this.pgrp.appendChild(this.tgrp);
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4155..4160
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4200..4205

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

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

                                                                                                                                                                                                                                                            if (current.pendingClip) {
                                                                                                                                                                                                                                                              this.cgrp.appendChild(this.tgrp);
                                                                                                                                                                                                                                                              this.pgrp.appendChild(this.cgrp);
                                                                                                                                                                                                                                                            } else {
                                                                                                                                                                                                                                                              this.pgrp.appendChild(this.tgrp);
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 3996..4001
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4200..4205

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                        CanvasExtraState.prototype = {
                                                                                                                                                                                                                                                          clone: function CanvasExtraState_clone() {
                                                                                                                                                                                                                                                            return Object.create(this);
                                                                                                                                                                                                                                                          },
                                                                                                                                                                                                                                                          setCurrentPoint: function CanvasExtraState_setCurrentPoint(x, y) {
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 3337..3345

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                        SVGExtraState.prototype = {
                                                                                                                                                                                                                                                          clone: function SVGExtraState_clone() {
                                                                                                                                                                                                                                                            return Object.create(this);
                                                                                                                                                                                                                                                          },
                                                                                                                                                                                                                                                          setCurrentPoint: function SVGExtraState_setCurrentPoint(x, y) {
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 6668..6676

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                          if (coords[p1 + 1] > coords[p2 + 1]) {
                                                                                                                                                                                                                                                            tmp = p1; p1 = p2; p2 = tmp; tmp = c1; c1 = c2; c2 = tmp;
                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 5872..5874
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 5875..5877

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                          if (coords[p1 + 1] > coords[p2 + 1]) {
                                                                                                                                                                                                                                                            tmp = p1; p1 = p2; p2 = tmp; tmp = c1; c1 = c2; c2 = tmp;
                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 5869..5871
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 5872..5874

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                          if (coords[p2 + 1] > coords[p3 + 1]) {
                                                                                                                                                                                                                                                            tmp = p2; p2 = p3; p3 = tmp; tmp = c2; c2 = c3; c3 = tmp;
                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 5869..5871
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 5875..5877

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                              this.imageLayer.appendImage({
                                                                                                                                                                                                                                                                objId: objId,
                                                                                                                                                                                                                                                                left: position[0],
                                                                                                                                                                                                                                                                top: position[1],
                                                                                                                                                                                                                                                                width: w / currentTransform[0],
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 8427..8433

                                                                                                                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                                                                                                                      Tuning

                                                                                                                                                                                                                                                      This issue has a mass of 65.

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

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

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

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

                                                                                                                                                                                                                                                      Refactorings

                                                                                                                                                                                                                                                      Further Reading

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

                                                                                                                                                                                                                                                              this.imageLayer.appendImage({
                                                                                                                                                                                                                                                                imgData: imgData,
                                                                                                                                                                                                                                                                left: position[0],
                                                                                                                                                                                                                                                                top: position[1],
                                                                                                                                                                                                                                                                width: width / currentTransform[0],
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 8219..8225

                                                                                                                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                                                                                                                      Tuning

                                                                                                                                                                                                                                                      This issue has a mass of 65.

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

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

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

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

                                                                                                                                                                                                                                                      Refactorings

                                                                                                                                                                                                                                                      Further Reading

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

                                                                                                                                                                                                                                                          if ((orderedX[0] === rect1[0] && orderedX[1] === rect2[0]) ||
                                                                                                                                                                                                                                                              (orderedX[0] === rect2[0] && orderedX[1] === rect1[0])) {
                                                                                                                                                                                                                                                            // Intersection must be between second and third points
                                                                                                                                                                                                                                                            result[0] = orderedX[1];
                                                                                                                                                                                                                                                            result[2] = orderedX[2];
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 807..814

                                                                                                                                                                                                                                                      Duplicated Code

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

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

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

                                                                                                                                                                                                                                                      Tuning

                                                                                                                                                                                                                                                      This issue has a mass of 62.

                                                                                                                                                                                                                                                      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 (ctx.mozFillRule !== undefined) {
                                                                                                                                                                                                                                                                  ctx.mozFillRule = 'evenodd';
                                                                                                                                                                                                                                                                  ctx.clip();
                                                                                                                                                                                                                                                                  ctx.mozFillRule = 'nonzero';
                                                                                                                                                                                                                                                                } else {
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 7466..7472

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

                                                                                                                                                                                                                                                      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 (ctx.mozFillRule !== undefined) {
                                                                                                                                                                                                                                                                ctx.mozFillRule = 'evenodd';
                                                                                                                                                                                                                                                                ctx.fill();
                                                                                                                                                                                                                                                                ctx.mozFillRule = 'nonzero';
                                                                                                                                                                                                                                                              } else {
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 8512..8518

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

                                                                                                                                                                                                                                                      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 ((orderedY[0] === rect1[1] && orderedY[1] === rect2[1]) ||
                                                                                                                                                                                                                                                              (orderedY[0] === rect2[1] && orderedY[1] === rect1[1])) {
                                                                                                                                                                                                                                                            // Intersection must be between second and third points
                                                                                                                                                                                                                                                            result[1] = orderedY[1];
                                                                                                                                                                                                                                                            result[3] = orderedY[2];
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 797..804

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                          eoFill: function SVGGraphics_eoFill() {
                                                                                                                                                                                                                                                            var current = this.current;
                                                                                                                                                                                                                                                            current.element.setAttributeNS(null, 'fill', current.fillColor);
                                                                                                                                                                                                                                                            current.element.setAttributeNS(null, 'fill-rule', 'evenodd');
                                                                                                                                                                                                                                                          },
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4096..4100

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                          stroke: function SVGGraphics_stroke() {
                                                                                                                                                                                                                                                            var current = this.current;
                                                                                                                                                                                                                                                            current.element.setAttributeNS(null, 'stroke', current.strokeColor);
                                                                                                                                                                                                                                                            current.element.setAttributeNS(null, 'fill', 'none');
                                                                                                                                                                                                                                                          },
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4102..4106

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                          paintImageXObject: function SVGGraphics_paintImageXObject(objId) {
                                                                                                                                                                                                                                                            var imgData = this.objs.get(objId);
                                                                                                                                                                                                                                                            if (!imgData) {
                                                                                                                                                                                                                                                              warn('Dependent image isn\'t ready yet');
                                                                                                                                                                                                                                                              return;
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 8338..8346

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                          paintImageXObject: function CanvasGraphics_paintImageXObject(objId) {
                                                                                                                                                                                                                                                            var imgData = this.objs.get(objId);
                                                                                                                                                                                                                                                            if (!imgData) {
                                                                                                                                                                                                                                                              warn('Dependent image isn\'t ready yet');
                                                                                                                                                                                                                                                              return;
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4163..4170

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                      var StreamType = {
                                                                                                                                                                                                                                                        UNKNOWN: 0,
                                                                                                                                                                                                                                                        FLATE: 1,
                                                                                                                                                                                                                                                        LZW: 2,
                                                                                                                                                                                                                                                        DCT: 3,
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 56..67
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 104..115

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

                                                                                                                                                                                                                                                        Object.defineProperty(PDFJS, 'hasCanvasTypedArrays', {
                                                                                                                                                                                                                                                          configurable: true,
                                                                                                                                                                                                                                                          get: function PDFJS_hasCanvasTypedArrays() {
                                                                                                                                                                                                                                                            var value = displayDOMUtils.hasCanvasTypedArrays();
                                                                                                                                                                                                                                                            return sharedUtil.shadow(PDFJS, 'hasCanvasTypedArrays', value);
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 10652..10658

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

                                                                                                                                                                                                                                                      var TextRenderingMode = {
                                                                                                                                                                                                                                                        FILL: 0,
                                                                                                                                                                                                                                                        STROKE: 1,
                                                                                                                                                                                                                                                        FILL_STROKE: 2,
                                                                                                                                                                                                                                                        INVISIBLE: 3,
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 104..115
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 125..136

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

                                                                                                                                                                                                                                                        Object.defineProperty(PDFJS, 'isLittleEndian', {
                                                                                                                                                                                                                                                          configurable: true,
                                                                                                                                                                                                                                                          get: function PDFJS_isLittleEndian() {
                                                                                                                                                                                                                                                            var value = sharedUtil.isLittleEndian();
                                                                                                                                                                                                                                                            return sharedUtil.shadow(PDFJS, 'isLittleEndian', value);
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 10848..10854

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

                                                                                                                                                                                                                                                      var AnnotationFlag = {
                                                                                                                                                                                                                                                        INVISIBLE: 0x01,
                                                                                                                                                                                                                                                        HIDDEN: 0x02,
                                                                                                                                                                                                                                                        PRINT: 0x04,
                                                                                                                                                                                                                                                        NOZOOM: 0x08,
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 2 other locations - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 56..67
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 125..136

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

                                                                                                                                                                                                                                                                case OPS.moveTo:
                                                                                                                                                                                                                                                                  x = args[j++];
                                                                                                                                                                                                                                                                  y = args[j++];
                                                                                                                                                                                                                                                                  d.push('M', pf(x), pf(y));
                                                                                                                                                                                                                                                                  break;
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 3937..3941

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

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

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

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

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

                                                                                                                                                                                                                                                      Refactorings

                                                                                                                                                                                                                                                      Further Reading

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

                                                                                                                                                                                                                                                                case OPS.lineTo:
                                                                                                                                                                                                                                                                  x = args[j++];
                                                                                                                                                                                                                                                                  y = args[j++];
                                                                                                                                                                                                                                                                  d.push('L', pf(x) , pf(y));
                                                                                                                                                                                                                                                                  break;
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 3932..3936

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

                                                                                                                                                                                                                                                      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 (this.stateStack.length > 0 &&
                                                                                                                                                                                                                                                                        (this.stateStack[this.stateStack.length - 1].activeSMask ===
                                                                                                                                                                                                                                                                         this.current.activeSMask)) {
                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 7329..7331

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                            messageHandler.on('UnexpectedResponse',
                                                                                                                                                                                                                                                                              function transportUnexpectedResponse(exception) {
                                                                                                                                                                                                                                                              this.loadingTask._capability.reject(
                                                                                                                                                                                                                                                                new UnexpectedResponseException(exception.message, exception.status));
                                                                                                                                                                                                                                                            }, this);
                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 9962..9966

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

                                                                                                                                                                                                                                                      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 (this.current.activeSMask !== null && (this.stateStack.length === 0 ||
                                                                                                                                                                                                                                                                this.stateStack[this.stateStack.length - 1].activeSMask !==
                                                                                                                                                                                                                                                                this.current.activeSMask)) {
                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 7216..7218

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                            messageHandler.on('UnknownError',
                                                                                                                                                                                                                                                                              function transportUnknownError(exception) {
                                                                                                                                                                                                                                                              this.loadingTask._capability.reject(
                                                                                                                                                                                                                                                                new UnknownErrorException(exception.message, exception.details));
                                                                                                                                                                                                                                                            }, this);
                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 55 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 9956..9960

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

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

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

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

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

                                                                                                                                                                                                                                                      Refactorings

                                                                                                                                                                                                                                                      Further Reading

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

                                                                                                                                                                                                                                                                case OPS.setTextMatrix:
                                                                                                                                                                                                                                                                  this.setTextMatrix(args[0], args[1], args[2],
                                                                                                                                                                                                                                                                                     args[3], args[4], args[5]);
                                                                                                                                                                                                                                                                  break;
                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 3676..3679

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

                                                                                                                                                                                                                                                                case OPS.transform:
                                                                                                                                                                                                                                                                  this.transform(args[0], args[1], args[2], args[3],
                                                                                                                                                                                                                                                                                 args[4], args[5]);
                                                                                                                                                                                                                                                                  break;
                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 3594..3597

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

                                                                                                                                                                                                                                                              if (heightScale > 2 && paintHeight > 1) {
                                                                                                                                                                                                                                                                newHeight = Math.ceil(paintHeight / 2);
                                                                                                                                                                                                                                                                heightScale /= paintHeight / newHeight;
                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 8403..8406

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

                                                                                                                                                                                                                                                              if (widthScale > 2 && paintWidth > 1) {
                                                                                                                                                                                                                                                                newWidth = Math.ceil(paintWidth / 2);
                                                                                                                                                                                                                                                                widthScale /= paintWidth / newWidth;
                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 8407..8410

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

                                                                                                                                                                                                                                                            messageHandler.on('InvalidPDF', function transportInvalidPDF(exception) {
                                                                                                                                                                                                                                                              this.loadingTask._capability.reject(
                                                                                                                                                                                                                                                                new InvalidPDFException(exception.message));
                                                                                                                                                                                                                                                            }, this);
                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 9951..9954

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                            messageHandler.on('MissingPDF', function transportMissingPDF(exception) {
                                                                                                                                                                                                                                                              this.loadingTask._capability.reject(
                                                                                                                                                                                                                                                                new MissingPDFException(exception.message));
                                                                                                                                                                                                                                                            }, this);
                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 9946..9949

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

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

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

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

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

                                                                                                                                                                                                                                                      Refactorings

                                                                                                                                                                                                                                                      Further Reading

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

                                                                                                                                                                                                                                                                case OPS.lineTo:
                                                                                                                                                                                                                                                                  x = args[j++];
                                                                                                                                                                                                                                                                  y = args[j++];
                                                                                                                                                                                                                                                                  ctx.lineTo(x, y);
                                                                                                                                                                                                                                                                  break;
                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 7378..7382

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                          get search() {
                                                                                                                                                                                                                                                            return this._isInvalid || !this._query || '?' == this._query ?
                                                                                                                                                                                                                                                                '' : this._query;
                                                                                                                                                                                                                                                          },
                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 2266..2269

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

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

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

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

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

                                                                                                                                                                                                                                                      Refactorings

                                                                                                                                                                                                                                                      Further Reading

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

                                                                                                                                                                                                                                                                case OPS.moveTo:
                                                                                                                                                                                                                                                                  x = args[j++];
                                                                                                                                                                                                                                                                  y = args[j++];
                                                                                                                                                                                                                                                                  ctx.moveTo(x, y);
                                                                                                                                                                                                                                                                  break;
                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 7383..7387

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                            imgEl.setAttributeNS(null, 'transform',
                                                                                                                                                                                                                                                                                 'scale(' + pf(1 / width) + ' ' +
                                                                                                                                                                                                                                                                                 pf(-1 / height) + ')');
                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4151..4152

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                          get hash() {
                                                                                                                                                                                                                                                            return this._isInvalid || !this._fragment || '#' == this._fragment ?
                                                                                                                                                                                                                                                                '' : this._fragment;
                                                                                                                                                                                                                                                          },
                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 2253..2256

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                            imgEl.setAttributeNS(null, 'transform',
                                                                                                                                                                                                                                                                                 'scale(' + pf(1 / w) + ' ' + pf(-1 / h) + ')');
                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 4192..4194

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

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                          var xt = (p[0] * m[3] - p[1] * m[2] + m[2] * m[5] - m[4] * m[3]) / d;
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 3 other locations - About 30 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 733..733
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 734..734
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 735..735

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                            m[3] * v[0] + m[4] * v[1] + m[5] * v[2],
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 3 other locations - About 30 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 697..697
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 733..733
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 735..735

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                            m[0] * v[0] + m[1] * v[1] + m[2] * v[2],
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 3 other locations - About 30 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 697..697
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 734..734
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 735..735

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                            m[6] * v[0] + m[7] * v[1] + m[8] * v[2]
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 3 other locations - About 30 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 697..697
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 733..733
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 734..734

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                          if (smaskCache && smaskCache.canvas) {
                                                                                                                                                                                                                                                            smaskCache.canvas.width = 0;
                                                                                                                                                                                                                                                            smaskCache.canvas.height = 0;
                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 5790..5793

                                                                                                                                                                                                                                                      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

                                                                                                                                                                                                                                                          if (figuresCache && figuresCache.canvas) {
                                                                                                                                                                                                                                                            figuresCache.canvas.width = 0;
                                                                                                                                                                                                                                                            figuresCache.canvas.height = 0;
                                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                      Found in public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js and 1 other location - About 30 mins to fix
                                                                                                                                                                                                                                                      public_/plantillas/inspinia/js/plugins/pdfjs/pdf.js on lines 5786..5789

                                                                                                                                                                                                                                                      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