Conditions | 7 |
Paths | 48 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 7 |
Changes | 0 |
1 | <?php |
||
22 | 3 | public function isWhiteListed(): bool |
|
23 | { |
||
24 | 3 | $usernameCheck = true; |
|
25 | 3 | $userIdCheck = true; |
|
26 | 3 | $userEmailCheck = true; |
|
27 | |||
28 | 3 | if ($this->isUsernameWhiteListed() === false) { |
|
29 | 2 | $usernameCheck = false; |
|
30 | } |
||
31 | |||
32 | 3 | if ($this->isUserIdWhiteListed() === false) { |
|
33 | 2 | $userIdCheck = false; |
|
34 | } |
||
35 | |||
36 | 3 | if ($this->isEmailWhiteListed() === false) { |
|
37 | 2 | $userEmailCheck = false; |
|
38 | } |
||
39 | |||
40 | 3 | return $usernameCheck === true && $userIdCheck === true && $userEmailCheck === true ? true : false; |
|
41 | } |
||
42 | |||
73 |