Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
30 | 1 | return new self(sprintf('Data is not parsable with content-type: "%s"', $contentType)); |
|
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param array $paths |
||
35 | * |
||
36 | * @return self |
||
37 | */ |
||
38 | 1 | public static function createNotAllowedAddtionalFields(array $paths): self |
|
39 | { |
||
40 | 1 | return new self(sprintf('There are additional field(s) at paths: "%s"', implode('", "', $paths))); |
|
41 | } |
||
43 |