@@ -100,7 +100,7 @@ |
||
100 | 100 | { |
101 | 101 | if ($user !== null) { |
102 | 102 | $this->client->apiCall('im.open', ['user' => $user]) |
103 | - ->then(function (Payload $response) use ($messageToSent) { |
|
103 | + ->then(function(Payload $response) use ($messageToSent) { |
|
104 | 104 | $channel = $response->getData()['channel']['id']; |
105 | 105 | if ($messageToSent instanceof Message) { |
106 | 106 | $data['unfurl_links'] = false; |
@@ -47,7 +47,7 @@ |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | $cats = array(':smiley_cat:', ':smile_cat:', ':heart_eyes_cat:', ':kissing_cat:', ':smirk_cat:', ':scream_cat:', |
50 | - ':crying_cat_face:', ':joy_cat:' ,':pouting_cat:', ); |
|
50 | + ':crying_cat_face:', ':joy_cat:', ':pouting_cat:',); |
|
51 | 51 | |
52 | 52 | $responses = array( |
53 | 53 | 'daddy' => 'My daddy is Frank Nägler aka <@neoblack>', |
@@ -72,7 +72,7 @@ |
||
72 | 72 | <?php if ($result !== null) { ?> |
73 | 73 | <div class="result" style="text-align: left;"> |
74 | 74 | <pre><?php foreach ($result as $row) { ?> |
75 | -<?= $row . "\n" ?> |
|
75 | +<?= $row."\n" ?> |
|
76 | 76 | <?php } ?></pre> |
77 | 77 | </div> |
78 | 78 | <?php } ?> |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $client = new Slack\RealTimeClient($loop); |
17 | 17 | $client->setToken($GLOBALS['config']['slack']['botAuthToken']); |
18 | 18 | |
19 | -$client->on('message', function (Slack\Payload $payload) use ($client) { |
|
19 | +$client->on('message', function(Slack\Payload $payload) use ($client) { |
|
20 | 20 | if ($payload->getData()['user'] !== $GLOBALS['config']['slack']['botId']) { |
21 | 21 | $commandResolver = new \T3Bot\Slack\CommandResolver($payload, $client); |
22 | 22 | $command = $commandResolver->resolveCommand(); |
@@ -31,28 +31,28 @@ discard block |
||
31 | 31 | } |
32 | 32 | }); |
33 | 33 | |
34 | -$client->on('channel_created', function (Slack\Payload $payload) use ($client) { |
|
34 | +$client->on('channel_created', function(Slack\Payload $payload) use ($client) { |
|
35 | 35 | if ($payload->getData()['user'] !== $GLOBALS['config']['slack']['botId']) { |
36 | 36 | $command = new \T3Bot\Commands\ChannelCommand($payload, $client); |
37 | 37 | $command->processChannelCreated($payload->getData()); |
38 | 38 | } |
39 | 39 | }); |
40 | 40 | |
41 | -$client->on('presence_change', function (Slack\Payload $payload) use ($client) { |
|
41 | +$client->on('presence_change', function(Slack\Payload $payload) use ($client) { |
|
42 | 42 | if ($payload->getData()['user'] !== $GLOBALS['config']['slack']['botId']) { |
43 | 43 | $command = new \T3Bot\Commands\TellCommand($payload, $client); |
44 | 44 | $command->processPresenceChange($payload->getData()['user'], $payload->getData()['presence']); |
45 | 45 | } |
46 | 46 | }); |
47 | 47 | |
48 | -$client->connect()->then(function () use ($client) { |
|
48 | +$client->connect()->then(function() use ($client) { |
|
49 | 49 | echo "Connected!\n"; |
50 | 50 | }); |
51 | 51 | |
52 | 52 | /* @noinspection PhpInternalEntityUsedInspection */ |
53 | 53 | $db = \Doctrine\DBAL\DriverManager::getConnection($GLOBALS['config']['db'], new \Doctrine\DBAL\Configuration()); |
54 | 54 | |
55 | -$loop->addPeriodicTimer(5, function () use ($client, $db) { |
|
55 | +$loop->addPeriodicTimer(5, function() use ($client, $db) { |
|
56 | 56 | $messages = $db->fetchAll('SELECT * FROM messages ORDER BY id ASC'); |
57 | 57 | foreach ($messages as $message) { |
58 | 58 | $data = json_decode($message['message'], true); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | protected function getFilesForPatch($changeId, $revision) |
32 | 32 | { |
33 | 33 | return $this->remoteCall( |
34 | - 'https://review.typo3.org/changes/' . $changeId . '/revisions/' . $revision . '/files' |
|
34 | + 'https://review.typo3.org/changes/'.$changeId.'/revisions/'.$revision.'/files' |
|
35 | 35 | ); |
36 | 36 | } |
37 | 37 |