Failed Conditions
Pull Request — bugsquish (#573)
by Simon
03:02 queued 49s
created
includes/DataObjects/Ban.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -352,7 +352,7 @@
 block discarded – undo
352 352
      */
353 353
     public function setIp(?string $ip, ?int $mask): void
354 354
     {
355
-        if($ip === null) {
355
+        if ($ip === null) {
356 356
             $this->ip = null;
357 357
         } else {
358 358
             $this->ip = inet_pton($ip);
Please login to merge, or discard this patch.
includes/Pages/PageBan.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             return;
51 51
         }
52 52
 
53
-        $idList = explode(',',$rawIdList);
53
+        $idList = explode(',', $rawIdList);
54 54
 
55 55
         $bans = Ban::getByIdList($idList, $this->getDatabase());
56 56
 
@@ -188,16 +188,16 @@  discard block
 block discarded – undo
188 188
         $targetMask = null;
189 189
 
190 190
         // check the user is allowed to use provided targets
191
-        if(!$this->barrierTest('name', $user, 'BanType')) {
191
+        if (!$this->barrierTest('name', $user, 'BanType')) {
192 192
             $targetName = null;
193 193
         }
194
-        if(!$this->barrierTest('ip', $user, 'BanType')) {
194
+        if (!$this->barrierTest('ip', $user, 'BanType')) {
195 195
             $targetIp = null;
196 196
         }
197
-        if(!$this->barrierTest('email', $user, 'BanType')) {
197
+        if (!$this->barrierTest('email', $user, 'BanType')) {
198 198
             $targetEmail = null;
199 199
         }
200
-        if(!$this->barrierTest('useragent', $user, 'BanType')) {
200
+        if (!$this->barrierTest('useragent', $user, 'BanType')) {
201 201
             $targetUseragent = null;
202 202
         }
203 203
 
Please login to merge, or discard this patch.