Passed
Push — dark-mode-theme-fix ( 63f6e7...8bfe2f )
by Simon
22:14 queued 18:26
created
includes/ConsoleTasks/RunJobQueueTask.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,8 @@
 block discarded – undo
131 131
         $task->setNotificationHelper($this->getNotificationHelper());
132 132
     }
133 133
 
134
-    public static function errorHandler($errno, $errstr, $errfile, $errline) {
134
+    public static function errorHandler($errno, $errstr, $errfile, $errline)
135
+    {
135 136
         throw new Exception($errfile . "@" . $errline . ": " . $errstr);
136 137
     }
137 138
 }
Please login to merge, or discard this patch.
includes/Security/CredentialProviders/PasswordCredentialProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,7 @@
 block discarded – undo
30 30
     public function authenticate(User $user, $data)
31 31
     {
32 32
         $storedData = $this->getCredentialData($user->getId());
33
-        if($storedData === null)
34
-        {
33
+        if($storedData === null) {
35 34
             // No available credential matching these parameters
36 35
             return false;
37 36
         }
Please login to merge, or discard this patch.
includes/IdentificationVerifier.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,8 @@
 block discarded – undo
190 190
             $endpoint = $this->siteConfiguration->getMetaWikimediaWebServiceEndpoint();
191 191
             $response = $this->httpHelper->get($endpoint, $parameters);
192 192
             $response = json_decode($response, true);
193
-        } catch (CurlException $ex) {
193
+        }
194
+        catch (CurlException $ex) {
194 195
             // failed getting identification status, so throw a nicer error.
195 196
             $message = 'Could not contact metawiki API to determine user\' identification status. '
196 197
                 . 'This is probably a transient error, so please try again.';
Please login to merge, or discard this patch.
includes/Pages/PageViewRequest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,8 @@
 block discarded – undo
214 214
                         'jobId'    => $job->getId(),
215 215
                         'jobDesc'  => JobQueue::getTaskDescriptions()[$job->getTask()],
216 216
                     );
217
-                } else {
217
+                }
218
+                else {
218 219
                     $requestLogs[] = array(
219 220
                         'type'     => 'log',
220 221
                         'security' => 'user',
Please login to merge, or discard this patch.
includes/DataObjects/WelcomeTemplate.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -182,13 +182,15 @@
 block discarded – undo
182 182
         return ((int)$this->deleted) === 1;
183 183
     }
184 184
 
185
-    public function getSectionHeader() {
185
+    public function getSectionHeader()
186
+    {
186 187
         // Hard-coded for future update ability to change this per-template. This has beem moved from being hard-coded
187 188
         // directly in the welcome task, and safely permits us to show the header in the welcome template preview
188 189
         return "Welcome!";
189 190
     }
190 191
 
191
-    public function getBotCodeForWikiSave(string $request, $creator) {
192
+    public function getBotCodeForWikiSave(string $request, $creator)
193
+    {
192 194
         $templateText = $this->getBotCode();
193 195
 
194 196
         $templateText = str_replace('$request', $request, $templateText);
Please login to merge, or discard this patch.
includes/Helpers/LogHelper.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -361,9 +361,10 @@
 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
-                } else {
366
+                }
367
+                else {
367 368
                     $description = 'Unknown task';
368 369
                 }
369 370
 
Please login to merge, or discard this patch.