@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * @var array |
19 | 19 | */ |
20 | 20 | protected $cats = [':smiley_cat:', ':smile_cat:', ':heart_eyes_cat:', ':kissing_cat:', |
21 | - ':smirk_cat:', ':scream_cat:', ':crying_cat_face:', ':joy_cat:' , ':pouting_cat:', ]; |
|
21 | + ':smirk_cat:', ':scream_cat:', ':crying_cat_face:', ':joy_cat:', ':pouting_cat:', ]; |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * @var array |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | public function process() : string |
62 | 62 | { |
63 | 63 | $message = strtolower($this->payload->getData()['text']); |
64 | - $username = '<@' . $this->payload->getData()['user'] . '>'; |
|
64 | + $username = '<@'.$this->payload->getData()['user'].'>'; |
|
65 | 65 | |
66 | 66 | if (strpos($message, 'help') !== false) { |
67 | 67 | $result = []; |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | |
119 | 119 | $command = !empty($params[0]) ? $params[0] : 'help'; |
120 | 120 | $this->params = $params; |
121 | - $method = 'process' . ucfirst(strtolower($command)); |
|
121 | + $method = 'process'.ucfirst(strtolower($command)); |
|
122 | 122 | if (method_exists($this, $method)) { |
123 | 123 | return $this->{$method}(); |
124 | 124 | } |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | { |
136 | 136 | if ($user !== null) { |
137 | 137 | $this->client->apiCall('im.open', ['user' => $user]) |
138 | - ->then(function (Payload $response) use ($messageToSent) { |
|
138 | + ->then(function(Payload $response) use ($messageToSent) { |
|
139 | 139 | $channel = $response->getData()['channel']['id']; |
140 | 140 | $this->postMessage($messageToSent, $channel); |
141 | 141 | }); |
@@ -152,9 +152,9 @@ discard block |
||
152 | 152 | */ |
153 | 153 | public function getHelp() : string |
154 | 154 | { |
155 | - $result = '*HELP*' . chr(10); |
|
155 | + $result = '*HELP*'.chr(10); |
|
156 | 156 | foreach ($this->helpCommands as $command => $helpText) { |
157 | - $result .= "*{$this->commandName}:{$command}*: {$helpText}" . chr(10); |
|
157 | + $result .= "*{$this->commandName}:{$command}*: {$helpText}".chr(10); |
|
158 | 158 | } |
159 | 159 | |
160 | 160 | return $result; |
@@ -180,11 +180,11 @@ discard block |
||
180 | 180 | $attachment->setColor($color); |
181 | 181 | $attachment->setPretext($preText); |
182 | 182 | $attachment->setTitle($item->subject); |
183 | - $attachment->setTitleLink('https://review.typo3.org/' . $item->_number); |
|
183 | + $attachment->setTitleLink('https://review.typo3.org/'.$item->_number); |
|
184 | 184 | |
185 | - $text = 'Branch: ' . $this->bold($branch) . ' | :calendar: ' . $this->bold($created) |
|
186 | - . ' | ID: ' . $this->bold($item->_number) . chr(10); |
|
187 | - $text .= '<https://review.typo3.org/' . $item->_number . '|:arrow_right: Goto Review>'; |
|
185 | + $text = 'Branch: '.$this->bold($branch).' | :calendar: '.$this->bold($created) |
|
186 | + . ' | ID: '.$this->bold($item->_number).chr(10); |
|
187 | + $text .= '<https://review.typo3.org/'.$item->_number.'|:arrow_right: Goto Review>'; |
|
188 | 188 | |
189 | 189 | $attachment->setText($text); |
190 | 190 | $attachment->setFallback($text); |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once __DIR__ . '/../config/config.php'; |
|
3 | +require_once __DIR__.'/../config/config.php'; |
|
4 | 4 | |
5 | 5 | return $GLOBALS['config']['db']; |