Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2018-03-14 14:30:22 +00:00 committed by StyleCI Bot
parent 1f07833322
commit 63823fc3cc
3 changed files with 5 additions and 1 deletions

View File

@ -162,6 +162,7 @@ class API extends APIFactory
}
Logger::log(\danog\MadelineProto\Lang::$current_lang['serializing_madelineproto']);
$this->serialized = time();
return Serialization::serialize($params, $this);
}
}

View File

@ -19,6 +19,7 @@ namespace danog\MadelineProto\MTProtoTools;
trait CallHandler
{
public $wrapper;
public function method_call($method, $args = [], $aargs = ['message_id' => null, 'heavy' => false])
{
if (!is_array($args)) {

View File

@ -725,7 +725,9 @@ trait PeerHandler
$this->qres = [];
$this->last_stored = time() + 10;
} catch (\danog\MadelineProto\Exception $e) {
if (file_exists($path)) unlink($path);
if (file_exists($path)) {
unlink($path);
}
\danog\MadelineProto\Logger::log('======= COULD NOT STORE IN DB DUE TO '.$e->getMessage().' =============', \danog\MadelineProto\Logger::VERBOSE);
}
}