Passed
Push — main ( 673ae4...471307 )
by MusikAnimal
03:34
created
src/Controller/TopEditsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         // Send all to the template.
178 178
         return $this->getFormattedResponse('topedits/result_page', [
179 179
             'xtPage' => 'TopEdits',
180
-            'xtTitle' => $this->user->getUsername() . ' - ' . $this->page->getTitle(),
180
+            'xtTitle' => $this->user->getUsername().' - '.$this->page->getTitle(),
181 181
             'te' => $topEdits,
182 182
         ]);
183 183
     }
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
         $topEdits->prepareData();
316 316
 
317 317
         return $this->getFormattedApiResponse([
318
-            'top_edits' => array_map(function (Edit $edit) {
318
+            'top_edits' => array_map(function(Edit $edit) {
319 319
                 return $edit->getForJson();
320 320
             }, $topEdits->getTopEdits()),
321 321
         ]);
Please login to merge, or discard this patch.
src/Model/AutoEdits.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\Model;
6 6
 
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         );
178 178
 
179 179
         if ($forJson) {
180
-            return array_map(function (Edit $edit) {
180
+            return array_map(function(Edit $edit) {
181 181
                 return $edit->getForJson();
182 182
             }, $this->nonAutomatedEdits);
183 183
         }
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
         );
218 218
 
219 219
         if ($forJson) {
220
-            return array_map(function (Edit $edit) {
220
+            return array_map(function(Edit $edit) {
221 221
                 return $edit->getForJson();
222 222
             }, $this->automatedEdits);
223 223
         }
@@ -269,8 +269,8 @@  discard block
 block discarded – undo
269 269
     public function getToolsTotal(): int
270 270
     {
271 271
         if (!isset($this->toolsTotal)) {
272
-            $this->toolsTotal = array_reduce($this->getToolCounts(), function ($a, $b) {
273
-                return $a + $b['count'];
272
+            $this->toolsTotal = array_reduce($this->getToolCounts(), function($a, $b) {
273
+                return $a+$b['count'];
274 274
             });
275 275
         }
276 276
 
Please login to merge, or discard this patch.