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.

Resources/public/js/dom-initializer.js   A
last analyzed

Complexity

Total Complexity 5
Complexity/F 1

Size

Lines of Code 26
Function Count 5

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

3 Functions

Rating   Name   Duplication   Size   Complexity  
A exports.domInitializer.initialize 0 5 1
A exports.domInitializer.register 0 5 1
A dom-initializer.js ➔ $ 0 3 1
1
(function ($, exports) {
2
    'use strict';
3
    var domInitializer = exports.domInitializer = {
4
        initializers: [],
5
6
        initialize: function (changesRoot) {
7
            $.each(this.initializers, function (i, initFn) {
8
                initFn(changesRoot);
9
            });
10
        },
11
12
        /**
13
         * @param {Function} initFn
14
         * @return domInitializer
15
         */
16
        register: function (initFn) {
17
            this.initializers.push(initFn);
18
19
            return this;
20
        }
21
    }
22
23
    $(function () {
24
        domInitializer.initialize(document.documentElement);
25
    });
26
})(jQuery, window);
27