Completed
Push — master ( 29a87d...1692d5 )
by Frank
02:18
created
Classes/Controller/GerritHookController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,16 +40,16 @@  discard block
 block discarded – undo
40 40
         $patchId = (int) str_replace('https://review.typo3.org/', '', $json->{'change-url'});
41 41
         $patchSet = property_exists($json, 'patchset') ? (int) $json->patchset : 0;
42 42
 
43
-        $item = $this->queryGerrit('change:' . $patchId);
43
+        $item = $this->queryGerrit('change:'.$patchId);
44 44
         $item = $item[0];
45 45
         $created = substr($item->created, 0, 19);
46 46
         $text = "Branch: {$json->branch} | :calendar: {$created} | ID: {$item->_number}\n";
47 47
         $text .= ":link: <https://review.typo3.org/{$item->_number}|Goto Review>";
48 48
         if ($hook === 'patchset-created' && $patchSet === 1 && $json->branch === 'master') {
49
-            $message = $this->buildMessage('[NEW] ' . $item->subject, $text);
49
+            $message = $this->buildMessage('[NEW] '.$item->subject, $text);
50 50
             $this->sendMessageToChannel($hook, $message);
51 51
         } elseif ($hook === 'change-merged') {
52
-            $message = $this->buildMessage(':white_check_mark: [MERGED] ' . $item->subject, $text, Message\Attachment::COLOR_GOOD);
52
+            $message = $this->buildMessage(':white_check_mark: [MERGED] '.$item->subject, $text, Message\Attachment::COLOR_GOOD);
53 53
             $this->sendMessageToChannel($hook, $message);
54 54
             $this->checkFiles($patchId, $json->commit);
55 55
         }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
                 $attachment->setColor($color[$status]);
114 114
                 $attachment->setTitle($text[$status]);
115 115
 
116
-                $text = ':link: <https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/' . $fileName . '|' . $fileName . '>';
116
+                $text = ':link: <https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/'.$fileName.'|'.$fileName.'>';
117 117
                 $attachment->setText($text);
118 118
                 $attachment->setFallback($text);
119 119
                 $message->addAttachment($attachment);
Please login to merge, or discard this patch.