Passed
Push — symfony-upgrade ( d3a256...8f42b6 )
by MusikAnimal
04:15
created
src/Repository/LargestPagesRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace App\Repository;
5 5
 
Please login to merge, or discard this patch.
src/Repository/PageAssessmentsRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
  * This file contains only the PageAssessmentsRepository class.
4 4
  */
5 5
 
6
-declare(strict_types = 1);
6
+declare(strict_types=1);
7 7
 
8 8
 namespace App\Repository;
9 9
 
Please login to merge, or discard this patch.
src/Repository/UserRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
  * This file contains only the UserRepository class.
4 4
  */
5 5
 
6
-declare(strict_types = 1);
6
+declare(strict_types=1);
7 7
 
8 8
 namespace App\Repository;
9 9
 
Please login to merge, or discard this patch.
src/Repository/EditSummaryRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
  * This file contains only the EditSummaryRepository class.
4 4
  */
5 5
 
6
-declare(strict_types = 1);
6
+declare(strict_types=1);
7 7
 
8 8
 namespace App\Repository;
9 9
 
Please login to merge, or discard this patch.
src/Repository/GlobalContribsRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace App\Repository;
5 5
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             $slice = $this->getDbList()[$dbName];
175 175
             // actor_revision table only includes users who have made at least one edit.
176 176
             $actorTable = $this->getTableName($dbName, 'actor', 'revision');
177
-            $queriesBySlice[$slice][] = "SELECT '$dbName' AS `dbName`, actor_id " .
177
+            $queriesBySlice[$slice][] = "SELECT '$dbName' AS `dbName`, actor_id ".
178 178
                 "FROM $actorTable WHERE $whereClause";
179 179
         }
180 180
 
@@ -309,13 +309,13 @@  discard block
 block discarded – undo
309 309
         // Re-assemble into UNIONed queries, executing as many per slice as possible.
310 310
         $revisions = [];
311 311
         foreach ($queriesBySlice as $slice => $queries) {
312
-            $sql = "SELECT * FROM ((\n" . join("\n) UNION (\n", $queries) . ")) a ORDER BY timestamp DESC LIMIT $limit";
312
+            $sql = "SELECT * FROM ((\n".join("\n) UNION (\n", $queries).")) a ORDER BY timestamp DESC LIMIT $limit";
313 313
             $revisions = array_merge($revisions, $this->executeProjectsQuery($slice, $sql)->fetchAll());
314 314
         }
315 315
 
316 316
         // If there are more than $limit results, re-sort by timestamp.
317 317
         if (count($revisions) > $limit) {
318
-            usort($revisions, function ($a, $b) {
318
+            usort($revisions, function($a, $b) {
319 319
                 if ($a['unix_timestamp'] === $b['unix_timestamp']) {
320 320
                     return 0;
321 321
                 }
Please login to merge, or discard this patch.
src/Repository/PagesRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
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 App\Repository;
9 9
 
Please login to merge, or discard this patch.
src/Repository/SimpleEditCounterRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
  * This file contains only the SimpleEditCounterRepository class.
4 4
  */
5 5
 
6
-declare(strict_types = 1);
6
+declare(strict_types=1);
7 7
 
8 8
 namespace App\Repository;
9 9
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         $revDateConditions = $this->getDateConditions($start, $end, false, "$ipcTable.", 'ipc_rev_timestamp');
123 123
         [$startHex, $endHex] = IPUtils::parseRange($user->getUsername());
124 124
 
125
-        $revNamespaceJoinSql = 'all' === $namespace ? '' : "JOIN $revTable ON rev_id = ipc_rev_id " .
125
+        $revNamespaceJoinSql = 'all' === $namespace ? '' : "JOIN $revTable ON rev_id = ipc_rev_id ".
126 126
             "JOIN $pageTable ON rev_page = page_id";
127 127
         $revNamespaceWhereSql = 'all' === $namespace ? '' : "AND page_namespace = $namespace";
128 128
 
Please login to merge, or discard this patch.
src/Repository/CategoryEditsRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
  * This file contains only the CategoryEditsRepository class.
4 4
  */
5 5
 
6
-declare(strict_types = 1);
6
+declare(strict_types=1);
7 7
 
8 8
 namespace App\Repository;
9 9
 
Please login to merge, or discard this patch.
src/Repository/AdminScoreRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
  * This file contains only the AdminScoreRepository class.
4 4
  */
5 5
 
6
-declare(strict_types = 1);
6
+declare(strict_types=1);
7 7
 
8 8
 namespace App\Repository;
9 9
 
Please login to merge, or discard this patch.