| Conditions | 4 |
| Paths | 8 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function addToEEList($uid, $eeListIndex) |
||
| 32 | { |
||
| 33 | if(!isset($this->dbData['eeLists'])) |
||
| 34 | { |
||
| 35 | $this->dbData['eeLists'] = array(); |
||
| 36 | } |
||
| 37 | if(!isset($this->dbData['eeLists'][$eeListIndex])) |
||
| 38 | { |
||
| 39 | $this->dbData['eeLists'][$eeListIndex] = array(); |
||
| 40 | } |
||
| 41 | $eeList = $this->dbData['eeLists'][$eeListIndex]; |
||
|
|
|||
| 42 | if(!isset($this->dbData['eeLists'][$eeListIndex][$uid])) |
||
| 43 | { |
||
| 44 | $this->dbData['eeLists'][$eeListIndex][$uid] = array('AAR'=>false, 'AF'=>false, 'Lead'=>false); |
||
| 45 | $dt = $this->getDataTable(); |
||
| 46 | $filter = $this->getDataFilter(); |
||
| 47 | return $dt->update($filter, $this->dbData); |
||
| 48 | } |
||
| 49 | return true; |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
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.