Replace q() with DBA methods, fix code style

- Remove unused variables
- Fix doc block
- Fix indentation
This commit is contained in:
Hypolite Petovan 2018-12-30 01:08:51 -05:00
parent d838e6d0ec
commit 5abc22f6c5
3 changed files with 74 additions and 75 deletions

View file

@ -64,14 +64,7 @@ function ping_init(App $a)
$format = 'json';
}
$tags = [];
$comments = [];
$likes = [];
$dislikes = [];
$friends = [];
$posts = [];
$regs = [];
$mails = [];
$notifications = [];
$intro_count = 0;
@ -427,8 +420,6 @@ function ping_get_notifications($uid)
$order = "DESC";
$quit = false;
$a = get_app();
do {
$r = q(
"SELECT `notify`.*, `item`.`visible`, `item`.`deleted`
@ -505,8 +496,8 @@ function ping_get_notifications($uid)
* @param array $notifs Complete list of notification
* @param array $sysmsgs List of system notice messages
* @param array $sysmsgs_info List of system info messages
* @param int $groups_unseen Number of unseen group items
* @param int $forums_unseen Number of unseen forum items
* @param array $groups_unseen List of unseen group messages
* @param array $forums_unseen List of unseen forum messages
*
* @return array XML-transform ready data array
*/