From 9403c4012b56003204eaf5bdfb8edbf6bd123b63 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 24 Mar 2018 18:06:19 +0000 Subject: [PATCH] Apply fixes from StyleCI --- magna.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/magna.php b/magna.php index 0702eef24..d83df7334 100755 --- a/magna.php +++ b/magna.php @@ -23,7 +23,7 @@ try { $MadelineProto = new \danog\MadelineProto\API('session.madeline'); } catch (\danog\MadelineProto\Exception $e) { unlink('session.madeline'); - $MadelineProto = new \danog\MadelineProto\API('session.madeline'); + $MadelineProto = new \danog\MadelineProto\API('session.madeline'); } $MadelineProto->start(); @@ -45,16 +45,17 @@ $times = []; $calls = []; $users = []; -function configureCall($call) { +function configureCall($call) +{ include 'songs.php'; $call->configuration['enable_NS'] = false; $call->configuration['enable_AGC'] = false; $call->configuration['enable_AEC'] = false; $call->configuration['shared_config'] = [ - 'audio_init_bitrate' => 100 * 1000, - 'audio_max_bitrate' => 500 * 1000, - 'audio_min_bitrate' => 100 * 1000, - 'audio_congestion_window' => 4*1024 + 'audio_init_bitrate' => 100 * 1000, + 'audio_max_bitrate' => 500 * 1000, + 'audio_min_bitrate' => 100 * 1000, + 'audio_congestion_window' => 4 * 1024, //'audio_bitrate_step_decr' => 0, //'audio_bitrate_step_incr' => 2000, ]; @@ -62,7 +63,6 @@ function configureCall($call) { $call->playOnHold($songs); } - $MadelineProto->get_updates(['offset' => -1]); $offset = 0; while (1) { @@ -207,5 +207,5 @@ Propic art by @magnaluna on deviantart.", 'parse_mode' => 'Markdown']); } } } - } } +}