Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
57 | 17 | private function concreteValidate($received): bool |
|
58 | { |
||
59 | 17 | if ($received === null) { |
|
60 | 1 | $this->message = "Received value is null"; |
|
61 | 1 | return true; |
|
62 | } |
||
63 | |||
64 | 16 | if (!strlen((string)$received)) { |
|
65 | 4 | $this->message = "Received value is a void string"; |
|
66 | 4 | return true; |
|
67 | } |
||
68 | |||
69 | 12 | return false; |
|
70 | } |
||
82 |