From b60ca2c7eec65e2a8465b419d23d3c3aa5909e5f Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 17 Feb 2017 21:36:32 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/danog/MadelineProto/TL/Extension.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/TL/Extension.php b/src/danog/MadelineProto/TL/Extension.php index 65c4583d..4ffe1437 100644 --- a/src/danog/MadelineProto/TL/Extension.php +++ b/src/danog/MadelineProto/TL/Extension.php @@ -419,7 +419,9 @@ trait Extension { $this->switch_dc($location['dc_id']); $res = $this->method_call('upload.getFile', ['location' => $location, 'offset' => 0, 'limit' => 1], ['heavy' => true]); - if (!isset($res['type']['_'])) return $default; + if (!isset($res['type']['_'])) { + return $default; + } switch ($res['type']['_']) { case 'storage.fileJpeg': return '.jpg'; case 'storage.fileGif': return '.gif';