@@ -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 | ( |
@@ -91,7 +91,7 @@ discard block |
||
| 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 |
||
| 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. |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | if (isset($values['tags'])) { |
| 485 | 485 | $tags = array_merge( |
| 486 | 486 | $tags, |
| 487 | - array_map(function ($tag) use ($conn) { |
|
| 487 | + array_map(function($tag) use ($conn) { |
|
| 488 | 488 | return $conn->quote($tag, \PDO::PARAM_STR); |
| 489 | 489 | }, $values['tags']) |
| 490 | 490 | ); |
@@ -518,7 +518,7 @@ discard block |
||
| 518 | 518 | |
| 519 | 519 | if ($tagExcludes && 1 === count($tagIds)) { |
| 520 | 520 | // Get tag IDs, filtering out those for which no ID exists (meaning there is no local tag for that tool). |
| 521 | - $excludesList = implode(',', array_filter(array_map(function ($tagName) use ($project) { |
|
| 521 | + $excludesList = implode(',', array_filter(array_map(function($tagName) use ($project) { |
|
| 522 | 522 | return $this->getTags($project)[$tagName] ?? null; |
| 523 | 523 | }, $tagExcludes))); |
| 524 | 524 | |