@@ -88,7 +88,7 @@ discard block  | 
                                                    ||
| 88 | 88 | |
| 89 | 89 | $command = !empty($params[0]) ? $params[0] : 'help';  | 
                                                        
| 90 | 90 | $this->params = $params;  | 
                                                        
| 91 | - $method = 'process' . ucfirst(strtolower($command));  | 
                                                        |
| 91 | + $method = 'process'.ucfirst(strtolower($command));  | 
                                                        |
| 92 | 92 |          if (method_exists($this, $method)) { | 
                                                        
| 93 | 93 |              return $this->{$method}(); | 
                                                        
| 94 | 94 | }  | 
                                                        
@@ -105,7 +105,7 @@ discard block  | 
                                                    ||
| 105 | 105 |      { | 
                                                        
| 106 | 106 |          if ($user !== null) { | 
                                                        
| 107 | 107 |              $this->client->apiCall('im.open', ['user' => $user]) | 
                                                        
| 108 | -                ->then(function (Payload $response) use ($messageToSent) { | 
                                                        |
| 108 | +                ->then(function(Payload $response) use ($messageToSent) { | 
                                                        |
| 109 | 109 | $channel = $response->getData()['channel']['id'];  | 
                                                        
| 110 | 110 | $this->postMessage($messageToSent, $channel);  | 
                                                        
| 111 | 111 | });  | 
                                                        
@@ -168,11 +168,11 @@ discard block  | 
                                                    ||
| 168 | 168 | break;  | 
                                                        
| 169 | 169 | }  | 
                                                        
| 170 | 170 | $attachment->setTitle($item->subject);  | 
                                                        
| 171 | -        $attachment->setTitleLink('https://review.typo3.org/' . $item->_number); | 
                                                        |
| 171 | +        $attachment->setTitleLink('https://review.typo3.org/'.$item->_number); | 
                                                        |
| 172 | 172 | |
| 173 | - $text .= 'Branch: ' . $this->bold($branch) . ' | :calendar: ' . $this->bold($created)  | 
                                                        |
| 174 | - . ' | ID: ' . $this->bold($item->_number) . "\n";  | 
                                                        |
| 175 | - $text .= '<https://review.typo3.org/' . $item->_number . '|:arrow_right: Goto Review>';  | 
                                                        |
| 173 | + $text .= 'Branch: '.$this->bold($branch).' | :calendar: '.$this->bold($created)  | 
                                                        |
| 174 | + . ' | ID: '.$this->bold($item->_number)."\n";  | 
                                                        |
| 175 | + $text .= '<https://review.typo3.org/'.$item->_number.'|:arrow_right: Goto Review>';  | 
                                                        |
| 176 | 176 | |
| 177 | 177 | $attachment->setText($text);  | 
                                                        
| 178 | 178 | $attachment->setFallback($text);  | 
                                                        
@@ -103,8 +103,8 @@ discard block  | 
                                                    ||
| 103 | 103 |      { | 
                                                        
| 104 | 104 |          $parts = explode(':', $notification['message']); | 
                                                        
| 105 | 105 | $refId = (int) trim($parts[1]);  | 
                                                        
| 106 | -        $result = $this->queryGerrit('change:' . $refId); | 
                                                        |
| 107 | - $msg = '*Hi <@' . $user . '>, <@' . $notification['from_user'] . '>'  | 
                                                        |
| 106 | +        $result = $this->queryGerrit('change:'.$refId); | 
                                                        |
| 107 | + $msg = '*Hi <@'.$user.'>, <@'.$notification['from_user'].'>'  | 
                                                        |
| 108 | 108 | . ' ask you to look at this patch:*';  | 
                                                        
| 109 | 109 | |
| 110 | 110 |          if (is_array($result)) { | 
                                                        
@@ -126,11 +126,11 @@ discard block  | 
                                                    ||
| 126 | 126 |      { | 
                                                        
| 127 | 127 |          $parts = explode(':', $notification['message']); | 
                                                        
| 128 | 128 | $issueNumber = (int) trim($parts[1]);  | 
                                                        
| 129 | -        $result = $this->queryForge('issues/' . $issueNumber); | 
                                                        |
| 129 | +        $result = $this->queryForge('issues/'.$issueNumber); | 
                                                        |
| 130 | 130 |          if ($result) { | 
                                                        
| 131 | - $msg = '*Hi <@' . $user . '>, <@' . $notification['from_user'] . '>'  | 
                                                        |
| 131 | + $msg = '*Hi <@'.$user.'>, <@'.$notification['from_user'].'>'  | 
                                                        |
| 132 | 132 | . ' ask you to look at this issue:*';  | 
                                                        
| 133 | - $this->sendResponse($msg . "\n" . $this->buildIssueMessage($result->issue), $user);  | 
                                                        |
| 133 | + $this->sendResponse($msg."\n".$this->buildIssueMessage($result->issue), $user);  | 
                                                        |
| 134 | 134 | }  | 
                                                        
| 135 | 135 | }  | 
                                                        
| 136 | 136 | |
@@ -140,8 +140,8 @@ discard block  | 
                                                    ||
| 140 | 140 | */  | 
                                                        
| 141 | 141 | protected function processTextMessage(array $notification, string $user)  | 
                                                        
| 142 | 142 |      { | 
                                                        
| 143 | - $msg = '*Hi <@' . $user . '>, here is a message from <@' . $notification['from_user'] . '>' . ' for you:*';  | 
                                                        |
| 144 | - $this->sendResponse($msg . chr(10) . $notification['message'], $user);  | 
                                                        |
| 143 | + $msg = '*Hi <@'.$user.'>, here is a message from <@'.$notification['from_user'].'>'.' for you:*';  | 
                                                        |
| 144 | + $this->sendResponse($msg.chr(10).$notification['message'], $user);  | 
                                                        |
| 145 | 145 | }  | 
                                                        
| 146 | 146 | |
| 147 | 147 | /**  | 
                                                        
@@ -167,6 +167,6 @@ discard block  | 
                                                    ||
| 167 | 167 | 'message' => $message,  | 
                                                        
| 168 | 168 | ]);  | 
                                                        
| 169 | 169 | |
| 170 | - return 'OK, I will tell <@' . $toUser . '> about your message';  | 
                                                        |
| 170 | + return 'OK, I will tell <@'.$toUser.'> about your message';  | 
                                                        |
| 171 | 171 | }  | 
                                                        
| 172 | 172 | }  |