Apply fixes from StyleCI
This commit is contained in:
parent
9ebda4231d
commit
af0ea88978
@ -97,6 +97,7 @@ class API extends APIFactory
|
||||
public function serialize($filename)
|
||||
{
|
||||
Logger::log([\danog\MadelineProto\Lang::$current_lang['serializing_madelineproto']]);
|
||||
|
||||
return Serialization::serialize($filename, $this);
|
||||
}
|
||||
}
|
||||
|
@ -138,6 +138,7 @@ class APIFactory
|
||||
if ($this->lua === false) {
|
||||
return method_exists($this->API, $this->namespace.$name) ? $this->API->{$this->namespace.$name}(...$arguments) : $this->API->method_call($this->namespace.$name, (isset($arguments[0]) && is_array($arguments[0])) ? $arguments[0] : [], $aargs);
|
||||
}
|
||||
|
||||
try {
|
||||
$deserialized = method_exists($this->API, $this->namespace.$name) ? $this->API->{$this->namespace.$name}(...$arguments) : $this->API->method_call($this->namespace.$name, (isset($arguments[0]) && is_array($arguments[0])) ? $arguments[0] : [], $aargs);
|
||||
Lua::convert_objects($deserialized);
|
||||
|
Loading…
Reference in New Issue
Block a user