Apply fixes from StyleCI
This commit is contained in:
parent
4121a3f017
commit
d5758e1855
@ -311,7 +311,6 @@ if (!extension_loaded('pthreads')) {
|
||||
$buffer = substr($buffer, 0, $length);
|
||||
}
|
||||
|
||||
|
||||
$try = 0;
|
||||
$wrote = socket_write($this->sock, $buffer, $length);
|
||||
while ($wrote < $length) {
|
||||
|
@ -32,6 +32,7 @@ abstract class CombinedEventHandler
|
||||
foreach ($this->CombinedAPI->instance_paths as $path) {
|
||||
unset($keys[$path]);
|
||||
}
|
||||
|
||||
return array_keys($keys);
|
||||
}
|
||||
|
||||
|
@ -347,6 +347,7 @@ trait ResponseHandler
|
||||
if ($server_answer['error_message'] === 'MSG_WAIT_FAILED') {
|
||||
throw new \danog\MadelineProto\RPCErrorException($server_answer['error_message'], $server_answer['error_code']);
|
||||
}
|
||||
|
||||
throw new \danog\MadelineProto\Exception('Re-executing query after server error...');
|
||||
case 303:
|
||||
$this->datacenter->curdc = $aargs['datacenter'] = (int) preg_replace('/[^0-9]+/', '', $server_answer['error_message']);
|
||||
|
Loading…
Reference in New Issue
Block a user