Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
23 | class ModelLocalisationZone extends \Divine\Engine\Core\Model |
||
|
|||
24 | { |
||
25 | public function getZone($zone_id) |
||
26 | { |
||
27 | $query = $this->db->query(" |
||
28 | SELECT * |
||
29 | FROM zone |
||
30 | WHERE zone_id = '" . (int)$zone_id . "' |
||
31 | AND status = '1' |
||
32 | "); |
||
33 | |||
34 | return $query->row; |
||
35 | } |
||
36 | |||
37 | public function getZonesByCountryId($country_id) |
||
59 | } |
||
60 | } |
||
61 |
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.