@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | unset($data['raw_data']); |
37 | 37 | $data['raw_data'] = $data; |
38 | 38 | |
39 | - $is_ok = isset($data['ok']) ? (bool)$data['ok'] : false; |
|
39 | + $is_ok = isset($data['ok']) ? (bool) $data['ok'] : false; |
|
40 | 40 | $result = isset($data['result']) ? $data['result'] : null; |
41 | 41 | |
42 | 42 | if ($is_ok && is_array($result)) { |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | public function isOk() |
73 | 73 | { |
74 | - return (bool)$this->getOk(); |
|
74 | + return (bool) $this->getOk(); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
@@ -100,11 +100,11 @@ discard block |
||
100 | 100 | |
101 | 101 | $result_object_types = [ |
102 | 102 | 'total_count' => 'UserProfilePhotos', //Response from getUserProfilePhotos |
103 | - 'file_id' => 'File', //Response from getFile |
|
104 | - 'title' => 'Chat', //Response from getChat |
|
105 | - 'username' => 'User', //Response from getMe |
|
106 | - 'user' => 'ChatMember', //Response from getChatMember |
|
107 | - 'url' => 'WebhookInfo', //Response from getWebhookInfo |
|
103 | + 'file_id' => 'File', //Response from getFile |
|
104 | + 'title' => 'Chat', //Response from getChat |
|
105 | + 'username' => 'User', //Response from getMe |
|
106 | + 'user' => 'ChatMember', //Response from getChatMember |
|
107 | + 'url' => 'WebhookInfo', //Response from getWebhookInfo |
|
108 | 108 | ]; |
109 | 109 | foreach ($result_object_types as $type => $object_class) { |
110 | 110 | if (isset($result[$type])) { |