Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-07-27 07:06:20 +00:00 committed by StyleCI Bot
parent 0610e33631
commit 29c0542d80
2 changed files with 2 additions and 2 deletions

View File

@ -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()];

View File

@ -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)