Completed
Push — master ( 8b9cfc...42b0f8 )
by wiese
319:40 queued 254:38
created

skins/cat17/src/app/lib/state_aggregation/membership/all_validation_sections_are_valid.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 16
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A module.exports 0 14 1
1
'use strict';
2
3
module.exports = function ( state ) {
4
	return (
5
		(
6
			( state.membershipFormContent.addressType === 'person' && state.membershipFormContent.membershipType !== null ) ||
7
			( state.membershipFormContent.addressType === 'firma' && state.membershipFormContent.membershipType === 'sustaining' )
8
		) &&
9
		state.validity.paymentData === true &&
10
		state.validity.address === true &&
11
		(
12
			( state.membershipFormContent.paymentType === 'BEZ' && state.validity.bankData === true ) ||
13
			( state.membershipFormContent.paymentType !== 'BEZ' && state.validity.bankData !== false )
14
		)
15
	);
16
};
17