| @@ -47,26 +47,26 @@ discard block | ||
| 47 | 47 |          switch ($hook) { | 
| 48 | 48 | case 'patchset-created': | 
| 49 | 49 |                  if ($patchSet === 1 && $branch === 'master') { | 
| 50 | -                    $item = $this->queryGerrit('change:' . $patchId); | |
| 50 | +                    $item = $this->queryGerrit('change:'.$patchId); | |
| 51 | 51 | $item = $item[0]; | 
| 52 | 52 | $created = substr($item->created, 0, 19); | 
| 53 | 53 | |
| 54 | 54 |                      $text = "Branch: *{$branch}* | :calendar: _{$created}_ | ID: {$item->_number}\n"; | 
| 55 | 55 |                      $text .= ":link: <https://review.typo3.org/{$item->_number}|Review now>"; | 
| 56 | 56 | |
| 57 | -                    $message = $this->buildMessage('[NEW] ' . $item->subject, $text); | |
| 57 | +                    $message = $this->buildMessage('[NEW] '.$item->subject, $text); | |
| 58 | 58 | $this->sendMessageToChannel($hook, $message); | 
| 59 | 59 | } | 
| 60 | 60 | break; | 
| 61 | 61 | case 'change-merged': | 
| 62 | -                $item = $this->queryGerrit('change:' . $patchId); | |
| 62 | +                $item = $this->queryGerrit('change:'.$patchId); | |
| 63 | 63 | $item = $item[0]; | 
| 64 | 64 | $created = substr($item->created, 0, 19); | 
| 65 | 65 | |
| 66 | 66 |                  $text = "Branch: {$branch} | :calendar: {$created} | ID: {$item->_number}\n"; | 
| 67 | 67 |                  $text .= ":link: <https://review.typo3.org/{$item->_number}|Goto Review>"; | 
| 68 | 68 | |
| 69 | -                $message = $this->buildMessage(':white_check_mark: [MERGED] ' . $item->subject, $text, Message\Attachment::COLOR_GOOD); | |
| 69 | +                $message = $this->buildMessage(':white_check_mark: [MERGED] '.$item->subject, $text, Message\Attachment::COLOR_GOOD); | |
| 70 | 70 | $this->sendMessageToChannel($hook, $message); | 
| 71 | 71 | |
| 72 | 72 | $this->checkFiles($patchId, $commit); | 
| @@ -133,7 +133,7 @@ discard block | ||
| 133 | 133 |                          $attachment->setTitle('A documentation file has been updated'); | 
| 134 | 134 | break; | 
| 135 | 135 | } | 
| 136 | - $text = ':link: <https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/' . $fileName . '|' . $fileName . '>'; | |
| 136 | + $text = ':link: <https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/'.$fileName.'|'.$fileName.'>'; | |
| 137 | 137 | $attachment->setText($text); | 
| 138 | 138 | $attachment->setFallback($text); | 
| 139 | 139 | $message->addAttachment($attachment); |