Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2018-08-02 12:12:44 +00:00 committed by StyleCI Bot
parent 4121a3f017
commit d5758e1855
3 changed files with 2 additions and 1 deletions

View File

@ -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) {

View File

@ -32,6 +32,7 @@ abstract class CombinedEventHandler
foreach ($this->CombinedAPI->instance_paths as $path) {
unset($keys[$path]);
}
return array_keys($keys);
}

View File

@ -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']);