Conditions | 4 |
Paths | 3 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
41 | protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) |
||
42 | { |
||
43 | if (204 === $status) { |
||
44 | return null; |
||
45 | } |
||
46 | if (404 === $status && mb_strpos($contentType, 'application/json') !== false) { |
||
|
|||
47 | throw new \Starweb\Api\Generated\Exception\DeleteProductUnitNotFoundException($serializer->deserialize($body, 'Starweb\\Api\\Generated\\Model\\ErrorModel', 'json')); |
||
48 | } |
||
50 | } |