Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2018-03-01 23:39:37 +00:00 committed by StyleCI Bot
parent e82f6fd0ba
commit ab0e0f06dd

View File

@ -185,7 +185,9 @@ trait CallHandler
} catch (\danog\MadelineProto\NothingInTheSocketException $e) { } catch (\danog\MadelineProto\NothingInTheSocketException $e) {
$last_error = 'Nothing in the socket'; $last_error = 'Nothing in the socket';
\danog\MadelineProto\Logger::log(['An error getting response of method '.$method.': '.$e->getMessage().' in '.basename($e->getFile(), '.php').' on line '.$e->getLine().'. Retrying...'], \danog\MadelineProto\Logger::WARNING); \danog\MadelineProto\Logger::log(['An error getting response of method '.$method.': '.$e->getMessage().' in '.basename($e->getFile(), '.php').' on line '.$e->getLine().'. Retrying...'], \danog\MadelineProto\Logger::WARNING);
if ($this->is_http($aargs['datacenter'])) $this->close_and_reopen($aargs['datacenter']); if ($this->is_http($aargs['datacenter'])) {
$this->close_and_reopen($aargs['datacenter']);
}
continue; //2; continue; //2;
} }
} }