Passed
Push — master ( 244b80...613e0d )
by MusikAnimal
06:01
created
src/AppBundle/Repository/AutoEditsRepository.php 1 patch
Spacing   +6 added lines, -6 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
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         if ('all' !== $namespace) {
38 38
             // Limit by namespace.
39
-            return array_filter($this->aeTools, function (array $tool) use ($namespace) {
39
+            return array_filter($this->aeTools, function(array $tool) use ($namespace) {
40 40
                 return empty($tool['namespaces']) ||
41 41
                     in_array((int)$namespace, $tool['namespaces']) ||
42 42
                     (
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             $tagJoin = "LEFT OUTER JOIN $tagTable ON ct_rev_id = rev_id";
104 104
             $condTools[] = "ct_tag_id IN ($tagIds)";
105 105
         }
106
-        $condTool = 'AND (' . implode(' OR ', $condTools) . ')';
106
+        $condTool = 'AND ('.implode(' OR ', $condTools).')';
107 107
 
108 108
         $sql = "SELECT COUNT(DISTINCT(rev_id))
109 109
                 FROM $revisionTable
@@ -336,8 +336,8 @@  discard block
 block discarded – undo
336 336
         }
337 337
 
338 338
         // Sort the array by count
339
-        uasort($results, function ($a, $b) {
340
-            return $b['count'] - $a['count'];
339
+        uasort($results, function($a, $b) {
340
+            return $b['count']-$a['count'];
341 341
         });
342 342
 
343 343
         // Cache and return.
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
             if ('' === $condTool) {
439 439
                 $condTool = $tagClause;
440 440
             } else {
441
-                $condTool = '(' . $condTool . " OR $tagClause)";
441
+                $condTool = '('.$condTool." OR $tagClause)";
442 442
             }
443 443
         }
444 444
 
Please login to merge, or discard this patch.