From 13277cb01506b1c895ef2758e5a5bd2264fda27d Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 31 May 2017 10:15:10 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/danog/MadelineProto/MTProto.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index cd55a4a9..8975ce22 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -713,7 +713,10 @@ class MTProto extends \Volatile public function get_self() { - if ($this->authorization === null) $this->authorization = ['user' => $this->method_call('users.getUsers', ['id' => [['_' => 'inputUserSelf']]], ['datacenter' => $this->datacenter->curdc])[0]]; + if ($this->authorization === null) { + $this->authorization = ['user' => $this->method_call('users.getUsers', ['id' => [['_' => 'inputUserSelf']]], ['datacenter' => $this->datacenter->curdc])[0]]; + } + return $this->authorization['user']; }