Test Failed
Push — master ( b294c0...d4cc1f )
by MusikAnimal
03:12
created
src/Xtools/AutoEditsRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             $tagJoin = $tags != '' ? "LEFT OUTER JOIN $tagTable ON ct_rev_id = rev_id" : '';
86 86
             $condTools[] = "ct_tag IN ($tags)";
87 87
         }
88
-        $condTool = 'AND (' . implode(' OR ', $condTools) . ')';
88
+        $condTool = 'AND ('.implode(' OR ', $condTools).')';
89 89
 
90 90
         $sql = "SELECT COUNT(DISTINCT(rev_id))
91 91
                 FROM $revisionTable
@@ -316,8 +316,8 @@  discard block
 block discarded – undo
316 316
         }
317 317
 
318 318
         // Sort the array by count
319
-        uasort($results, function ($a, $b) {
320
-            return $b['count'] - $a['count'];
319
+        uasort($results, function($a, $b) {
320
+            return $b['count']-$a['count'];
321 321
         });
322 322
 
323 323
         // Cache and return.
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
 
358 358
             // Developer error, no regex or tag provided for this tool.
359 359
             if ($condTool === '') {
360
-                throw new Exception("No regex or tag found for the tool $toolname. " .
360
+                throw new Exception("No regex or tag found for the tool $toolname. ".
361 361
                     "Please verify this entry in semi_automated.yml");
362 362
             }
363 363
 
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
             if ($condTool === '') {
415 415
                 $condTool = $tagClause;
416 416
             } else {
417
-                $condTool = '(' . $condTool . " OR $tagClause)";
417
+                $condTool = '('.$condTool." OR $tagClause)";
418 418
             }
419 419
         }
420 420
 
Please login to merge, or discard this patch.