Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
7 | public function getSource() |
||
8 | { |
||
9 | $members = UpdateNote::get()->column('UpdatedByID'); |
||
10 | $memberArray = Member::get()->filter(array("ID" => $members))->map()->toArray(); |
||
11 | foreach ($memberArray as $id => $title) { |
||
12 | if (! $title) { |
||
13 | unset($memberArray[$id]); |
||
14 | } |
||
15 | } |
||
16 | return array(''=> _t('UpdateNoteSearchField.ANYONE', '- Anyone -')) + $memberArray; |
||
17 | } |
||
18 | } |
||
19 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.