Passed
Push — master ( 619316...3e4776 )
by MusikAnimal
07:30
created
src/AppBundle/Model/AdminStats.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
  * This file contains only the AdminStats class.
4 4
  */
5 5
 
6
-declare(strict_types = 1);
6
+declare(strict_types=1);
7 7
 
8 8
 namespace AppBundle\Model;
9 9
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         $stats = $this->groupAdminStatsByUsername($stats, $abbreviateGroups);
160 160
 
161 161
         // Resort, as for some reason the SQL isn't doing this properly.
162
-        uasort($stats, function ($a, $b) {
162
+        uasort($stats, function($a, $b) {
163 163
             if ($a['total'] === $b['total']) {
164 164
                 return 0;
165 165
             }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      */
177 177
     public function numDays(): int
178 178
     {
179
-        return (int)(($this->end - $this->start) / 60 / 60 / 24);
179
+        return (int)(($this->end-$this->start) / 60 / 60 / 24);
180 180
     }
181 181
 
182 182
     /**
@@ -270,6 +270,6 @@  discard block
 block discarded – undo
270 270
      */
271 271
     public function getNumNonAdminsWithActions(): int
272 272
     {
273
-        return count($this->adminStats) - $this->numAdminsWithActions;
273
+        return count($this->adminStats)-$this->numAdminsWithActions;
274 274
     }
275 275
 }
Please login to merge, or discard this patch.
src/AppBundle/Controller/AdminStatsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         $actions = is_array($actionsQuery) ? $actionsQuery : explode('|', $actionsQuery);
103 103
 
104 104
         // Filter out any invalid section IDs.
105
-        $actions = array_filter($actions, function ($action) use ($group) {
105
+        $actions = array_filter($actions, function($action) use ($group) {
106 106
             return in_array($action, $this->getActionNames($group));
107 107
         });
108 108
 
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
         $this->setUpAdminStats();
240 240
 
241 241
         // Maximum 31 days.
242
-        $days = min((int) $days, 31);
242
+        $days = min((int)$days, 31);
243 243
         $start = date('Y-m-d', strtotime("-$days days"));
244 244
         $end = date('Y-m-d');
245 245
 
Please login to merge, or discard this patch.