Passed
Push — swagger-docs ( 6837d7 )
by MusikAnimal
11:33
created
src/Controller/AutomatedEditsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -335,7 +335,7 @@
 block discarded – undo
335 335
             'total_editcount' => $this->autoEdits->getEditCount(),
336 336
             'automated_editcount' => $this->autoEdits->getAutomatedCount(),
337 337
         ];
338
-        $ret['nonautomated_editcount'] = $ret['total_editcount'] - $ret['automated_editcount'];
338
+        $ret['nonautomated_editcount'] = $ret['total_editcount']-$ret['automated_editcount'];
339 339
 
340 340
         if ($this->getBoolVal('tools')) {
341 341
             $tools = $this->autoEdits->getToolCounts();
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
 
@@ -161,10 +161,10 @@  discard block
 block discarded – undo
161 161
         ])->fetchAllAssociative();
162 162
 
163 163
         $logCounts = array_combine(
164
-            array_map(function ($e) {
164
+            array_map(function($e) {
165 165
                 return $e['source'];
166 166
             }, $results),
167
-            array_map(function ($e) {
167
+            array_map(function($e) {
168 168
                 return (int)$e['value'];
169 169
             }, $results)
170 170
         );
@@ -244,10 +244,10 @@  discard block
 block discarded – undo
244 244
         }
245 245
 
246 246
         $counts = array_combine(
247
-            array_map(function ($e) {
247
+            array_map(function($e) {
248 248
                 return $e['key'];
249 249
             }, $results),
250
-            array_map(function ($e) {
250
+            array_map(function($e) {
251 251
                 return (int)$e['val'];
252 252
             }, $results)
253 253
         );
@@ -429,9 +429,9 @@  discard block
 block discarded – undo
429 429
 
430 430
         $results = $this->executeProjectsQuery($project, $sql, $params)->fetchAll();
431 431
 
432
-        $namespaceTotals = array_combine(array_map(function ($e) {
432
+        $namespaceTotals = array_combine(array_map(function($e) {
433 433
             return $e['namespace'];
434
-        }, $results), array_map(function ($e) {
434
+        }, $results), array_map(function($e) {
435 435
             return (int)$e['total'];
436 436
         }, $results));
437 437
 
Please login to merge, or discard this patch.