Failed Conditions
Pull Request — bugsquish (#573)
by Simon
11:01 queued 08:44
created
includes/DataObjects/Ban.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -354,7 +354,8 @@
 block discarded – undo
354 354
     {
355 355
         if($ip === null) {
356 356
             $this->ip = null;
357
-        } else {
357
+        }
358
+        else {
358 359
             $this->ip = inet_pton($ip);
359 360
         }
360 361
 
Please login to merge, or discard this patch.
includes/Pages/PageBan.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -215,7 +215,8 @@
 block discarded – undo
215 215
                 $ipParts = explode('/', $targetIp, 2);
216 216
                 $targetIp = $ipParts[0];
217 217
                 $targetMask = $ipParts[1];
218
-            } else {
218
+            }
219
+            else {
219 220
                 $targetMask = filter_var($targetIp, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) ? 128 : 32;
220 221
             }
221 222
 
Please login to merge, or discard this patch.