Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public static function add_entry($keywordString, $URL = "") |
||
20 | { |
||
21 | if ($member = Member::currentUser()) { |
||
22 | if ($member->IsShopAdmin()) { |
||
23 | return -1; |
||
24 | } |
||
25 | } |
||
26 | $obj = new GoogleCustomSearchPage_Record(); |
||
27 | $obj->Title = $keywordString; |
||
28 | $obj->URL = $URL; |
||
29 | return $obj->write(); |
||
30 | } |
||
31 | |||
73 |
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.