From 55e390549580ef7dbf1428a48282b03f17ea8089 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 13 Oct 2016 21:22:32 +0000 Subject: [PATCH] Applied fixes from StyleCI --- src/danog/MadelineProto/Logging.php | 2 +- src/danog/MadelineProto/TL/TL.php | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/danog/MadelineProto/Logging.php b/src/danog/MadelineProto/Logging.php index faa0adc3..4866c3f0 100644 --- a/src/danog/MadelineProto/Logging.php +++ b/src/danog/MadelineProto/Logging.php @@ -64,7 +64,7 @@ class Logging if (!is_string($param)) { $param = var_export($param, true); } - $param = str_pad(basename(debug_backtrace()[0]['file'], '.php').': ', 16).(($mode == 3) ? "\t" : "").$param; + $param = str_pad(basename(debug_backtrace()[0]['file'], '.php').': ', 16).(($mode == 3) ? "\t" : '').$param; switch ($mode) { case '1': error_log($param); diff --git a/src/danog/MadelineProto/TL/TL.php b/src/danog/MadelineProto/TL/TL.php index c857fb99..ee3c2a79 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -58,7 +58,9 @@ class TL return $bytes_io; } - public function get_named_method_args($type_, $kwargs) { + + public function get_named_method_args($type_, $kwargs) + { if (isset($this->method_name[$type_])) { $tl_method = $this->method_name[$type_]; } else { @@ -73,8 +75,10 @@ class TL } $kwargs = $newargs; } + return $kwargs; } + public function serialize_method($type_, $kwargs) { $bytes_io = '';