Completed
Push — master ( cb9540...eca4ce )
by Ekin
03:53
created
src/Websocket/Handler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@  discard block
 block discarded – undo
49 49
 
50 50
     public function handleClient(Gateway $gateway, Client $client, Request $request, Response $response): Promise
51 51
     {
52
-        return call(function () use ($gateway, $client, $request, $response) {
53
-            $client->onClose(function (Client $client, int $code, string $reason) use ($gateway) {
52
+        return call(function() use ($gateway, $client, $request, $response) {
53
+            $client->onClose(function(Client $client, int $code, string $reason) use ($gateway) {
54 54
                 yield $this->processDisconnectingClient($gateway, $client, $code, $reason);
55 55
             });
56 56
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     private function processDisconnectingClient(Gateway $gateway, Client  $client, int $code, string $reason): Promise
72 72
     {
73
-        return call(function () use ($gateway, $client, $code, $reason) {
73
+        return call(function() use ($gateway, $client, $code, $reason) {
74 74
             $this->logger->info(
75 75
                 \sprintf(
76 76
                     'Client %d disconnected. Code: %d Reason: %s. Total clients: %d',
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     {
106 106
         $this->gateway = $gateway;
107 107
 
108
-        asyncCall(function () {
108
+        asyncCall(function() {
109 109
             while (true) {
110 110
                 $this->emit(yield $this->provider->listen());
111 111
 
Please login to merge, or discard this patch.
src/Response/Results.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
     public function appendResponse(string $eventNamespace, Response $response): Promise
31 31
     {
32
-        return call(function () use ($eventNamespace, $response) {
32
+        return call(function() use ($eventNamespace, $response) {
33 33
             try {
34 34
                 $bufferedResponse = yield $response->getBody()->buffer();
35 35
 
Please login to merge, or discard this patch.
src/Provider/GitHub.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     private function request(): Promise
42 42
     {
43
-        return call(function () {
43
+        return call(function() {
44 44
             try {
45 45
                 $request = new Request(self::API_ENDPOINT, 'GET');
46 46
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
     public function listen(): Promise
74 74
     {
75
-        return call(function () {
75
+        return call(function() {
76 76
             $response = yield $this->request();
77 77
 
78 78
             return yield $this->resultFactory->build(self::EVENT_NAMESPACE, $response);
Please login to merge, or discard this patch.
server.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,11 +43,11 @@
 block discarded – undo
43 43
 
44 44
 $websocket = new Websocket($clientHandler);
45 45
 
46
-Amp\Loop::setErrorHandler(function (Throwable $e) use ($logger) {
46
+Amp\Loop::setErrorHandler(function(Throwable $e) use ($logger) {
47 47
     $logger->emergency('GitAmp blew up', ['exception' => $e]);
48 48
 });
49 49
 
50
-Loop::run(function () use ($websocket, $configuration, $logger): Promise {
50
+Loop::run(function() use ($websocket, $configuration, $logger): Promise {
51 51
     $sockets = [
52 52
         Server::listen(sprintf('%s:%d', $configuration['expose']['ip'], $configuration['expose']['port'])),
53 53
     ];
Please login to merge, or discard this patch.