| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | public function updateGetList($list) |
||
|
|
|||
| 6 | { |
||
| 7 | $distributor = 0; |
||
| 8 | $member = Member::currentUser(); |
||
| 9 | if ($member) { |
||
| 10 | $distributorID = $member->DistributorID; |
||
| 11 | } |
||
| 12 | if ($distributorID) { |
||
| 13 | $list = $list->filter(array('DistributorID' => $distributorID)); |
||
| 14 | return $list; |
||
| 15 | } |
||
| 16 | return null; |
||
| 17 | } |
||
| 18 | } |
||
| 19 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.