@@ -44,16 +44,16 @@ discard block |
||
44 | 44 | $commit = $json->commit; |
45 | 45 | $branch = $json->branch; |
46 | 46 | |
47 | - $item = $this->queryGerrit('change:' . $patchId); |
|
47 | + $item = $this->queryGerrit('change:'.$patchId); |
|
48 | 48 | $item = $item[0]; |
49 | 49 | $created = substr($item->created, 0, 19); |
50 | 50 | $text = "Branch: {$branch} | :calendar: {$created} | ID: {$item->_number}\n"; |
51 | 51 | $text .= ":link: <https://review.typo3.org/{$item->_number}|Goto Review>"; |
52 | 52 | if ($hook === 'patchset-created' && $patchSet === 1 && $branch === 'master') { |
53 | - $message = $this->buildMessage('[NEW] ' . $item->subject, $text); |
|
53 | + $message = $this->buildMessage('[NEW] '.$item->subject, $text); |
|
54 | 54 | $this->sendMessageToChannel($hook, $message); |
55 | 55 | } elseif ($hook === 'change-merged') { |
56 | - $message = $this->buildMessage(':white_check_mark: [MERGED] ' . $item->subject, $text, Message\Attachment::COLOR_GOOD); |
|
56 | + $message = $this->buildMessage(':white_check_mark: [MERGED] '.$item->subject, $text, Message\Attachment::COLOR_GOOD); |
|
57 | 57 | $this->sendMessageToChannel($hook, $message); |
58 | 58 | $this->checkFiles($patchId, $commit); |
59 | 59 | } |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | $attachment->setColor($color[$status]); |
118 | 118 | $attachment->setTitle($text[$status]); |
119 | 119 | |
120 | - $text = ':link: <https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/' . $fileName . '|' . $fileName . '>'; |
|
120 | + $text = ':link: <https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/'.$fileName.'|'.$fileName.'>'; |
|
121 | 121 | $attachment->setText($text); |
122 | 122 | $attachment->setFallback($text); |
123 | 123 | $message->addAttachment($attachment); |