Passed
Push — dependabot/composer/fortawesom... ( b43113 )
by
unknown
05:17
created
smarty-plugins/modifier.date.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@
 block discarded – undo
24 24
         $dateString = $date->format('Y-m-d H:i:s');
25 25
 
26 26
         return $dateString;
27
-    }
28
-    else {
27
+    } else {
29 28
         return $input;
30 29
     }
31 30
 }
32 31
\ No newline at end of file
Please login to merge, or discard this patch.
includes/ExceptionHandler.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,7 @@
 block discarded – undo
75 75
             ob_end_clean();
76 76
 
77 77
             $message = str_replace('$2$', $textErrorData, $message);
78
-        }
79
-        else {
78
+        } else {
80 79
             $message = str_replace('$2$', "", $message);
81 80
         }
82 81
 
Please login to merge, or discard this patch.
includes/Fragments/RequestData.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -295,8 +295,7 @@
 block discarded – undo
295 295
                 if (!$proxyIsInPrivateRange) {
296 296
                     $proxyReverseDns = $this->getRdnsProvider()->getReverseDNS($proxyAddress);
297 297
                     $proxyLocation = $this->getLocationProvider()->getIpLocation($proxyAddress);
298
-                }
299
-                else {
298
+                } else {
300 299
                     // this is going to fail, so why bother trying?
301 300
                     $proxyReverseDns = false;
302 301
                     $proxyLocation = false;
Please login to merge, or discard this patch.
includes/Helpers/BlacklistHelper.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,7 @@
 block discarded – undo
66 66
             $this->cache[$username] = false;
67 67
 
68 68
             return false;
69
-        }
70
-        else {
69
+        } else {
71 70
             $this->cache[$username] = $result;
72 71
 
73 72
             return $result['line'];
Please login to merge, or discard this patch.
includes/Security/SecurityManager.php 1 patch
Braces   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -196,18 +196,17 @@
 block discarded – undo
196 196
             if ($this->roleConfiguration->roleNeedsIdentification($v)) {
197 197
                 if ($identified) {
198 198
                     $activeRoles[] = $v;
199
-                }
200
-                else {
199
+                } else {
201 200
                     $inactiveRoles[] = $v;
202 201
                 }
203
-            }
204
-            else {
202
+            } else {
205 203
                 $activeRoles[] = $v;
206 204
             }
207 205
         }
208 206
     }
209 207
 
210
-    public function getRoleConfiguration(){
208
+    public function getRoleConfiguration()
209
+    {
211 210
         return $this->roleConfiguration;
212 211
     }
213 212
 }
Please login to merge, or discard this patch.
includes/WebStart.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,8 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
                 if ($siteConfiguration->getTitleBlacklistEnabled()) {
85 85
                     $page->setBlacklistHelper(new FakeBlacklistHelper());
86
-                }
87
-                else {
86
+                } else {
88 87
                     $page->setBlacklistHelper(new BlacklistHelper($page->getHttpHelper(),
89 88
                         $siteConfiguration->getMediawikiWebServiceEndpoint()));
90 89
                 }
@@ -178,8 +177,7 @@  discard block
 block discarded – undo
178 177
 
179 178
         if ($siteConfiguration->getIrcNotificationsEnabled()) {
180 179
             $notificationsDatabase = PdoDatabase::getDatabaseConnection('notifications');
181
-        }
182
-        else {
180
+        } else {
183 181
             // @todo federated table here?
184 182
             $notificationsDatabase = $database;
185 183
         }
Please login to merge, or discard this patch.
includes/API/Actions/StatsAction.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,7 @@
 block discarded – undo
48 48
 
49 49
         if ($username !== null) {
50 50
             $user = User::getByUsername($username, $this->getDatabase());
51
-        }
52
-        else {
51
+        } else {
53 52
             $user = User::getByOnWikiUsername($wikiusername, $this->getDatabase());
54 53
         }
55 54
 
Please login to merge, or discard this patch.
includes/ConsoleStart.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
 
58 58
         if ($this->getConfiguration()->getIrcNotificationsEnabled()) {
59 59
             $notificationsDatabase = PdoDatabase::getDatabaseConnection('notifications');
60
-        }
61
-        else {
60
+        } else {
62 61
             // pass through null
63 62
             $notificationsDatabase = null;
64 63
         }
Please login to merge, or discard this patch.
includes/StringFunctions.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@
 block discarded – undo
78 78
     {
79 79
         if (ord($string) < 128) {
80 80
             return ucfirst($string);
81
-        }
82
-        else {
81
+        } else {
83 82
             return mb_strtoupper(mb_substr($string, 0, 1)) . mb_substr($string, 1);
84 83
         }
85 84
     }
Please login to merge, or discard this patch.