Completed
Push — master ( 29a87d...1692d5 )
by Frank
02:18
created
public/whip/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
                     <div class="result" style="text-align: left;">
76 76
 <pre><?php foreach ($result as $row) {
77 77
         ?>
78
-<?= $row . "\n" ?>
78
+<?= $row."\n" ?>
79 79
 <?php 
80 80
     } ?></pre>
81 81
                     </div>
Please login to merge, or discard this patch.
Classes/Commands/BottyCommand.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public function processMessage() : string
29 29
     {
30 30
         $message = strtolower($this->payload->getData()['text']);
31
-        $username = '<@' . $this->payload->getData()['user'] . '>';
31
+        $username = '<@'.$this->payload->getData()['user'].'>';
32 32
 
33 33
         if (strpos($message, 'help') !== false) {
34 34
             $links = [
@@ -46,29 +46,29 @@  discard block
 block discarded – undo
46 46
         }
47 47
 
48 48
         $cats = [':smiley_cat:', ':smile_cat:', ':heart_eyes_cat:', ':kissing_cat:', ':smirk_cat:', ':scream_cat:',
49
-            ':crying_cat_face:', ':joy_cat:' , ':pouting_cat:', ];
49
+            ':crying_cat_face:', ':joy_cat:', ':pouting_cat:', ];
50 50
 
51 51
         $responses = [
52 52
             'daddy' => 'My daddy is Frank Nägler aka <@neoblack>',
53
-            'n8' => 'Good night ' . $username . '! :sleeping:',
54
-            'nacht' => 'Good night ' . $username . '! :sleeping:',
55
-            'night' => 'Good night ' . $username . '! :sleeping:',
56
-            'hello' => 'Hello ' . $username . ', nice to see you!',
57
-            'hallo' => 'Hello ' . $username . ', nice to see you!',
58
-            'ciao' => 'Bye, bye ' . $username . ', cu later alligator! :wave:',
59
-            'cu' => 'Bye, bye ' . $username . ', cu later alligator! :wave:',
60
-            'thx' => 'You are welcome ' . $username . '!',
61
-            'thank' => 'You are welcome ' . $username . '!',
62
-            'drink' => 'Coffee or beer ' . $username . '?',
63
-            'coffee' => 'Here is a :coffee: for you ' . $username . '!',
64
-            'beer' => 'Here is a :t3beer: for you ' . $username . '!',
65
-            'coke' => 'Coke is unhealthy ' . $username . '!',
66
-            'cola' => 'Coke is unhealthy ' . $username . '!',
67
-            'cookie' => 'Here is a :cookie: for you ' . $username . '!',
53
+            'n8' => 'Good night '.$username.'! :sleeping:',
54
+            'nacht' => 'Good night '.$username.'! :sleeping:',
55
+            'night' => 'Good night '.$username.'! :sleeping:',
56
+            'hello' => 'Hello '.$username.', nice to see you!',
57
+            'hallo' => 'Hello '.$username.', nice to see you!',
58
+            'ciao' => 'Bye, bye '.$username.', cu later alligator! :wave:',
59
+            'cu' => 'Bye, bye '.$username.', cu later alligator! :wave:',
60
+            'thx' => 'You are welcome '.$username.'!',
61
+            'thank' => 'You are welcome '.$username.'!',
62
+            'drink' => 'Coffee or beer '.$username.'?',
63
+            'coffee' => 'Here is a :coffee: for you '.$username.'!',
64
+            'beer' => 'Here is a :t3beer: for you '.$username.'!',
65
+            'coke' => 'Coke is unhealthy '.$username.'!',
66
+            'cola' => 'Coke is unhealthy '.$username.'!',
67
+            'cookie' => 'Here is a :cookie: for you '.$username.'!',
68 68
             'typo3' => ':typo3: TYPO3 CMS is the best open source CMS of the world!',
69 69
             'dark' => 'sure, we have cookies :cookie:',
70
-            'cat' => 'ok, here is some cat content ' . $cats[array_rand($cats)],
71
-            'love' => 'I love you too, ' . $username . ':kiss:',
70
+            'cat' => 'ok, here is some cat content '.$cats[array_rand($cats)],
71
+            'love' => 'I love you too, '.$username.':kiss:',
72 72
         ];
73 73
         $messageToSend = '';
74 74
         foreach ($responses as $keyword => $response) {
Please login to merge, or discard this patch.
Classes/Commands/BeerCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     protected function processAll() : string
50 50
     {
51
-        return 'Yeah, ' . $this->getBeerCountAll() . ' :t3beer: spend to all people';
51
+        return 'Yeah, '.$this->getBeerCountAll().' :t3beer: spend to all people';
52 52
     }
53 53
 
54 54
     /**
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $rows = $this->getBeerTop10();
64 64
         $text = ['*Yeah, here are the TOP 10*'];
65 65
         foreach ($rows as $row) {
66
-            $text[] = '<@' . $row['username'] . '> has received ' . $row['cnt'] . ' :t3beer:';
66
+            $text[] = '<@'.$row['username'].'> has received '.$row['cnt'].' :t3beer:';
67 67
         }
68 68
 
69 69
         return implode(chr(10), $text);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         if (strpos($username, '<') === 0 && $username[1] === '@') {
85 85
             $username = str_replace(['<', '>', '@'], '', $username);
86 86
 
87
-            return '<@' . $username . '> has received ' . $this->getBeerCountByUsername($username) . ' :t3beer: so far';
87
+            return '<@'.$username.'> has received '.$this->getBeerCountByUsername($username).' :t3beer: so far';
88 88
         }
89 89
         return '*Sorry, a username must start with a @-sign:*';
90 90
     }
@@ -128,10 +128,10 @@  discard block
 block discarded – undo
128 128
                     'tstamp' => time()
129 129
                 ];
130 130
                 $this->getDatabaseConnection()->insert('beers', $data);
131
-                return 'Yeah, one more :t3beer: for <@' . $username . '>' . chr(10) . '<@' . $username . '> has received '
132
-                    . $this->getBeerCountByUsername($username) . ' :t3beer: so far';
131
+                return 'Yeah, one more :t3beer: for <@'.$username.'>'.chr(10).'<@'.$username.'> has received '
132
+                    . $this->getBeerCountByUsername($username).' :t3beer: so far';
133 133
             }
134
-            return 'You spend one :t3beer: to <@' . $username . '> within in last 24 hours. Too much beer is unhealthy ;)';
134
+            return 'You spend one :t3beer: to <@'.$username.'> within in last 24 hours. Too much beer is unhealthy ;)';
135 135
         }
136 136
         return '*Sorry, a username must start with a @-sign:*';
137 137
     }
Please login to merge, or discard this patch.
Classes/Commands/UtilCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,6 +54,6 @@
 block discarded – undo
54 54
 
55 55
         $option = $options[random_int(0, count($options) - 1)];
56 56
 
57
-        return '*Botty says:* _' . $option . '_';
57
+        return '*Botty says:* _'.$option.'_';
58 58
     }
59 59
 }
Please login to merge, or discard this patch.
Classes/Traits/GerritTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      */
19 19
     protected function queryGerrit($query)
20 20
     {
21
-        return $this->remoteCall('https://review.typo3.org/changes/?q=' . urlencode($query));
21
+        return $this->remoteCall('https://review.typo3.org/changes/?q='.urlencode($query));
22 22
     }
23 23
 
24 24
     /**
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     protected function getFilesForPatch($changeId, $revision)
31 31
     {
32 32
         return $this->remoteCall(
33
-            'https://review.typo3.org/changes/' . $changeId . '/revisions/' . $revision . '/files'
33
+            'https://review.typo3.org/changes/'.$changeId.'/revisions/'.$revision.'/files'
34 34
         );
35 35
     }
36 36
 
Please login to merge, or discard this patch.
Classes/Traits/SlackTrait.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      */
24 24
     protected function bold($string) : string
25 25
     {
26
-        return '*' . $string . '*';
26
+        return '*'.$string.'*';
27 27
     }
28 28
 
29 29
     /**
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     protected function italic($string) : string
37 37
     {
38
-        return '_' . $string . '_';
38
+        return '_'.$string.'_';
39 39
     }
40 40
 
41 41
     /**
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
      */
48 48
     protected function buildReviewLine($item) : string
49 49
     {
50
-        return $this->bold($item->subject) . ' <https://review.typo3.org/' . $item->_number
51
-        . '|Review #' . $item->_number . ' now>';
50
+        return $this->bold($item->subject).' <https://review.typo3.org/'.$item->_number
51
+        . '|Review #'.$item->_number.' now>';
52 52
     }
53 53
 
54 54
     /**
@@ -60,15 +60,15 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $created = substr($item->created_on, 0, 19);
62 62
         $updated = substr($item->updated_on, 0, 19);
63
-        $text = $this->bold('[' . $item->tracker->name . '] ' . $item->subject)
64
-            . ' by ' . $this->italic($item->author->name) . "\n";
65
-        $text .= 'Project: ' . $this->bold($item->project->name);
63
+        $text = $this->bold('['.$item->tracker->name.'] '.$item->subject)
64
+            . ' by '.$this->italic($item->author->name)."\n";
65
+        $text .= 'Project: '.$this->bold($item->project->name);
66 66
         if (!empty($item->category->name)) {
67
-            $text .= ' | Category: ' . $this->bold($item->category->name);
67
+            $text .= ' | Category: '.$this->bold($item->category->name);
68 68
         }
69
-        $text .= ' | Status: ' . $this->bold($item->status->name) . "\n";
70
-        $text .= ':calendar: Created: ' . $this->bold($created) . ' | Last update: ' . $this->bold($updated) . "\n";
71
-        $text .= '<https://forge.typo3.org/issues/' . $item->id . '|:arrow_right: View on Forge>';
69
+        $text .= ' | Status: '.$this->bold($item->status->name)."\n";
70
+        $text .= ':calendar: Created: '.$this->bold($created).' | Last update: '.$this->bold($updated)."\n";
71
+        $text .= '<https://forge.typo3.org/issues/'.$item->id.'|:arrow_right: View on Forge>';
72 72
 
73 73
         return $text;
74 74
     }
Please login to merge, or discard this patch.
migrations-db.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__ . '/config/config.php';
3
+require_once __DIR__.'/config/config.php';
4 4
 
5 5
 return $GLOBALS['config']['db'];
Please login to merge, or discard this patch.
config/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-(new Dotenv\Dotenv(__DIR__ . '/../'))->load();
3
+(new Dotenv\Dotenv(__DIR__.'/../'))->load();
4 4
 
5 5
 $GLOBALS['config'] = [
6 6
     // project phase
Please login to merge, or discard this patch.
Classes/Commands/ReviewCommand.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -58,15 +58,15 @@  discard block
 block discarded – undo
58 58
         $countMinus2 = count($result);
59 59
 
60 60
         $returnString = '';
61
-        $returnString .= 'There are currently ' . $this->bold($count) . ' open reviews for project '
62
-            . $this->italic($project) . ' and branch master on <https://review.typo3.org/#/q/project:' . $project
63
-            . '+status:open+branch:master|https://review.typo3.org>' . chr(10);
64
-        $returnString .= $this->bold($countMinus1) . ' of ' . $this->bold($count) . ' open reviews voted with '
65
-            . $this->bold('-1') . ' <https://review.typo3.org/#/q/label:Code-Review%253D-1+is:open+branch:'
66
-            . 'master+project:' . $project . '|Check now> ' . chr(10);
67
-        $returnString .= $this->bold($countMinus2) . ' of ' . $this->bold($count) . ' open reviews voted with '
68
-            . $this->bold('-2') . ' <https://review.typo3.org/#/q/label:Code-Review%253D-2+is:open+branch:'
69
-            . 'master+project:' . $project . '|Check now>';
61
+        $returnString .= 'There are currently '.$this->bold($count).' open reviews for project '
62
+            . $this->italic($project).' and branch master on <https://review.typo3.org/#/q/project:'.$project
63
+            . '+status:open+branch:master|https://review.typo3.org>'.chr(10);
64
+        $returnString .= $this->bold($countMinus1).' of '.$this->bold($count).' open reviews voted with '
65
+            . $this->bold('-1').' <https://review.typo3.org/#/q/label:Code-Review%253D-1+is:open+branch:'
66
+            . 'master+project:'.$project.'|Check now> '.chr(10);
67
+        $returnString .= $this->bold($countMinus2).' of '.$this->bold($count).' open reviews voted with '
68
+            . $this->bold('-2').' <https://review.typo3.org/#/q/label:Code-Review%253D-2+is:open+branch:'
69
+            . 'master+project:'.$project.'|Check now>';
70 70
 
71 71
         return $returnString;
72 72
     }
@@ -97,9 +97,9 @@  discard block
 block discarded – undo
97 97
         if ($username === null) {
98 98
             return 'hey, I need a username!';
99 99
         }
100
-        $results = $this->queryGerrit('is:open owner:"' . $username . '" project:' . $project);
100
+        $results = $this->queryGerrit('is:open owner:"'.$username.'" project:'.$project);
101 101
         if (count($results) > 0) {
102
-            $listOfItems = ['*Here are the results for ' . $username . '*:'];
102
+            $listOfItems = ['*Here are the results for '.$username.'*:'];
103 103
             if (is_array($results)) {
104 104
                 foreach ($results as $item) {
105 105
                     $listOfItems[] = $this->buildReviewLine($item);
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
             return implode(chr(10), $listOfItems);
110 110
         }
111
-        return $username . ' has no open reviews or username is unknown';
111
+        return $username.' has no open reviews or username is unknown';
112 112
     }
113 113
 
114 114
     /**
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         $paramsCount = count($this->params);
147 147
         $changeIds = [];
148 148
         for ($i = 1; $i < $paramsCount; ++$i) {
149
-            $changeIds[] = 'change:' . $this->params[$i];
149
+            $changeIds[] = 'change:'.$this->params[$i];
150 150
         }
151 151
         $result = $this->queryGerrit(implode(' OR ', $changeIds));
152 152
         $listOfItems = [];
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      */
166 166
     protected function buildReviewMessageOutput(int $refId)
167 167
     {
168
-        $result = $this->queryGerrit('change:' . $refId);
168
+        $result = $this->queryGerrit('change:'.$refId);
169 169
         if (!$result) {
170 170
             return "{$refId} not found, sorry!";
171 171
         }
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
             return 'hey, I need a query!';
194 194
         }
195 195
 
196
-        $results = $this->queryGerrit('limit:50 ' . $query);
196
+        $results = $this->queryGerrit('limit:50 '.$query);
197 197
         if (count($results) > 0) {
198 198
             $listOfItems = ["*Here are the results for {$query}*:"];
199 199
             if (is_array($results)) {
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 
224 224
         $cnt = count($result);
225 225
 
226
-        return 'Good job folks, since ' . $date . ' you merged *' . $cnt . '* patches into master';
226
+        return 'Good job folks, since '.$date.' you merged *'.$cnt.'* patches into master';
227 227
     }
228 228
 
229 229
     /**
Please login to merge, or discard this patch.