Passed
Pull Request — master (#264)
by MusikAnimal
07:31
created
src/AppBundle/Model/AdminStats.php 1 patch
Spacing   +5 added lines, -5 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
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $stats = $this->groupStatsByUsername($stats);
97 97
 
98 98
         // Resort, as for some reason the SQL doesn't do this properly.
99
-        uasort($stats, function ($a, $b) {
99
+        uasort($stats, function($a, $b) {
100 100
             if ($a['total'] === $b['total']) {
101 101
                 return 0;
102 102
             }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         $this->usersAndGroups = $this->project->getUsersInGroups($groupUserGroups['local'], $groupUserGroups['global']);
128 128
 
129 129
         // Populate $this->usersInGroup with users who are in the relevant user group for $this->group.
130
-        $this->usersInGroup = array_keys(array_filter($this->usersAndGroups, function ($groups) {
130
+        $this->usersInGroup = array_keys(array_filter($this->usersAndGroups, function($groups) {
131 131
             return in_array($this->getRelevantUserGroup(), $groups);
132 132
         }));
133 133
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function numDays(): int
157 157
     {
158
-        return (int)(($this->end - $this->start) / 60 / 60 / 24);
158
+        return (int)(($this->end-$this->start) / 60 / 60 / 24);
159 159
     }
160 160
 
161 161
     /**
@@ -245,6 +245,6 @@  discard block
 block discarded – undo
245 245
      */
246 246
     public function getNumWithActionsNotInGroup(): int
247 247
     {
248
-        return count($this->adminStats) - $this->numWithActions;
248
+        return count($this->adminStats)-$this->numWithActions;
249 249
     }
250 250
 }
Please login to merge, or discard this patch.