@@ -3,7 +3,7 @@ discard block |
||
| 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 | |
@@ -280,10 +280,10 @@ discard block |
||
| 280 | 280 | FROM $pageTable |
| 281 | 281 | JOIN $revisionTable ON page_id = rev_page |
| 282 | 282 | LEFT JOIN $pageAssessmentsTable ON rev_page = pa_page_id |
| 283 | - WHERE " . $conditions['whereRev'] . " |
|
| 283 | + WHERE ".$conditions['whereRev']." |
|
| 284 | 284 | AND rev_parent_id = '0'" . |
| 285 | - $conditions['namespaceRev'] . |
|
| 286 | - $conditions['redirects'] . " |
|
| 285 | + $conditions['namespaceRev']. |
|
| 286 | + $conditions['redirects']." |
|
| 287 | 287 | GROUP BY page_id |
| 288 | 288 | ) a |
| 289 | 289 | GROUP BY pa_class"; |
@@ -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 | |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | $tagJoin = "LEFT OUTER JOIN $tagTable ON ct_rev_id = rev_id"; |
| 89 | 89 | $condTools[] = "ct_tag_id IN ($tagIds)"; |
| 90 | 90 | } |
| 91 | - $condTool = 'AND (' . implode(' OR ', $condTools) . ')'; |
|
| 91 | + $condTool = 'AND ('.implode(' OR ', $condTools).')'; |
|
| 92 | 92 | |
| 93 | 93 | $sql = "SELECT COUNT(DISTINCT(rev_id)) |
| 94 | 94 | FROM $revisionTable |
@@ -315,8 +315,8 @@ discard block |
||
| 315 | 315 | } |
| 316 | 316 | |
| 317 | 317 | // Sort the array by count |
| 318 | - uasort($results, function ($a, $b) { |
|
| 319 | - return $b['count'] - $a['count']; |
|
| 318 | + uasort($results, function($a, $b) { |
|
| 319 | + return $b['count']-$a['count']; |
|
| 320 | 320 | }); |
| 321 | 321 | |
| 322 | 322 | // Cache and return. |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | if ('' === $condTool) { |
| 416 | 416 | $condTool = $tagClause; |
| 417 | 417 | } else { |
| 418 | - $condTool = '(' . $condTool . " OR $tagClause)"; |
|
| 418 | + $condTool = '('.$condTool." OR $tagClause)"; |
|
| 419 | 419 | } |
| 420 | 420 | } |
| 421 | 421 | |