Passed
Push — main ( 4d1e20...1afd8a )
by MusikAnimal
03:23
created
src/Model/TopEdits.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\Model;
6 6
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     {
164 164
         $firstDateTime = $this->topEdits[0]->getTimestamp();
165 165
         $lastDateTime = end($this->topEdits)->getTimestamp();
166
-        $secs = $firstDateTime->getTimestamp() - $lastDateTime->getTimestamp();
166
+        $secs = $firstDateTime->getTimestamp()-$lastDateTime->getTimestamp();
167 167
         $days = $secs / (60 * 60 * 24);
168 168
         return $days / count($this->topEdits);
169 169
     }
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
         if ($format) {
266 266
             return $this->formatTopEditsPage($revs);
267 267
         } else {
268
-            return array_map(function ($rev) {
268
+            return array_map(function($rev) {
269 269
                 $rev['minor'] = (bool)$rev['minor'];
270 270
                 $rev['reverted'] = (bool)$rev['reverted'];
271 271
                 return $rev;
Please login to merge, or discard this patch.
src/Model/Pages.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\Model;
6 6
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         }
128 128
 
129 129
         $numResults = count($this->getResults()[$this->getNamespace()]);
130
-        $timestamp = new DateTime($this->getResults()[$this->getNamespace()][$numResults - 1]['timestamp']);
130
+        $timestamp = new DateTime($this->getResults()[$this->getNamespace()][$numResults-1]['timestamp']);
131 131
         return $timestamp->format('Y-m-d\TH:i:s');
132 132
     }
133 133
 
Please login to merge, or discard this patch.