| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | 18 | private function concreteValidate($received): bool |
|
| 55 | { |
||
| 56 | 18 | if ($received === null) { |
|
| 57 | 2 | $this->message = "Received value is null"; |
|
| 58 | 2 | return true; |
|
| 59 | } |
||
| 60 | |||
| 61 | 16 | if (\strlen((string) $received) === 0) { |
|
| 62 | 5 | $this->message = "Received value is a void string"; |
|
| 63 | 5 | return true; |
|
| 64 | } |
||
| 65 | |||
| 66 | 11 | return false; |
|
| 67 | } |
||
| 79 |