@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\Config\Loader\LoaderInterface; |
| 6 | 6 | use Symfony\Component\HttpKernel\Kernel; |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | new AppBundle\AppBundle(), |
| 44 | 44 | ]; |
| 45 | 45 | |
| 46 | - if (in_array($this->getEnvironment(), [ 'dev', 'test' ], true)) { |
|
| 46 | + if (in_array($this->getEnvironment(), ['dev', 'test'], true)) { |
|
| 47 | 47 | $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle(); |
| 48 | 48 | $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); |
| 49 | 49 | $bundles[] = new Fidry\PsyshBundle\PsyshBundle(); |
@@ -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 | } |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | dump($this->usersAndGroups); |
| 129 | 129 | |
| 130 | 130 | // Populate $this->usersInGroup with users who are in the relevant user group for $this->group. |
| 131 | - $this->usersInGroup = array_keys(array_filter($this->usersAndGroups, function ($groups) { |
|
| 131 | + $this->usersInGroup = array_keys(array_filter($this->usersAndGroups, function($groups) { |
|
| 132 | 132 | return in_array($this->getRelevantUserGroup(), $groups); |
| 133 | 133 | })); |
| 134 | 134 | |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | */ |
| 157 | 157 | public function numDays(): int |
| 158 | 158 | { |
| 159 | - return (int)(($this->end - $this->start) / 60 / 60 / 24); |
|
| 159 | + return (int)(($this->end-$this->start) / 60 / 60 / 24); |
|
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | /** |
@@ -246,6 +246,6 @@ discard block |
||
| 246 | 246 | */ |
| 247 | 247 | public function getNumWithActionsNotInGroup(): int |
| 248 | 248 | { |
| 249 | - return count($this->adminStats) - $this->numWithActions; |
|
| 249 | + return count($this->adminStats)-$this->numWithActions; |
|
| 250 | 250 | } |
| 251 | 251 | } |