| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 3 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 49 | public function createResponse(Request $request, $data)  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 50 |     { | 
            ||
| 51 | $headers = ['Content-Type' => 'application/json'];  | 
            ||
| 52 | |||
| 53 |         if ($data === null) { | 
            ||
| 54 |             return new Response('', 204, $headers); | 
            ||
| 55 | }  | 
            ||
| 56 | $data = $this->serializer->serialize($data, 'json');  | 
            ||
| 57 | |||
| 58 | return new Response($data, 200, $headers);  | 
            ||
| 59 | }  | 
            ||
| 60 | }  | 
            ||
| 61 | 
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.