| 1 | <?php |
||
| 11 | class QueryPredicate implements QueryExpression |
||
| 12 | { |
||
| 13 | /* @var string The kind of predicate (AND or OR) */ |
||
| 14 | private $type; |
||
| 15 | |||
| 16 | /* @var Array The list of subclauses that are combined by this predicate. */ |
||
| 17 | private $conditions; |
||
| 18 | |||
| 19 | 5 | public function __construct($type, QueryExpression $left, QueryExpression ...$others) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | 2 | public function getFlattenedConditions() |
|
| 54 | |||
| 55 | /** |
||
| 56 | * {@inheritdoc} |
||
| 57 | */ |
||
| 58 | 5 | public function __toString() |
|
| 81 | } |
||
| 82 |
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.