Apply fixes from StyleCI
This commit is contained in:
parent
1f07833322
commit
63823fc3cc
@ -162,6 +162,7 @@ class API extends APIFactory
|
|||||||
}
|
}
|
||||||
Logger::log(\danog\MadelineProto\Lang::$current_lang['serializing_madelineproto']);
|
Logger::log(\danog\MadelineProto\Lang::$current_lang['serializing_madelineproto']);
|
||||||
$this->serialized = time();
|
$this->serialized = time();
|
||||||
|
|
||||||
return Serialization::serialize($params, $this);
|
return Serialization::serialize($params, $this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,7 @@ namespace danog\MadelineProto\MTProtoTools;
|
|||||||
trait CallHandler
|
trait CallHandler
|
||||||
{
|
{
|
||||||
public $wrapper;
|
public $wrapper;
|
||||||
|
|
||||||
public function method_call($method, $args = [], $aargs = ['message_id' => null, 'heavy' => false])
|
public function method_call($method, $args = [], $aargs = ['message_id' => null, 'heavy' => false])
|
||||||
{
|
{
|
||||||
if (!is_array($args)) {
|
if (!is_array($args)) {
|
||||||
|
@ -725,7 +725,9 @@ trait PeerHandler
|
|||||||
$this->qres = [];
|
$this->qres = [];
|
||||||
$this->last_stored = time() + 10;
|
$this->last_stored = time() + 10;
|
||||||
} catch (\danog\MadelineProto\Exception $e) {
|
} 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);
|
\danog\MadelineProto\Logger::log('======= COULD NOT STORE IN DB DUE TO '.$e->getMessage().' =============', \danog\MadelineProto\Logger::VERBOSE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user