Apply fixes from StyleCI
This commit is contained in:
parent
0610e33631
commit
29c0542d80
@ -138,7 +138,7 @@ class APIFactory
|
||||
$deserialized = method_exists($this->API, $this->namespace.$name) ? $this->API->{$this->namespace.$name}(...$arguments) : $this->API->method_call($this->namespace.$name, (isset($arguments[0]) && $this->is_array($arguments[0])) ? $arguments[0] : [], $aargs);
|
||||
array_walk_recursive($deserialized, function (&$value, $key) {
|
||||
if (is_object($value)) {
|
||||
$newval = [];
|
||||
$newval = [];
|
||||
foreach (get_class_methods($value) as $key => $name) {
|
||||
$newval[$key] = [$value, $name];
|
||||
}
|
||||
@ -148,6 +148,7 @@ class APIFactory
|
||||
$value = $newval;
|
||||
}
|
||||
});
|
||||
|
||||
return $deserialized;
|
||||
} catch (\danog\MadelineProto\Exception $e) {
|
||||
return ['error_code' => $e->getCode(), 'error' => $e->getMessage()];
|
||||
|
@ -62,7 +62,6 @@ class Lua
|
||||
foreach ($this->MadelineProto->get_methods_namespaced() as $method => $namespace) {
|
||||
$this->MadelineProto->{$namespace}->lua = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function tdcli_function($params, $cb = null, $cb_extra = null)
|
||||
|
Loading…
Reference in New Issue
Block a user