@@ -3,7 +3,7 @@ |
||
| 3 | 3 | * This file contains only the PagesRepository class. |
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | -declare(strict_types = 1); |
|
| 6 | +declare(strict_types=1); |
|
| 7 | 7 | |
| 8 | 8 | namespace AppBundle\Repository; |
| 9 | 9 | |
@@ -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 | |
@@ -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 | $userClause = $user->isAnon() ? 'rev_user_text = :username' : 'rev_user = :userId'; |
| 96 | 96 | |
| 97 | 97 | $sql = "SELECT COUNT(DISTINCT(rev_id)) |
@@ -327,8 +327,8 @@ discard block |
||
| 327 | 327 | } |
| 328 | 328 | |
| 329 | 329 | // Sort the array by count |
| 330 | - uasort($results, function ($a, $b) { |
|
| 331 | - return $b['count'] - $a['count']; |
|
| 330 | + uasort($results, function($a, $b) { |
|
| 331 | + return $b['count']-$a['count']; |
|
| 332 | 332 | }); |
| 333 | 333 | |
| 334 | 334 | // Cache and return. |
@@ -432,7 +432,7 @@ discard block |
||
| 432 | 432 | if ('' === $condTool) { |
| 433 | 433 | $condTool = $tagClause; |
| 434 | 434 | } else { |
| 435 | - $condTool = '(' . $condTool . " OR $tagClause)"; |
|
| 435 | + $condTool = '('.$condTool." OR $tagClause)"; |
|
| 436 | 436 | } |
| 437 | 437 | } |
| 438 | 438 | |