Passed
Push — dark-mode-theme-fix ( 63f6e7...8bfe2f )
by Simon
22:14 queued 18:26
created
includes/ConsoleTasks/RunJobQueueTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
                 // Create a task.
86 86
                 $taskName = $job->getTask();
87 87
 
88
-                if(!class_exists($taskName)) {
88
+                if (!class_exists($taskName)) {
89 89
                     throw new ApplicationLogicException('Job task does not exist');
90 90
                 }
91 91
 
Please login to merge, or discard this patch.
includes/Pages/PageWelcomeTemplateManagement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
         // <https://accounts.wmflabs.org/wiki/Help:Introduction>
108 108
         // The code currently assumes that the template was parsed for enwiki, and will need to be
109 109
         // updated once other wikis are supported.
110
-        $templateHtml = preg_replace( '/(<a href=")(\/wiki\/)/', '$1//en.wikipedia.org$2', $templateHtml );
110
+        $templateHtml = preg_replace('/(<a href=")(\/wiki\/)/', '$1//en.wikipedia.org$2', $templateHtml);
111 111
 
112 112
         $this->assign('templateHtml', $templateHtml);
113 113
         $this->assign('template', $template);
Please login to merge, or discard this patch.
includes/API/Actions/CountAction.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -115,14 +115,14 @@
 block discarded – undo
115 115
         // Each entry is in the form [ database string, attribute name ]
116 116
         // and it happens to be that the attribute is just the lower case form of the database value
117 117
         $actions = [
118
-            [ 'Suspended', 'suspended' ],
119
-            [ 'Promoted', 'promoted' ],
120
-            [ 'Approved', 'approved' ],
121
-            [ 'Demoted', 'demoted' ],
122
-            [ 'Declined', 'declined' ],
123
-            [ 'Renamed', 'renamed' ],
124
-            [ 'Edited', 'edited' ],
125
-            [ 'Prefchange', 'prefchange' ],
118
+            ['Suspended', 'suspended'],
119
+            ['Promoted', 'promoted'],
120
+            ['Approved', 'approved'],
121
+            ['Demoted', 'demoted'],
122
+            ['Declined', 'declined'],
123
+            ['Renamed', 'renamed'],
124
+            ['Edited', 'edited'],
125
+            ['Prefchange', 'prefchange'],
126 126
         ];
127 127
         foreach ($actions as $action) {
128 128
             $dbValue = $action[0];
Please login to merge, or discard this patch.
includes/Helpers/LogHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -361,7 +361,7 @@
 block discarded – undo
361 361
                 }
362 362
 
363 363
                 $task = $job->getTask();
364
-                if(isset($taskDescriptions[$task])){
364
+                if (isset($taskDescriptions[$task])) {
365 365
                     $description = $taskDescriptions[$task];
366 366
                 } else {
367 367
                     $description = 'Unknown task';
Please login to merge, or discard this patch.
includes/Fragments/RequestData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
         $emailDomain = explode("@", $request->getEmail())[1];
185 185
         $this->assign("emailurl", $emailDomain);
186 186
         $this->assign('commonEmailDomain', in_array(strtolower($emailDomain), $configuration->getCommonEmailDomains())
187
-            || $request->getEmail() === $this->getSiteConfiguration()->getDataClearEmail() );
187
+            || $request->getEmail() === $this->getSiteConfiguration()->getDataClearEmail());
188 188
 
189 189
         $trustedIp = $xffProvider->getTrustedClientIp($request->getIp(), $request->getForwardedIp());
190 190
         $this->assign('requestTrustedIp', $trustedIp);
Please login to merge, or discard this patch.