Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | public function getBanner($banner_id) |
||
26 | { |
||
27 | $query = $this->db->query(" |
||
28 | SELECT * |
||
29 | FROM banner b |
||
30 | LEFT JOIN banner_image bi ON (b.banner_id = bi.banner_id) |
||
31 | WHERE b.banner_id = '" . (int)$banner_id . "' |
||
32 | AND b.status = '1' |
||
33 | AND bi.language_id = '" . (int)$this->config->get('config_language_id') . "' |
||
34 | ORDER BY bi.sort_order ASC |
||
35 | "); |
||
36 | return $query->rows; |
||
37 | } |
||
39 |
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.