1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 13:34:42 +01:00

Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-05-01 19:45:25 +00:00 committed by StyleCI Bot
parent 62b72f190e
commit 79f9a59295

View File

@ -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':