Completed
Push — master ( 323a7c...dab562 )
by Brian
04:05
created
src/wormling/phparia/Resources/Resource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      */
63 63
     public function once($event, callable $listener)
64 64
     {
65
-        $onceListener = function () use (&$onceListener, $event, $listener) {
65
+        $onceListener = function() use (&$onceListener, $event, $listener) {
66 66
             $this->removeListener($event, $onceListener);
67 67
 
68 68
             call_user_func_array($listener, func_get_args());
Please login to merge, or discard this patch.
src/wormling/phparia/Api/PlaybackList.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         parent::offsetSet($offset, $value);
49 49
 
50 50
         // Remove playbacks when they are done playing
51
-        $value->oncePlaybackFinished(function (PlaybackFinished $playbackFinished) use ($value) {
51
+        $value->oncePlaybackFinished(function(PlaybackFinished $playbackFinished) use ($value) {
52 52
             if ($playbackFinished->getPlayback()->getId() === $value->getId()) {
53 53
                 $key = array_search($value, $this->getArrayCopy());
54 54
                 if ($key !== false) {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
         // Remove playbacks when they are done playing
72 72
         $this->phparia->getWsClient()->once('PlaybackFinished',
73
-            function (PlaybackFinished $playbackFinished) use ($value) {
73
+            function(PlaybackFinished $playbackFinished) use ($value) {
74 74
                 if ($playbackFinished->getPlayback()->getId() === $value->getId()) {
75 75
                     $key = array_search($value, $this->getArrayCopy());
76 76
                     if ($key !== false) {
Please login to merge, or discard this patch.
src/wormling/phparia/Resources/ConfigInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
         $this->default_language = $this->getResponseValue('default_language');
114 114
         $this->max_channels = $this->getResponseValue('max_channels');
115 115
         $this->max_load = $this->getResponseValue('max_load');
116
-        $this->max_open_files =$this->getResponseValue('max_open_files');
116
+        $this->max_open_files = $this->getResponseValue('max_open_files');
117 117
         $this->name = $this->getResponseValue('name');
118 118
         $this->setid = $this->getResponseValue('setid', '\phparia\Resources\SetId');
119 119
     }
Please login to merge, or discard this patch.
src/wormling/phparia/Client/AmiClient.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,17 +76,17 @@
 block discarded – undo
76 76
         $factory = new Factory($this->eventLoop);
77 77
 
78 78
         return $factory->createClient($address)
79
-            ->then(function (Client $client) {
79
+            ->then(function(Client $client) {
80 80
                 $this->amiClient = $client;
81 81
                 $this->actionSender = new ActionSender($client);
82 82
                 $this->actionSender->events(true);
83
-                $client->on('close', function () {
83
+                $client->on('close', function() {
84 84
                     $this->logger->debug('AMI connection closed');
85 85
                 });
86
-                $client->on('event', function (Event $event) {
86
+                $client->on('event', function(Event $event) {
87 87
                     $this->wsClient->emit($event->getName(), (array)$event);
88 88
                 });
89
-            }, function (\Exception $e) {
89
+            }, function(\Exception $e) {
90 90
                 $this->logger->err('Connection error: '.$e->getMessage());
91 91
             });
92 92
     }
Please login to merge, or discard this patch.
src/wormling/phparia/Client/Phparia.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,8 +113,8 @@
 block discarded – undo
113 113
 
114 114
         $onStop = $this->onStop;
115 115
         $onStop()
116
-            ->then(function () use (&$deferred) {
117
-                $this->ariClient->onClose(function () use (&$deferred) {
116
+            ->then(function() use (&$deferred) {
117
+                $this->ariClient->onClose(function() use (&$deferred) {
118 118
                     $this->eventLoop->stop();
119 119
                     $deferred->resolve();
120 120
                 });
Please login to merge, or discard this patch.
src/wormling/phparia/Client/AriClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
 
163 163
         $this->wsClient = new WebSocket($address, $this->eventLoop, $this->logger, $streamOptions);
164 164
 
165
-        $this->wsClient->on("message", function (WebSocketMessage $rawMessage) {
165
+        $this->wsClient->on("message", function(WebSocketMessage $rawMessage) {
166 166
             $message = new Message($rawMessage->getData());
167 167
 
168 168
             $eventType = '\\phparia\\Events\\'.$message->getType();
Please login to merge, or discard this patch.