| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | function getPayload() |
||
| 44 | { |
||
| 45 | if($this->version == 'v3') |
||
| 46 | { |
||
| 47 | $this->location = new Location(); |
||
| 48 | $this->location->setLat(52.520006); |
||
| 49 | $this->location->setLng(13.404954); |
||
| 50 | $this->location->setCityName('Berlin'); |
||
| 51 | |||
| 52 | |||
| 53 | return array( |
||
| 54 | "location" => $this->location->toArray(), |
||
| 55 | "stickies" => 'false', |
||
| 56 | ); |
||
| 57 | } |
||
| 58 | else |
||
| 59 | { |
||
| 60 | return array( |
||
| 61 | ); |
||
| 62 | } |
||
| 63 | } |
||
| 64 | function getMethod() |
||
| 69 |
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.