Passed
Push — master ( 4c7d84...48da0f )
by MusikAnimal
04:20
created
src/Xtools/UserRepository.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -251,8 +251,8 @@  discard block
 block discarded – undo
251 251
                 FROM $pageTable
252 252
                 JOIN $revisionTable ON page_id = rev_page
253 253
                 $paJoin
254
-                WHERE $whereRev AND rev_parent_id = '0' $namespaceConditionRev $redirectCondition" .
255
-                ($hasPageAssessments ? 'GROUP BY rev_page' : '') . "
254
+                WHERE $whereRev AND rev_parent_id = '0' $namespaceConditionRev $redirectCondition".
255
+                ($hasPageAssessments ? 'GROUP BY rev_page' : '')."
256 256
             )
257 257
 
258 258
             UNION
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
             $tagJoin = $tags != '' ? "LEFT OUTER JOIN $tagTable ON ct_rev_id = rev_id" : '';
355 355
             $condTools[] = "ct_tag IN ($tags)";
356 356
         }
357
-        $condTool = 'AND (' . implode(' OR ', $condTools) . ')';
357
+        $condTool = 'AND ('.implode(' OR ', $condTools).')';
358 358
 
359 359
         $sql = "SELECT COUNT(DISTINCT(rev_id))
360 360
                 FROM $revisionTable
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
                 $condEnd";
368 368
 
369 369
         $resultQuery = $this->executeQuery($sql, $user, $namespace, $start, $end);
370
-        $result = (int) $resultQuery->fetchColumn();
370
+        $result = (int)$resultQuery->fetchColumn();
371 371
 
372 372
         // Cache for 10 minutes, and return.
373 373
         $this->setCache($cacheKey, $result);
@@ -496,8 +496,8 @@  discard block
 block discarded – undo
496 496
         }
497 497
 
498 498
         // Sort the array by count
499
-        uasort($results, function ($a, $b) {
500
-            return $b['count'] - $a['count'];
499
+        uasort($results, function($a, $b) {
500
+            return $b['count']-$a['count'];
501 501
         });
502 502
 
503 503
         // Cache for 10 minutes, and return.
@@ -541,7 +541,7 @@  discard block
 block discarded – undo
541 541
 
542 542
             // Developer error, no regex or tag provided for this tool.
543 543
             if ($condTool === '') {
544
-                throw new Exception("No regex or tag found for the tool $toolname. " .
544
+                throw new Exception("No regex or tag found for the tool $toolname. ".
545 545
                     "Please verify this entry in semi_automated.yml");
546 546
             }
547 547
 
@@ -606,7 +606,7 @@  discard block
 block discarded – undo
606 606
             if ($condTool === '') {
607 607
                 $condTool = "ct_tag = $tag";
608 608
             } else {
609
-                $condTool = '(' . $condTool . " OR ct_tag = $tag)";
609
+                $condTool = '('.$condTool." OR ct_tag = $tag)";
610 610
             }
611 611
         }
612 612
 
Please login to merge, or discard this patch.