Completed
Push — master ( 3b8b0c...578b04 )
by Michael
02:39
created

script/plugins/Menu/MenuItems/AbstractMenuItemDispatcher.js   A

Complexity

Total Complexity 3
Complexity/F 1.5

Size

Lines of Code 12
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
eloc 6
c 0
b 0
f 0
nc 1
dl 0
loc 12
rs 10
wmc 3
mnd 0
bc 2
fnc 2
bpm 1
cpm 1.5
noi 2

2 Functions

Rating   Name   Duplication   Size   Complexity  
A AbstractMenuItemDispatcher.js ➔ isAvailable 0 3 1
A AbstractMenuItemDispatcher.js ➔ getMenuItem 0 3 1
1
class AbstractMenuItemDispatcher {
2
    static isAvailable(schema) { // eslint-disable-line no-unused-vars
0 ignored issues
show
Unused Code introduced by
The parameter schema is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
3
        throw new Error('isAvailable is not implemented!');
4
    }
5
6
7
    static getMenuItem(schema) { // eslint-disable-line no-unused-vars
0 ignored issues
show
Unused Code introduced by
The parameter schema is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
8
        throw new Error('getMenuItem is not implemented!');
9
    }
10
}
11
12
export default AbstractMenuItemDispatcher;
13