@@ -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 | |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $stats = $this->groupStatsByUsername($stats); |
| 100 | 100 | |
| 101 | 101 | // Resort, as for some reason the SQL isn't doing this properly. |
| 102 | - uasort($stats, function ($a, $b) { |
|
| 102 | + uasort($stats, function($a, $b) { |
|
| 103 | 103 | if ($a['total'] === $b['total']) { |
| 104 | 104 | return 0; |
| 105 | 105 | } |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | $this->usersAndGroups = $this->project->getUsersInGroups($groupUserGroups); |
| 131 | 131 | |
| 132 | 132 | // Populate $this->usersInGroup with users who are in the relevant user group for $this->group. |
| 133 | - $this->usersInGroup = array_keys(array_filter($this->usersAndGroups, function ($groups) { |
|
| 133 | + $this->usersInGroup = array_keys(array_filter($this->usersAndGroups, function($groups) { |
|
| 134 | 134 | return in_array($this->getRelevantUserGroup(), $groups); |
| 135 | 135 | })); |
| 136 | 136 | |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | */ |
| 155 | 155 | public function numDays(): int |
| 156 | 156 | { |
| 157 | - return (int)(($this->end - $this->start) / 60 / 60 / 24); |
|
| 157 | + return (int)(($this->end-$this->start) / 60 / 60 / 24); |
|
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | /** |
@@ -244,6 +244,6 @@ discard block |
||
| 244 | 244 | */ |
| 245 | 245 | public function getNumWithActionsNotInGroup(): int |
| 246 | 246 | { |
| 247 | - return count($this->adminStats) - $this->numWithActions; |
|
| 247 | + return count($this->adminStats)-$this->numWithActions; |
|
| 248 | 248 | } |
| 249 | 249 | } |