Apply fixes from StyleCI
This commit is contained in:
parent
62b72f190e
commit
79f9a59295
@ -24,7 +24,9 @@ trait PeerHandler
|
||||
public function add_users($users)
|
||||
{
|
||||
foreach ($users as $key => $user) {
|
||||
if (!isset($user['access_hash'])) continue;
|
||||
if (!isset($user['access_hash'])) {
|
||||
continue;
|
||||
}
|
||||
switch ($user['_']) {
|
||||
case 'user':
|
||||
if (!isset($this->chats[$user['id']]) || $this->chats[$user['id']] !== $user) {
|
||||
@ -50,7 +52,9 @@ trait PeerHandler
|
||||
public function add_chats($chats)
|
||||
{
|
||||
foreach ($chats as $key => $chat) {
|
||||
if (!isset($chat['access_hash'])) continue;
|
||||
if (!isset($chat['access_hash'])) {
|
||||
continue;
|
||||
}
|
||||
switch ($chat['_']) {
|
||||
case 'chat':
|
||||
case 'chatEmpty':
|
||||
|
Loading…
Reference in New Issue
Block a user