GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

src/Views/assets/js/debugger.js   A
last analyzed

Complexity

Total Complexity 3
Complexity/F 3

Size

Lines of Code 12
Function Count 1

Duplication

Duplicated Lines 12
Ratio 100 %

Importance

Changes 0
Metric Value
eloc 9
c 0
b 0
f 0
dl 12
loc 12
rs 10
wmc 3
mnd 2
bc 2
fnc 1
bpm 2
cpm 3
noi 0

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1
/*
2
 * This file is part of the O2System Framework package.
3
 *
4
 * For the full copyright and license information, please view the LICENSE
5
 * file that was distributed with this source code.
6
 *
7
 * @author         Steeve Andrian Salim
8
 * @copyright      Copyright (c) Steeve Andrian Salim
9
 */
10
// ------------------------------------------------------------------------
11 View Code Duplication
(function () {
0 ignored issues
show
Duplication introduced by
This code seems to be duplicated in your project.
Loading history...
12
    var pre = document.getElementsByTagName('pre'),
13
        preLen = pre.length;
14
    for (var i = 0; i < preLen; i++) {
15
        pre[i].innerHTML = '<span class="line-number"></span>' + pre[i].innerHTML + '<span class="clear-both"></span>';
16
        var linesNum = pre[i].innerHTML.split(/\n/).length;
17
        for (var number = 0; number < linesNum; number++) {
18
            var lineNumber = pre[i].getElementsByTagName('span')[0];
19
            lineNumber.innerHTML += '<span>' + (number + 1) + '</span>';
20
        }
21
    }
22
})();