Passed
Push — commit-assets ( bb8406 )
by MusikAnimal
06:08
created
src/Repository/BlameRepository.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/EditRepository.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/Model/Blame.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\Model;
5 5
 
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)->fetchAllAssociative());
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/Monolog/WebProcessorMonolog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace App\Monolog;
6 6
 
Please login to merge, or discard this patch.
src/Exception/XtoolsHttpException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace App\Exception;
6 6
 
Please login to merge, or discard this patch.
src/EventSubscriber/ExceptionListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace App\EventSubscriber;
6 6
 
Please login to merge, or discard this patch.
src/EventSubscriber/RateLimitSubscriber.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace App\EventSubscriber;
6 6
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
         $cacheItem = $this->cache->getItem($cacheKey);
141 141
 
142 142
         // If increment value already in cache, or start with 1.
143
-        $count = $cacheItem->isHit() ? (int) $cacheItem->get() + 1 : 1;
143
+        $count = $cacheItem->isHit() ? (int)$cacheItem->get()+1 : 1;
144 144
 
145 145
         // Check if limit has been exceeded, and if so, throw an error.
146 146
         if ($count > $this->rateLimit) {
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         $cacheItem = $this->cache->getItem($cacheKey);
181 181
 
182 182
         // If increment value already in cache, or start with 1.
183
-        $count = $cacheItem->isHit() ? (int)$cacheItem->get() + 1 : 1;
183
+        $count = $cacheItem->isHit() ? (int)$cacheItem->get()+1 : 1;
184 184
 
185 185
         // Check if limit has been exceeded, and if so, add a log entry.
186 186
         if ($count > 3) {
@@ -255,8 +255,8 @@  discard block
 block discarded – undo
255 255
         $message = $this->i18n->msg('error-rate-limit', [
256 256
             $this->rateDuration,
257 257
             "<a href='/login'>".$this->i18n->msg('error-rate-limit-login')."</a>",
258
-            "<a href='https://www.mediawiki.org/wiki/Special:MyLanguage/XTools/API' target='_blank'>" .
259
-                $this->i18n->msg('api') .
258
+            "<a href='https://www.mediawiki.org/wiki/Special:MyLanguage/XTools/API' target='_blank'>".
259
+                $this->i18n->msg('api').
260 260
             "</a>",
261 261
         ]);
262 262
 
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
@@ -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.