@@ -3,7 +3,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |