@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Application\Migrations; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Application\Migrations; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Application\Migrations; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace App\Twig; |
5 | 5 |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | * This file contains only the AppExtension class. |
4 | 4 | */ |
5 | 5 | |
6 | -declare(strict_types = 1); |
|
6 | +declare(strict_types=1); |
|
7 | 7 | |
8 | 8 | namespace App\Twig; |
9 | 9 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | public function requestTime(): float |
122 | 122 | { |
123 | 123 | if (!isset($this->requestTime)) { |
124 | - $this->requestTime = microtime(true) - $this->getRequest()->server->get('REQUEST_TIME_FLOAT'); |
|
124 | + $this->requestTime = microtime(true)-$this->getRequest()->server->get('REQUEST_TIME_FLOAT'); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | return $this->requestTime; |
@@ -549,7 +549,7 @@ discard block |
||
549 | 549 | } |
550 | 550 | |
551 | 551 | $sizeMessage = $this->numberFormat( |
552 | - pow(1024, $base - floor($base)), |
|
552 | + pow(1024, $base-floor($base)), |
|
553 | 553 | $precision |
554 | 554 | ); |
555 | 555 | |
@@ -706,15 +706,15 @@ discard block |
||
706 | 706 | |
707 | 707 | if ($seconds >= 86400) { |
708 | 708 | // Over a day |
709 | - $val = (int) floor($seconds / 86400); |
|
709 | + $val = (int)floor($seconds / 86400); |
|
710 | 710 | $key = 'days'; |
711 | 711 | } elseif ($seconds >= 3600) { |
712 | 712 | // Over an hour, less than a day |
713 | - $val = (int) floor($seconds / 3600); |
|
713 | + $val = (int)floor($seconds / 3600); |
|
714 | 714 | $key = 'hours'; |
715 | 715 | } elseif ($seconds >= 60) { |
716 | 716 | // Over a minute, less than an hour |
717 | - $val = (int) floor($seconds / 60); |
|
717 | + $val = (int)floor($seconds / 60); |
|
718 | 718 | $key = 'minutes'; |
719 | 719 | } |
720 | 720 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace App; |
6 | 6 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * This file contains only the XtoolsHttpException class. |
@@ -118,7 +118,7 @@ |
||
118 | 118 | $actions = is_array($actionsQuery) ? $actionsQuery : explode('|', $actionsQuery); |
119 | 119 | |
120 | 120 | // Filter out any invalid section IDs. |
121 | - $actions = array_filter($actions, function ($action) use ($group) { |
|
121 | + $actions = array_filter($actions, function($action) use ($group) { |
|
122 | 122 | return in_array($action, $this->getActionNames($group)); |
123 | 123 | }); |
124 | 124 |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | $sections = is_array($sectionsQuery) ? $sectionsQuery : explode('|', $sectionsQuery); |
173 | 173 | |
174 | 174 | // Filter out any invalid section IDs. |
175 | - $sections = array_filter($sections, function ($section) { |
|
175 | + $sections = array_filter($sections, function($section) { |
|
176 | 176 | return in_array($section, $this->getSectionNames()); |
177 | 177 | }); |
178 | 178 | |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | } |
243 | 243 | |
244 | 244 | $ret = [ |
245 | - 'xtTitle' => $this->user->getUsername() . ' - ' . $this->project->getTitle(), |
|
245 | + 'xtTitle' => $this->user->getUsername().' - '.$this->project->getTitle(), |
|
246 | 246 | 'xtPage' => 'EditCounter', |
247 | 247 | 'user' => $this->user, |
248 | 248 | 'project' => $this->project, |