Completed
Branch master (6bae32)
by Matthew
03:24
created
src/Plugins/onVoice/reapers.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,15 +14,15 @@
 block discarded – undo
14 14
 {
15 15
     public function run(Message $message, Discord $discord, WebSocket $webSocket, Logger $log, &$audioStreams, Channel $channel, cURL $curl)
16 16
     {
17
-        $webSocket->joinVoiceChannel($channel)->then(function (VoiceClient $vc) use ($message, $discord, $webSocket, $log, &$audioStreams, $channel) {
17
+        $webSocket->joinVoiceChannel($channel)->then(function(VoiceClient $vc) use ($message, $discord, $webSocket, $log, &$audioStreams, $channel) {
18 18
             $guildID = $message->getChannelAttribute()->guild_id;
19 19
             // Add this audio stream to the array of audio streams
20 20
             $audioStreams[$guildID] = $vc;
21
-            $vc->setFrameSize(40)->then(function () use ($vc, &$audioStreams, $guildID) {
21
+            $vc->setFrameSize(40)->then(function() use ($vc, &$audioStreams, $guildID) {
22 22
                 $vc->setBitrate(128000);
23 23
                 $number = mt_rand(1, 23);
24 24
                 $file = __DIR__ . "/../../../sounds/reapers/{$number}.mp3";
25
-                $vc->playFile($file, 2)->done(function () use ($vc, &$audioStreams, $guildID) {
25
+                $vc->playFile($file, 2)->done(function() use ($vc, &$audioStreams, $guildID) {
26 26
                     unset($audioStreams[$guildID]);
27 27
                     $vc->close();
28 28
                 });
Please login to merge, or discard this patch.
src/Plugins/onVoice/unleashthe90s.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,16 +49,16 @@
 block discarded – undo
49 49
             goto retry;
50 50
         }
51 51
 
52
-        $webSocket->joinVoiceChannel($channel)->then(function (VoiceClient $vc) use ($message, $discord, $webSocket, $log, &$audioStreams, $channel, $curl, $songFile, $song) {
52
+        $webSocket->joinVoiceChannel($channel)->then(function(VoiceClient $vc) use ($message, $discord, $webSocket, $log, &$audioStreams, $channel, $curl, $songFile, $song) {
53 53
             $guildID = $message->getChannelAttribute()->guild_id;
54 54
 
55 55
             if (file_exists($songFile)) {
56 56
                 // Add this audio stream to the array of audio streams
57 57
                 $audioStreams[$guildID] = $vc;
58
-                $vc->setFrameSize(40)->then(function () use ($vc, &$audioStreams, $guildID, $songFile, $log, $message, $song, $channel) {
58
+                $vc->setFrameSize(40)->then(function() use ($vc, &$audioStreams, $guildID, $songFile, $log, $message, $song, $channel) {
59 59
                     $vc->setBitrate(128000);
60 60
                     $message->reply("Now playing **{$song->title}** by **{$song->artist}** in {$channel->name}");
61
-                    $vc->playFile($songFile, 2)->done(function () use ($vc, &$audioStreams, $guildID) {
61
+                    $vc->playFile($songFile, 2)->done(function() use ($vc, &$audioStreams, $guildID) {
62 62
                         unset($audioStreams[$guildID]);
63 63
                         $vc->close();
64 64
                     });
Please login to merge, or discard this patch.
src/Plugins/onVoice/youtube.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,16 +58,16 @@
 block discarded – undo
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
                     });
Please login to merge, or discard this patch.
src/Helper/Container.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,11 +3,11 @@
 block discarded – undo
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
Please login to merge, or discard this patch.