- header ("Content-Type: application/json");
- echo json_encode(array('uid' => local_user(),
- 'enable' => $enable,
- 'device_url' => $device_url,
- 'senditemtext' => $senditemtext,
- 'lastpushid' => $lastpushid,
- 'counterunseen' => $counterunseen,
- 'addonversion' => $addonversion));
+ header("Content-Type: application/json");
+ echo json_encode(['uid' => local_user(),
+ 'enable' => $enable,
+ 'device_url' => $device_url,
+ 'senditemtext' => $senditemtext,
+ 'lastpushid' => $lastpushid,
+ 'counterunseen' => $counterunseen,
+ 'addonversion' => $addonversion]);