Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-04-26 18:32:55 +00:00 committed by StyleCI Bot
parent 6a618edb53
commit d68ccd84dc

View File

@ -359,7 +359,9 @@ Slv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB
'pwr' => ['pwr' => false, 'db_token' => false, 'strict' => false],
];
$settings = $this->array_replace_recursive($default_settings, $settings);
if (!isset($settings['app_info']['api_id'])) throw new Exception('You must provide an api key and an api id, get your own @ my.telegram.org');
if (!isset($settings['app_info']['api_id'])) {
throw new Exception('You must provide an api key and an api id, get your own @ my.telegram.org');
}
switch ($settings['logger']['logger_level']) {
case 'ULTRA_VERBOSE': $settings['logger']['logger_level'] = 5; break;
case 'VERBOSE': $settings['logger']['logger_level'] = 4; break;