Completed
Push — master ( da74bc...a18c7e )
by Korvin
12:09
created
src/Command/SignatureParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             throw new InvalidArgumentException('Console command definition is empty.');
49 49
         }
50 50
 
51
-        if (! preg_match('/[^\s]+/', $expression, $matches)) {
51
+        if (!preg_match('/[^\s]+/', $expression, $matches)) {
52 52
             throw new InvalidArgumentException('Unable to determine command name from signature.');
53 53
         }
54 54
 
Please login to merge, or discard this patch.
src/Command/SimpleCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
193 193
             $output[] = '*' . mb_convert_case($type, MB_CASE_TITLE) . ' Arguments:*';
194 194
 
195 195
             foreach ($filteredArguments as $argument) {
196
-                $argumentString = '`' .$summary->argument($argument) . '`';
196
+                $argumentString = '`' . $summary->argument($argument) . '`';
197 197
 
198 198
                 if ($description = $argument->description()) {
199 199
                     $argumentString .= " _{$description}_";
Please login to merge, or discard this patch.
src/Slack/Rtm/Client.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         $promise->done(function() use ($stack) {
131 131
             $this->logger->info('-- Starting to listen... --');
132 132
 
133
-            $this->listener = function (Message $message) use ($stack) {
133
+            $this->listener = function(Message $message) use ($stack) {
134 134
                 if (!$this->connected) {
135 135
                     // After we disconnect stop listening.
136 136
                     return false;
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
         $listener = null;
247 247
 
248 248
         // Listen for a reply
249
-        $listener = function (Message $message) use ($deferred, $currentId, &$listener) {
249
+        $listener = function(Message $message) use ($deferred, $currentId, &$listener) {
250 250
             $payload = json_decode($message->getPayload(), true);
251 251
             $replyTo = $payload['reply_to'] ?? 0;
252 252
 
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
         // Manage connecting
332 332
         $connection = websocketConnect($rtmPayload->getUrl(), [], [], $loop);
333 333
         $connection->then(
334
-            function (WebSocket $connection) use ($deferred, $rtmPayload) {
334
+            function(WebSocket $connection) use ($deferred, $rtmPayload) {
335 335
                 $this->connected($connection, $rtmPayload);
336 336
                 $deferred->resolve([$connection, $rtmPayload]);
337 337
 
Please login to merge, or discard this patch.
src/Bot.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -190,11 +190,11 @@
 block discarded – undo
190 190
 
191 191
         if ($duration) {
192 192
             $this->rtm()->typing($channel);
193
-            $this->getLoop()->addTimer($duration, function () use ($channel, $message, $deferred) {
193
+            $this->getLoop()->addTimer($duration, function() use ($channel, $message, $deferred) {
194 194
                 if ($message) {
195 195
                     $this->rtm()
196 196
                         ->sendMessage($message, $channel)
197
-                        ->done(function (array $result) use ($deferred) {
197
+                        ->done(function(array $result) use ($deferred) {
198 198
                             $this->logger->info('[<bold>BOT.TYP</bold>] Done Typing');
199 199
                             $deferred->resolve($result);
200 200
                         });
Please login to merge, or discard this patch.
src/Slack/ConnectionManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         }
48 48
 
49 49
         // Start listening
50
-        $promise = $this->rtmClient->listen($loop, $payload, $middleware, function(){});
50
+        $promise = $this->rtmClient->listen($loop, $payload, $middleware, function() {});
51 51
 
52 52
         // Handle connecting
53 53
         $promise->done(function($result) use ($loop) {
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
         // Track how many times pings fail
74 74
         $fails = 0;
75 75
 
76
-        $loop->addPeriodicTimer(10, function () use (&$fails) {
77
-            $this->rtmClient->sendPing()->otherwise(function () use (&$fails) {
76
+        $loop->addPeriodicTimer(10, function() use (&$fails) {
77
+            $this->rtmClient->sendPing()->otherwise(function() use (&$fails) {
78 78
                 $fails++;
79 79
 
80 80
                 if ($fails > 3) {
Please login to merge, or discard this patch.