Passed
Push — php8 ( ba1f07...3f2d85 )
by Michael
04:18 queued 03:36
created
includes/Helpers/IrcNotificationHelper.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -111,8 +111,7 @@  discard block
 block discarded – undo
111 111
             if ($amqpSiteConfig['tls']) {
112 112
                 $amqpConnectionConfig->setIsSecure(true);
113 113
                 $amqpConnectionConfig->setSslVerify(true);
114
-            }
115
-            else {
114
+            } else {
116 115
                 $amqpConnectionConfig->setIsSecure(false);
117 116
             }
118 117
 
@@ -268,8 +267,7 @@  discard block
 block discarded – undo
268 267
     {
269 268
         if ($ban->getDuration() === null) {
270 269
             $duration = "indefinitely";
271
-        }
272
-        else {
270
+        } else {
273 271
             $duration = "until " . date("F j, Y, g:i a", $ban->getDuration());
274 272
         }
275 273
 
@@ -277,8 +275,7 @@  discard block
 block discarded – undo
277 275
 
278 276
         if ($ban->getVisibility() == 'user') {
279 277
             $this->send("Ban {$ban->getId()} set by {$username} for '{$ban->getReason()}' {$duration}");
280
-        }
281
-        else {
278
+        } else {
282 279
             $this->send("Ban {$ban->getId()} set by {$username} {$duration}");
283 280
         }
284 281
     }
Please login to merge, or discard this patch.