Passed
Push — master ( d8e277...9f1209 )
by Frank
02:11
created
Classes/Controller/GerritHookController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -51,15 +51,15 @@  discard block
 block discarded – undo
51 51
         $patchId = (int) str_replace('https://review.typo3.org/', '', $json->{'change-url'});
52 52
         $patchSet = property_exists($json, 'patchset') ? (int) $json->patchset : 0;
53 53
 
54
-        $item = $this->queryGerrit('change:' . $patchId)[0];
54
+        $item = $this->queryGerrit('change:'.$patchId)[0];
55 55
         $created = substr($item->created, 0, 19);
56
-        $text = "Branch: {$json->branch} | :calendar: {$created} | ID: {$item->_number}" . chr(10);
56
+        $text = "Branch: {$json->branch} | :calendar: {$created} | ID: {$item->_number}".chr(10);
57 57
         $text .= ":link: <https://review.typo3.org/{$item->_number}|Goto Review>";
58 58
         if ($hook === 'patchset-created' && $patchSet === 1 && $json->branch === 'master') {
59
-            $message = $this->buildMessage('[NEW] ' . $item->subject, $text);
59
+            $message = $this->buildMessage('[NEW] '.$item->subject, $text);
60 60
             $this->sendMessageToChannel($hook, $message);
61 61
         } elseif ($hook === 'change-merged') {
62
-            $message = $this->buildMessage(':white_check_mark: [MERGED] ' . $item->subject, $text, Message\Attachment::COLOR_GOOD);
62
+            $message = $this->buildMessage(':white_check_mark: [MERGED] '.$item->subject, $text, Message\Attachment::COLOR_GOOD);
63 63
             $this->sendMessageToChannel($hook, $message);
64 64
             $this->checkFiles($patchId, $json->commit);
65 65
         }
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         $attachment->setColor($color[$status]);
139 139
         $attachment->setTitle($text[$status]);
140 140
 
141
-        $text = ':link: <https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/' . $fileName . '|' . $fileName . '>';
141
+        $text = ':link: <https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/'.$fileName.'|'.$fileName.'>';
142 142
         $attachment->setText($text);
143 143
         $attachment->setFallback($text);
144 144
         return $attachment;
Please login to merge, or discard this patch.