From 1c9f43c8528adf6eea43f36be5af2969975a48a1 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 29 Aug 2017 15:00:47 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/danog/MadelineProto/API.php | 1 + tests/testing.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/API.php b/src/danog/MadelineProto/API.php index 86478c8e..464992b1 100644 --- a/src/danog/MadelineProto/API.php +++ b/src/danog/MadelineProto/API.php @@ -96,6 +96,7 @@ class API extends APIFactory public function serialize($filename) { Logger::log(['Serializing MadelineProto...']); + return Serialization::serialize($filename, $this); } } diff --git a/tests/testing.php b/tests/testing.php index 85476bb6..e2f0f7c8 100755 --- a/tests/testing.php +++ b/tests/testing.php @@ -73,7 +73,6 @@ if ($MadelineProto === false) { \danog\MadelineProto\Logger::log(['Registering new user'], \danog\MadelineProto\Logger::NOTICE); $authorization = $MadelineProto->complete_signup(readline('Please enter your first name: '), readline('Please enter your last name (can be empty): ')); } - } else { $MadelineProto->bot_login(getenv('BOT_TOKEN')); }