| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 10 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 17 | public function testRpcRequestHandling()  | 
            ||
| 18 |     { | 
            ||
| 19 |         $request = $this->getRequestMock('test', ['param1' => 'value1']); | 
            ||
| 20 | $client = new JsonRpcClient($this->getClient(), new Uri(), $this->getStaticIdGenerator(self::REQUEST_ID));  | 
            ||
| 21 | |||
| 22 | $this->pushResult((object)['success' => true], self::REQUEST_ID);  | 
            ||
| 23 | |||
| 24 | $collection = $client->invoke($request);  | 
            ||
| 25 | $response = $collection->getResponse($request);  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 26 | }  | 
            ||
| 27 | |||
| 36 | 
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVarassignment in line 1 and the$higherassignment in line 2 are dead. The first because$myVaris never used and the second because$higheris always overwritten for every possible time line.