Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
36 | 4 | private static function fromArray(array $invalidData, ?Throwable $prev = null): self |
|
37 | { |
||
38 | 4 | return new self( |
|
39 | 4 | sprintf( |
|
40 | 4 | 'Provided data is not valid. These are the messages:%s%s%s', |
|
41 | 4 | PHP_EOL, |
|
42 | 4 | self::formMessagesToString($invalidData), |
|
43 | 4 | PHP_EOL |
|
44 | ), |
||
45 | $invalidData, |
||
46 | 4 | -1, |
|
47 | $prev |
||
48 | ); |
||
67 |