-function ping_format_xml_data($data, $sysnotify, $notifs, $sysmsgs, $sysmsgs_info, $groups_unseen, $forums_unseen) {
- $notifications = array();
- foreach($notifs as $key => $n) {
- $notifications[$key . ":note"] = $n['message'];
-
- $notifications[$key . ":@attributes"] = array(
- "id" => $n["id"],
- "href" => $n['href'],
- "name" => $n['name'],
- "url" => $n['url'],
- "photo" => $n['photo'],
- "date" => $n['date'],
- "seen" => $n['seen'],
- "timestamp" => $n['timestamp']
- );
+function ping_format_xml_data($data, $sysnotify, $notifs, $sysmsgs, $sysmsgs_info, $groups_unseen, $forums_unseen)
+{
+ $notifications = [];
+ foreach ($notifs as $key => $notif) {
+ $notifications[$key . ':note'] = $notif['message'];
+
+ $notifications[$key . ':@attributes'] = [
+ 'id' => $notif['id'],
+ 'href' => $notif['href'],
+ 'name' => $notif['name'],
+ 'url' => $notif['url'],
+ 'photo' => $notif['photo'],
+ 'date' => $notif['date'],
+ 'seen' => $notif['seen'],
+ 'timestamp' => $notif['timestamp']
+ ];