Passed
Push — master ( 4cf540...262368 )
by MusikAnimal
08:03
created
src/AppBundle/Repository/AutoEditsRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
  * This file contains only the AutoEditsRepository class.
4 4
  */
5 5
 
6
-declare(strict_types = 1);
6
+declare(strict_types=1);
7 7
 
8 8
 namespace AppBundle\Repository;
9 9
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             $tagJoin = "LEFT OUTER JOIN $tagTable ON ct_rev_id = rev_id";
89 89
             $condTools[] = "ct_tag_id IN ($tagIds)";
90 90
         }
91
-        $condTool = 'AND (' . implode(' OR ', $condTools) . ')';
91
+        $condTool = 'AND ('.implode(' OR ', $condTools).')';
92 92
 
93 93
         $sql = "SELECT COUNT(DISTINCT(rev_id))
94 94
                 FROM $revisionTable
@@ -315,8 +315,8 @@  discard block
 block discarded – undo
315 315
         }
316 316
 
317 317
         // Sort the array by count
318
-        uasort($results, function ($a, $b) {
319
-            return $b['count'] - $a['count'];
318
+        uasort($results, function($a, $b) {
319
+            return $b['count']-$a['count'];
320 320
         });
321 321
 
322 322
         // Cache and return.
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
             if ('' === $condTool) {
416 416
                 $condTool = $tagClause;
417 417
             } else {
418
-                $condTool = '(' . $condTool . " OR $tagClause)";
418
+                $condTool = '('.$condTool." OR $tagClause)";
419 419
             }
420 420
         }
421 421
 
Please login to merge, or discard this patch.