Passed
Pull Request — master (#23)
by Ronan
05:57 queued 10s
created

resources/js/components/_app.debug.js   A

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 18
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 10
c 0
b 0
f 0
dl 0
loc 18
rs 10
mnd 1
bc 1
fnc 2
bpm 0.5
cpm 1.5
noi 0
1
/** global: App **/
2
var App = App || {};
3
4
App.Debug = {
5
6
    defaults: {
7
        enabled: false,
8
    },
9
    options: {},
10
11
    init: function (options) {
12
        this.options = $.extend({}, this.defaults, options);
13
    },
14
    log: function () {
15
        if (this.options.enabled && !!console.log) {
16
            console.log.apply(null, arguments);
17
        }
18
    }
19
}
20