| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | public function getPayload() |
||
| 50 | { |
||
| 51 | if(!isset($this->deviceUid)) |
||
| 52 | { |
||
| 53 | $this->setDeviceUid($this->generateDeviceUid()); |
||
| 54 | } |
||
| 55 | |||
| 56 | return array( |
||
| 57 | "location" => $this->getLocation()->toArray(), |
||
| 58 | "client_id" => self::CLIENTID, |
||
| 59 | "device_uid" => $this->getDeviceUid(), |
||
| 60 | ); |
||
| 61 | } |
||
| 62 | public function getMethod() |
||
| 67 |
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.