Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function deletealladvertisements($request) |
||
28 | { |
||
29 | DB::query("DELETE FROM \"Advertisement\""); |
||
30 | return sprintf( |
||
31 | _t("AdvertisementController.DELETEDALL", 'Deleted all %1$s from this website, please reload page to see results.'), |
||
32 | Config::inst()->get("Advertisement", "plural_name") |
||
33 | ); |
||
34 | } |
||
35 | } |
||
36 |
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.