Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-05-28 02:34:25 +00:00 committed by StyleCI Bot
parent 841b95f54e
commit 63af4f6549
2 changed files with 4 additions and 3 deletions

View File

@ -151,7 +151,6 @@ class MTProto extends \Volatile
];
const TD_IGNORE = ['updateMessageID'];
public $settings = [];
private $config = ['expires' => -1];
public $authorization = null;
@ -288,7 +287,9 @@ class MTProto extends \Volatile
}
unset($this->data);
}
if ($this->authorized === true) $this->authorized = self::LOGGED_IN;
if ($this->authorized === true) {
$this->authorized = self::LOGGED_IN;
}
$this->getting_state = false;
$this->reset_session();
if (!isset($this->v) || $this->v !== $this->getV()) {
@ -702,6 +703,7 @@ class MTProto extends \Volatile
{
return $this->authorization['user'];
}
const ALL_MIMES = [
'png' => [
0 => 'image/png',

View File

@ -19,7 +19,6 @@ namespace danog\MadelineProto\TL\Conversion;
*/
trait Extension
{
public function get_extension_from_mime($mime)
{
foreach (self::ALL_MIMES as $key => $value) {