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.
Completed
Push — master ( 793fc0...3416fd )
by Benjamin
02:11
created

src/util/prefix.js   A

Complexity

Total Complexity 5
Complexity/F 1.67

Size

Lines of Code 15
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A prefix.js ➔ ??? 0 13 1
1
import { gridConfig } from '../constants/GridConstants';
2
3
export const prefix = (...classes) => {
4
5
    const { CSS_PREFIX } = gridConfig();
6
7
    return Array.from(classes).map((cls) => {
8
9
        if (!cls || cls.length === 0) {
10
            return null;
11
        }
12
13
        return `${CSS_PREFIX}-${cls}`;
14
    }).filter(cls => cls).join(' ');
15
};
16