| Conditions | 2 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function __construct() |
||
| 21 | { |
||
| 22 | // PHP Version |
||
| 23 | $this->addRequirement( |
||
| 24 | version_compare(PHP_VERSION, '5.3.7', '>='), |
||
| 25 | 'Your PHP must be greater than 5.3.7 ('.PHP_VERSION.' installed)' |
||
| 26 | ); |
||
| 27 | |||
| 28 | // Git command |
||
| 29 | list($gitInstalled, $gitVersion) = $this->findGit(); |
||
| 30 | $this->addRequirement( |
||
| 31 | $gitInstalled && version_compare($gitVersion, '1.7', '>='), |
||
| 32 | 'Your git must be greater than 1.7 ('.$gitVersion.' installed)' |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | |||
| 57 |
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.