Apply fixes from StyleCI
This commit is contained in:
parent
841b95f54e
commit
63af4f6549
@ -151,7 +151,6 @@ class MTProto extends \Volatile
|
|||||||
];
|
];
|
||||||
const TD_IGNORE = ['updateMessageID'];
|
const TD_IGNORE = ['updateMessageID'];
|
||||||
|
|
||||||
|
|
||||||
public $settings = [];
|
public $settings = [];
|
||||||
private $config = ['expires' => -1];
|
private $config = ['expires' => -1];
|
||||||
public $authorization = null;
|
public $authorization = null;
|
||||||
@ -288,7 +287,9 @@ class MTProto extends \Volatile
|
|||||||
}
|
}
|
||||||
unset($this->data);
|
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->getting_state = false;
|
||||||
$this->reset_session();
|
$this->reset_session();
|
||||||
if (!isset($this->v) || $this->v !== $this->getV()) {
|
if (!isset($this->v) || $this->v !== $this->getV()) {
|
||||||
@ -702,6 +703,7 @@ class MTProto extends \Volatile
|
|||||||
{
|
{
|
||||||
return $this->authorization['user'];
|
return $this->authorization['user'];
|
||||||
}
|
}
|
||||||
|
|
||||||
const ALL_MIMES = [
|
const ALL_MIMES = [
|
||||||
'png' => [
|
'png' => [
|
||||||
0 => 'image/png',
|
0 => 'image/png',
|
||||||
|
@ -19,7 +19,6 @@ namespace danog\MadelineProto\TL\Conversion;
|
|||||||
*/
|
*/
|
||||||
trait Extension
|
trait Extension
|
||||||
{
|
{
|
||||||
|
|
||||||
public function get_extension_from_mime($mime)
|
public function get_extension_from_mime($mime)
|
||||||
{
|
{
|
||||||
foreach (self::ALL_MIMES as $key => $value) {
|
foreach (self::ALL_MIMES as $key => $value) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user