| 1 | <?php  | 
            ||
| 19 | class WebServerFactory  | 
            ||
| 20 | { | 
            ||
| 21 | /**  | 
            ||
| 22 | * Create a WebServerInterface Object.  | 
            ||
| 23 | *  | 
            ||
| 24 | * @param string $name a web server software name  | 
            ||
| 25 | * @param string $version a web server software version  | 
            ||
| 26 | *  | 
            ||
| 27 | * @return WebServerInterface a WebServer Object  | 
            ||
| 28 | */  | 
            ||
| 29 | 3 | public function create($name, $version)  | 
            |
| 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.