Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 11 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
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 |