Passed
Pull Request — master (#496)
by Andrew
04:37
created

web/js/facebook-sdk.js   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 6
c 1
b 0
f 0
nc 2
nop 3
dl 0
loc 7
rs 10
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'));