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