| 1 | <?php |
||
| 17 | final class Curl implements AdapterInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Sends a message over the transport. |
||
| 21 | * |
||
| 22 | * @param SendData $data The data that should be send in the request. |
||
| 23 | * @return bool Returns true when the call succeeded; false otherwise. |
||
| 24 | */ |
||
| 25 | public function send(SendData $data): bool |
||
| 46 | } |
||
| 47 |
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.