Completed
Push — master ( b8a081...29a87d )
by Frank
02:07
created
Classes/Controller/GerritHookController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,16 +44,16 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.