Passed
Push — custom-close-autocreate ( 87669d...bc5555 )
by Simon
07:18 queued 03:20
created
includes/ConsoleTasks/ClearOAuthDataTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         $users = UserSearchHelper::get($database)->inIds(
22 22
             $database->query('SELECT user FROM oauthtoken WHERE type = \'access\'')->fetchColumn());
23 23
 
24
-        foreach ($users as $u){
24
+        foreach ($users as $u) {
25 25
             $oauth = new OAuthUserHelper($u, $database, $this->getOAuthProtocolHelper(), $this->getSiteConfiguration());
26 26
             $oauth->detach();
27 27
         }
Please login to merge, or discard this patch.
includes/DataObjects/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -420,7 +420,7 @@
 block discarded – undo
420 420
             . '|' . $this->forwardedip  // } private data not known to those without access
421 421
             . '|' . $this->useragent    // }
422 422
             . '|' . $this->email        // }
423
-            . '|' . $this->status;      // to rudimentarily invalidate the token on status change
423
+            . '|' . $this->status; // to rudimentarily invalidate the token on status change
424 424
 
425 425
         return hash('sha256', $data);
426 426
     }
Please login to merge, or discard this patch.
includes/Pages/PageUserManagement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         $userSearchRequest = WebRequest::getString('usersearch');
41 41
         if ($userSearchRequest !== null) {
42 42
             $searchedUser = User::getByUsername($userSearchRequest, $database);
43
-            if($searchedUser !== false) {
43
+            if ($searchedUser !== false) {
44 44
                 $this->redirect('statistics/users', 'detail', ['user' => $searchedUser->getId()]);
45 45
                 return;
46 46
             }
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.
includes/Pages/RequestAction/PageCustomClose.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
         $creationTaskClass = null;
353 353
 
354 354
         if ($action === self::CREATE_OAUTH) {
355
-            if(!$canOauthCreate) {
355
+            if (!$canOauthCreate) {
356 356
                 throw new AccessDeniedException($this->getSecurityManager());
357 357
             }
358 358
 
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
                 } 
367 367
                 else {
Please login to merge, or discard this patch.
includes/Tasks/PageBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -321,7 +321,7 @@
 block discarded – undo
321 321
      */
322 322
     final protected function addJs($path)
323 323
     {
324
-        if (in_array($path, $this->extraJs)){
324
+        if (in_array($path, $this->extraJs)) {
325 325
             // nothing to do
326 326
             return;
327 327
         }
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
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
         // <https://accounts.wmflabs.org/wiki/Help:Introduction>
123 123
         // The code currently assumes that the template was parsed for enwiki, and will need to be
124 124
         // updated once other wikis are supported.
125
-        $templateHtml = preg_replace('/(<a href=")(\/wiki\/)/', '$1//en.wikipedia.org$2', $templateHtml );
125
+        $templateHtml = preg_replace('/(<a href=")(\/wiki\/)/', '$1//en.wikipedia.org$2', $templateHtml);
126 126
 
127 127
         $this->assign('templateHtml', $templateHtml);
128 128
         $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.