Conditions | 4 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
68 | 30 | private function validationComplete($input, &$value): bool |
|
69 | { |
||
70 | 30 | $inputString = (string)$input; |
|
71 | |||
72 | 30 | if ($this->isBetweenLength($inputString) && $this->passesRegex($inputString)) { |
|
73 | 25 | $value = is_scalar($input) ? $inputString : $input; |
|
|
|||
74 | |||
75 | 25 | return true; |
|
76 | } |
||
77 | |||
78 | 5 | return false; |
|
79 | } |
||
103 |