Passed
Push — master ( 74fcec...dc846b )
by
unknown
02:16
created

server/src/Domain/Contact/Specification/IsContactEmpty.ts   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 10
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 7
mnd 0
bc 0
fnc 2
dl 0
loc 10
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A IsContactEmpty.isSatisfiedBy 0 6 1
1
export class IsContactEmpty {
2
  public isSatisfiedBy(
3
    firstName?: string,
4
    lastName?: string,
5
    company?: string
6
  ): boolean {
7
    return !firstName && !lastName && !company;
8
  }
9
}
10