Passed
Pull Request — master (#190)
by MusikAnimal
05:19
created
src/Xtools/AutoEditsRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             $tagJoin = $tags != '' ? "LEFT OUTER JOIN $tagTable ON ct_rev_id = rev_id" : '';
85 85
             $condTools[] = "ct_tag IN ($tags)";
86 86
         }
87
-        $condTool = 'AND (' . implode(' OR ', $condTools) . ')';
87
+        $condTool = 'AND ('.implode(' OR ', $condTools).')';
88 88
 
89 89
         $sql = "SELECT COUNT(DISTINCT(rev_id))
90 90
                 FROM $revisionTable
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                 $condEnd";
98 98
 
99 99
         $resultQuery = $this->executeQuery($sql, $user, $namespace, $start, $end);
100
-        $result = (int) $resultQuery->fetchColumn();
100
+        $result = (int)$resultQuery->fetchColumn();
101 101
 
102 102
         // Cache and return.
103 103
         $this->stopwatch->stop($cacheKey);
@@ -317,8 +317,8 @@  discard block
 block discarded – undo
317 317
         }
318 318
 
319 319
         // Sort the array by count
320
-        uasort($results, function ($a, $b) {
321
-            return $b['count'] - $a['count'];
320
+        uasort($results, function($a, $b) {
321
+            return $b['count']-$a['count'];
322 322
         });
323 323
 
324 324
         // Cache and return.
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
 
360 360
             // Developer error, no regex or tag provided for this tool.
361 361
             if ($condTool === '') {
362
-                throw new Exception("No regex or tag found for the tool $toolname. " .
362
+                throw new Exception("No regex or tag found for the tool $toolname. ".
363 363
                     "Please verify this entry in semi_automated.yml");
364 364
             }
365 365
 
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
             if ($condTool === '') {
417 417
                 $condTool = $tagClause;
418 418
             } else {
419
-                $condTool = '(' . $condTool . " OR $tagClause)";
419
+                $condTool = '('.$condTool." OR $tagClause)";
420 420
             }
421 421
         }
422 422
 
Please login to merge, or discard this patch.