| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function getLocation($location_id) |
||
| 26 | { |
||
| 27 | $query = $this->db->query(" |
||
| 28 | SELECT location_id, |
||
| 29 | name, |
||
| 30 | address, |
||
| 31 | geocode, |
||
| 32 | telephone, |
||
| 33 | fax, |
||
| 34 | image, |
||
| 35 | open, |
||
| 36 | comment |
||
| 37 | FROM location |
||
| 38 | WHERE location_id = '" . (int)$location_id . "' |
||
| 39 | "); |
||
| 40 | |||
| 41 | return $query->row; |
||
| 42 | } |
||
| 44 |
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.