web/js/facebook-sdk.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 7
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
eloc 7
c 1
b 0
f 0
nc 1
dl 0
loc 7
rs 10
wmc 2
mnd 1
bc 2
fnc 1
bpm 2
cpm 2
noi 1
1
(function(d, s, id){
2
    var js, fjs = d.getElementsByTagName(s)[0];
3
    if (d.getElementById(id)) {return;}
4
    js = d.createElement(s); js.id = id;
5
    js.src = "https://connect.facebook.net/"+lang+"/all.js";
0 ignored issues
show
Bug introduced by
The variable lang seems to be never declared. If this is a global, consider adding a /** global: lang */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
6
    fjs.parentNode.insertBefore(js, fjs);
7
}(document, 'script', 'facebook-jssdk'));