mirror of
https://github.com/friendica/friendica
synced 2024-12-23 00:40:15 +00:00
Coding styles / "require_once" for removed file removed
This commit is contained in:
parent
af18e2f2a9
commit
7c15d0160a
7 changed files with 13 additions and 17 deletions
|
@ -63,14 +63,12 @@ class Show extends BaseApi
|
|||
$user_element = 'users';
|
||||
$k = 0;
|
||||
foreach ($members as $member) {
|
||||
$user = DI::twitterUser()->createFromContactId($member['contact-id'], $uid, true)->toArray();
|
||||
$users[$k++.':user'] = $user;
|
||||
$users[$k++.':user'] = DI::twitterUser()->createFromContactId($member['contact-id'], $uid, true)->toArray();
|
||||
}
|
||||
} else {
|
||||
$user_element = 'user';
|
||||
foreach ($members as $member) {
|
||||
$user = DI::twitterUser()->createFromContactId($member['contact-id'], $uid, true)->toArray();
|
||||
$users[] = $user;
|
||||
$users[] = DI::twitterUser()->createFromContactId($member['contact-id'], $uid, true)->toArray();
|
||||
}
|
||||
}
|
||||
$grps[] = ['name' => $rr['name'], 'gid' => $rr['id'], $user_element => $users];
|
||||
|
|
|
@ -57,7 +57,7 @@ class UpdateProfileImage extends BaseApi
|
|||
}
|
||||
|
||||
// output for client
|
||||
$skip_status = $request['skip_status'] ?? false;
|
||||
$skip_status = filter_var($request['skip_status'] ?? false, FILTER_VALIDATE_BOOLEAN);
|
||||
|
||||
$user_info = DI::twitterUser()->createFromUserId($uid, $skip_status)->toArray();
|
||||
|
||||
|
|
|
@ -32,8 +32,6 @@ use Friendica\Util\Arrays;
|
|||
use Friendica\Util\DateTimeFormat;
|
||||
use Monolog\Handler\TestHandler;
|
||||
|
||||
require_once __DIR__ . '/../../include/api.php';
|
||||
|
||||
/**
|
||||
* Tests for the API functions.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue