1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 09:14:39 +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)
{
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':