Passed
Push — master ( 7b249e...5880d1 )
by MusikAnimal
07:38
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
                     (
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             $tagJoin = "LEFT OUTER JOIN $tagTable ON ct_rev_id = rev_id";
92 92
             $condTools[] = "ct_tag_id IN ($tagIds)";
93 93
         }
94
-        $condTool = 'AND (' . implode(' OR ', $condTools) . ')';
94
+        $condTool = 'AND ('.implode(' OR ', $condTools).')';
95 95
 
96 96
         $sql = "SELECT COUNT(DISTINCT(rev_id))
97 97
                 FROM $revisionTable
@@ -311,8 +311,8 @@  discard block
 block discarded – undo
311 311
         }
312 312
 
313 313
         // Sort the array by count
314
-        uasort($results, function ($a, $b) {
315
-            return $b['count'] - $a['count'];
314
+        uasort($results, function($a, $b) {
315
+            return $b['count']-$a['count'];
316 316
         });
317 317
 
318 318
         // Cache and return.
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
 
513 513
         if ($tagExcludes && 1 === count($tagIds)) {
514 514
             // Get tag IDs, filtering out those for which no ID exists (meaning there is no local tag for that tool).
515
-            $excludesList = implode(',', array_filter(array_map(function ($tagName) use ($project) {
515
+            $excludesList = implode(',', array_filter(array_map(function($tagName) use ($project) {
516 516
                 return $this->getTags($project)[$tagName] ?? null;
517 517
             }, $tagExcludes)));
518 518
 
Please login to merge, or discard this patch.