From 90810ecda1ffd6a3b0d270827b3415760e7b21e4 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 5 Apr 2017 11:20:26 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/danog/MadelineProto/TL/TL.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/TL/TL.php b/src/danog/MadelineProto/TL/TL.php index 4fd7fee6..49d6f1a1 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -576,7 +576,9 @@ trait TL if ($x['_'] === 'rpc_result' && $arg['name'] === 'result' && isset($this->datacenter->sockets[$type['datacenter']]->new_outgoing[$x['req_msg_id']]['type']) && stripos($this->datacenter->sockets[$type['datacenter']]->new_outgoing[$x['req_msg_id']]['type'], '<') !== false) { $arg['subtype'] = preg_replace(['|Vector[<]|', '|[>]|'], '', $this->datacenter->sockets[$type['datacenter']]->new_outgoing[$x['req_msg_id']]['type']); } - if (isset($type['datacenter'])) $arg['datacenter'] = $type['datacenter']; + if (isset($type['datacenter'])) { + $arg['datacenter'] = $type['datacenter']; + } $x[$arg['name']] = $this->deserialize($bytes_io, $arg); if ($arg['name'] === 'random_bytes') { if (strlen($x[$arg['name']]) < 15) {