@@ -58,16 +58,16 @@ |
||
| 58 | 58 | $message->reply("Error: {$e->getMessage()}"); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - $webSocket->joinVoiceChannel($channel)->then(function (VoiceClient $vc) use ($message, $discord, $webSocket, $log, &$audioStreams, $channel, $curl, $songFile, $title) { |
|
| 61 | + $webSocket->joinVoiceChannel($channel)->then(function(VoiceClient $vc) use ($message, $discord, $webSocket, $log, &$audioStreams, $channel, $curl, $songFile, $title) { |
|
| 62 | 62 | $guildID = $message->getChannelAttribute()->guild_id; |
| 63 | 63 | |
| 64 | 64 | if (file_exists($songFile)) { |
| 65 | 65 | // Add this audio stream to the array of audio streams |
| 66 | 66 | $audioStreams[$guildID] = $vc; |
| 67 | - $vc->setFrameSize(40)->then(function () use ($vc, &$audioStreams, $guildID, $songFile, $log, $message, $title, $channel) { |
|
| 67 | + $vc->setFrameSize(40)->then(function() use ($vc, &$audioStreams, $guildID, $songFile, $log, $message, $title, $channel) { |
|
| 68 | 68 | $vc->setBitrate(128000); |
| 69 | 69 | $message->reply("Now playing **{$title}** in {$channel->name}"); |
| 70 | - $vc->playFile($songFile, 2)->done(function () use ($vc, &$audioStreams, $guildID) { |
|
| 70 | + $vc->playFile($songFile, 2)->done(function() use ($vc, &$audioStreams, $guildID) { |
|
| 71 | 71 | unset($audioStreams[$guildID]); |
| 72 | 72 | $vc->close(); |
| 73 | 73 | }); |
@@ -3,11 +3,11 @@ |
||
| 3 | 3 | use League\Container\Container; |
| 4 | 4 | use League\Container\ReflectionContainer; |
| 5 | 5 | |
| 6 | -if (! function_exists('getContainer')) { |
|
| 6 | +if (!function_exists('getContainer')) { |
|
| 7 | 7 | // Initialize and save the container instance |
| 8 | 8 | function getContainer() { |
| 9 | 9 | static $container; |
| 10 | - if(!isset($container)) { |
|
| 10 | + if (!isset($container)) { |
|
| 11 | 11 | $container = new Container; |
| 12 | 12 | |
| 13 | 13 | //. Attempt to autowire class constructor dependencies |