Passed
Push — comment-flagging ( 6669bb...9d978e )
by Simon
06:56 queued 02:53
created
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/IdentificationVerifier.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@
 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
-        } 
193
+        }
194 194
         catch (CurlException $ex) {
195 195
             // failed getting identification status, so throw a nicer error.
196 196
             $message = 'Could not contact metawiki API to determine user\' identification status. '
Please login to merge, or discard this patch.
includes/DataObjects/Request.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -376,7 +376,8 @@
 block discarded – undo
376 376
         return new DateTime($logTime);
377 377
     }
378 378
 
379
-    public function getLastUpdated() {
379
+    public function getLastUpdated()
380
+    {
380 381
         $logQuery = $this->dbObject->prepare(<<<SQL
381 382
 SELECT max(d.ts) FROM (
382 383
     SELECT r.date AS ts FROM request r WHERE r.id = :requestr
Please login to merge, or discard this patch.
includes/Validation/RequestValidationHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
         }
105 105
 
106 106
         // name is too long
107
-        if (mb_strlen(trim($request->getName())) > 500 ) {
107
+        if (mb_strlen(trim($request->getName())) > 500) {
108 108
             $errorList[ValidationError::NAME_EMPTY] = new ValidationError(ValidationError::NAME_TOO_LONG);
109 109
         }
110 110
 
Please login to merge, or discard this patch.
includes/Pages/PageExpandedRequestList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      */
28 28
     protected function main()
29 29
     {
30
-        if(WebRequest::getString('queue') === null) {
30
+        if (WebRequest::getString('queue') === null) {
31 31
             $this->redirect('');
32 32
             return;
33 33
         }
Please login to merge, or discard this patch.
includes/Pages/PageMain.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
         $requestsByQueue = $search->fetchByQueue(array_keys($queuesById));
184 184
 
185 185
         foreach ($requestsByQueue as $queueId => $queueData) {
186
-            if($queueData['count'] > 0 || $queuesById[$queueId]->isEnabled()) {
186
+            if ($queueData['count'] > 0 || $queuesById[$queueId]->isEnabled()) {
187 187
                 $requestSectionData[$queuesById[$queueId]->getHeader()] = array(
188 188
                     'requests' => $this->prepareRequestData($queueData['data']),
189 189
                     'total'    => $queueData['count'],
Please login to merge, or discard this patch.
includes/Pages/PageListFlaggedComments.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             if ($object->getVisibility() == 'requester' || $object->getVisibility() == 'user') {
49 49
                 $this->copyCommentData($object, $data, $database);
50 50
             }
51
-            elseif($object->getVisibility() == 'admin') {
51
+            elseif ($object->getVisibility() == 'admin') {
52 52
                 if ($seeRestrictedComments) {
53 53
                     $this->copyCommentData($object, $data, $database);
54 54
                 }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                     $data['hidden'] = true;
57 57
                 }
58 58
             }
59
-            elseif($object->getVisibility() == 'checkuser') {
59
+            elseif ($object->getVisibility() == 'checkuser') {
60 60
                 if ($seeCheckuserComments) {
61 61
                     $this->copyCommentData($object, $data, $database);
62 62
                 }
Please login to merge, or discard this patch.
includes/ConsoleTasks/RunJobQueueTask.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,8 @@
 block discarded – undo
117 117
                     Logger::backgroundJobIssue($this->getDatabase(), $job);
118 118
 
119 119
                     $database->commit();
120
-                } catch (Exception $ex) {
120
+                }
121
+                catch (Exception $ex) {
121 122
                     // oops, something went horribly wrong trying to handle this in a nice way; let's just fall back to
122 123
                     // logging this to disk for a tool root to investigate.
123 124
                     ExceptionHandler::logExceptionToDisk($ex, $this->getSiteConfiguration());
Please login to merge, or discard this patch.