src/help/fixOptions.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 11
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
nc 1
dl 0
loc 11
rs 10
c 0
b 0
f 0
noi 0
wmc 1
mnd 0
bc 1
fnc 1
bpm 1
cpm 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A fixOptions.js ➔ fixOptions 0 9 1
1
export default fixOptions;
2
3
function fixOptions(options){
4
	// Fix the margins
5
	options.marginTop = options.marginTop || options.margin;
6
	options.marginBottom = options.marginBottom || options.margin;
7
	options.marginRight = options.marginRight || options.margin;
8
	options.marginLeft = options.marginLeft || options.margin;
9
10
	return options;
11
}
12