Failed Conditions
Pull Request — master (#201)
by Michael
07:07 queued 03:24
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
             $connection = AMQPConnectionFactory::create($amqpConnectionConfig);
@@ -267,8 +266,7 @@  discard block
 block discarded – undo
267 266
     {
268 267
         if ($ban->getDuration() === null) {
269 268
             $duration = "indefinitely";
270
-        }
271
-        else {
269
+        } else {
272 270
             $duration = "until " . date("F j, Y, g:i a", $ban->getDuration());
273 271
         }
274 272
 
@@ -276,8 +274,7 @@  discard block
 block discarded – undo
276 274
 
277 275
         if ($ban->getVisibility() == 'user') {
278 276
             $this->send("Ban {$ban->getId()} set by {$username} for '{$ban->getReason()}' {$duration}");
279
-        }
280
-        else {
277
+        } else {
281 278
             $this->send("Ban {$ban->getId()} set by {$username} {$duration}");
282 279
         }
283 280
     }
Please login to merge, or discard this patch.