@@ -3,7 +3,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |