Passed
Push — flex ( 91a41f )
by MusikAnimal
07:11
created
src/Repository/EditSummaryRepository.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/UserRepository.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/AdminScoreRepository.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/EditCounterRepository.php 1 patch
Spacing   +7 added lines, -7 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\Repository;
6 6
 
@@ -173,10 +173,10 @@  discard block
 block discarded – undo
173 173
         ])->fetchAllAssociative();
174 174
 
175 175
         $logCounts = array_combine(
176
-            array_map(function ($e) {
176
+            array_map(function($e) {
177 177
                 return $e['source'];
178 178
             }, $results),
179
-            array_map(function ($e) {
179
+            array_map(function($e) {
180 180
                 return (int)$e['value'];
181 181
             }, $results)
182 182
         );
@@ -256,10 +256,10 @@  discard block
 block discarded – undo
256 256
         }
257 257
 
258 258
         $counts = array_combine(
259
-            array_map(function ($e) {
259
+            array_map(function($e) {
260 260
                 return $e['key'];
261 261
             }, $results),
262
-            array_map(function ($e) {
262
+            array_map(function($e) {
263 263
                 return (int)$e['val'];
264 264
             }, $results)
265 265
         );
@@ -441,9 +441,9 @@  discard block
 block discarded – undo
441 441
 
442 442
         $results = $this->executeProjectsQuery($project, $sql, $params)->fetchAll();
443 443
 
444
-        $namespaceTotals = array_combine(array_map(function ($e) {
444
+        $namespaceTotals = array_combine(array_map(function($e) {
445 445
             return $e['page_namespace'];
446
-        }, $results), array_map(function ($e) {
446
+        }, $results), array_map(function($e) {
447 447
             return (int)$e['total'];
448 448
         }, $results));
449 449
 
Please login to merge, or discard this patch.
src/Repository/AdminStatsRepository.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
@@ -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/TopEditsRepository.php 1 patch
Spacing   +3 added lines, -3 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\Repository;
6 6
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $hasPageAssessments = $this->isWMF && $project->hasPageAssessments() && 0 === $namespace;
87 87
         $paTable = $project->getTableName('page_assessments');
88 88
         $paSelect = $hasPageAssessments
89
-            ?  ", (
89
+            ? ", (
90 90
                     SELECT pa_class
91 91
                     FROM $paTable
92 92
                     WHERE pa_page_id = page_id
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
         $hasPageAssessments = $this->isWMF && $project->hasPageAssessments();
201 201
         $pageAssessmentsTable = $this->getTableName($project->getDatabaseName(), 'page_assessments');
202 202
         $paSelect = $hasPageAssessments
203
-            ?  ", (
203
+            ? ", (
204 204
                     SELECT pa_class
205 205
                     FROM $pageAssessmentsTable
206 206
                     WHERE pa_page_id = e.page_id
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
@@ -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\Repository;
6 6
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         $revDateConditions = $this->getDateConditions($start, $end, false, "$ipcTable.", 'ipc_rev_timestamp');
120 120
         [$startHex, $endHex] = IPUtils::parseRange($user->getUsername());
121 121
 
122
-        $revNamespaceJoinSql = 'all' === $namespace ? '' : "JOIN $revTable ON rev_id = ipc_rev_id " .
122
+        $revNamespaceJoinSql = 'all' === $namespace ? '' : "JOIN $revTable ON rev_id = ipc_rev_id ".
123 123
             "JOIN $pageTable ON rev_page = page_id";
124 124
         $revNamespaceWhereSql = 'all' === $namespace ? '' : "AND page_namespace = $namespace";
125 125
 
Please login to merge, or discard this patch.
src/Repository/UserRightsRepository.php 1 patch
Spacing   +3 added lines, -3 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\Repository;
6 6
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             return $this->cache->getItem($cacheKey)->get();
114 114
         }
115 115
 
116
-        $rightsPaths = array_map(function ($right) {
116
+        $rightsPaths = array_map(function($right) {
117 117
             return "Group-$right-member";
118 118
         }, $this->getRawRightsNames($project));
119 119
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
                 FROM $revisionTable
257 257
                 WHERE rev_actor = :actorId
258 258
                 AND rev_timestamp >= $offset
259
-                LIMIT 1 OFFSET ".($edits - 1);
259
+                LIMIT 1 OFFSET ".($edits-1);
260 260
 
261 261
         $ret = $this->executeProjectsQuery($project, $sql, [
262 262
             'actorId' => $user->getActorId($project),
Please login to merge, or discard this patch.