Apply fixes from StyleCI
This commit is contained in:
parent
2cb942b407
commit
983d70a402
@ -68,6 +68,7 @@ class API extends APIFactory
|
|||||||
$this->API = $unserialized->API;
|
$this->API = $unserialized->API;
|
||||||
$this->APIFactory();
|
$this->APIFactory();
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$this->API = new MTProto($params);
|
$this->API = new MTProto($params);
|
||||||
|
@ -99,7 +99,10 @@ class Serialization
|
|||||||
if ($unserialized === false) {
|
if ($unserialized === false) {
|
||||||
throw new Exception(\danog\MadelineProto\Lang::$current_lang['deserialization_error']);
|
throw new Exception(\danog\MadelineProto\Lang::$current_lang['deserialization_error']);
|
||||||
}
|
}
|
||||||
if ($unserialized instanceof \danog\MadelineProto\API) $unserialized->session = $filename;
|
if ($unserialized instanceof \danog\MadelineProto\API) {
|
||||||
|
$unserialized->session = $filename;
|
||||||
|
}
|
||||||
|
|
||||||
return $unserialized;
|
return $unserialized;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user