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.
Passed
Branch master (c6c701)
by Petko
32:29 queued 29:18
created

Resources/public/js/petkopara-crud-generator.js   A

Complexity

Total Complexity 9
Complexity/F 4.5

Size

Lines of Code 35
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 9
c 1
b 0
f 0
dl 0
loc 35
rs 10
cc 0
nc 1
mnd 2
bc 10
fnc 2
bpm 5
cpm 4.5
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A petkopara-crud-generator.js ➔ bulkSubmitBtnManage 0 19 4
1
function toggleAll(source) {
2
    var aInputs = document.getElementsByTagName('input');
3
    for (var i = 0; i < aInputs.length; i++) {
4
        if (aInputs[i] != source && aInputs[i].className == source.className) {
5
            aInputs[i].checked = source.checked;
6
        }
7
    }
8
    if (source.checked) {
9
        document.getElementById('bulkSubmitBtn').disabled = false;
10
    } else {
11
        document.getElementById('bulkSubmitBtn').disabled = true;
12
13
    }
14
}
15
16
//Checks if at least one checkbox is selected.
17
function bulkSubmitBtnManage()
18
{
19
    var checkboxs = document.getElementsByClassName("check-all");
20
    var selected = false;
21
    for (var i = 0, l = checkboxs.length; i < l; i++)
22
    {
23
        if (checkboxs[i].checked)
24
        {
25
            selected = true;
26
            break;
27
        }
28
    }
29
    if (selected) {
30
        document.getElementById('bulkSubmitBtn').disabled = false;
31
    } else {
32
        document.getElementById('bulkSubmitBtn').disabled = true;
33
34
    }
35
}
36
37