@@ -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 | namespace App\Model; |
| 6 | 6 | |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | */ |
| 155 | 155 | public function getTotalEditCount(): int |
| 156 | 156 | { |
| 157 | - return $this->data['total_edit_count'] ?? $this->data['deleted_edit_count'] + $this->data['live_edit_count']; |
|
| 157 | + return $this->data['total_edit_count'] ?? $this->data['deleted_edit_count']+$this->data['live_edit_count']; |
|
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | /** |
@@ -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 | namespace App\Model; |
| 6 | 6 | |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $this->userRepo = $userRepo; |
| 65 | 65 | $this->project = $project; |
| 66 | 66 | $this->user = $user; |
| 67 | - $this->categories = array_map(function ($category) { |
|
| 67 | + $this->categories = array_map(function($category) { |
|
| 68 | 68 | return str_replace(' ', '_', $category); |
| 69 | 69 | }, $categories); |
| 70 | 70 | $this->start = $start; |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | public function getCategoriesNormalized(): array |
| 98 | 98 | { |
| 99 | - return array_map(function ($category) { |
|
| 99 | + return array_map(function($category) { |
|
| 100 | 100 | return str_replace('_', ' ', $category); |
| 101 | 101 | }, $this->categories); |
| 102 | 102 | } |
@@ -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 | namespace App\Twig; |
| 6 | 6 | |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | public function requestTime(): float |
| 118 | 118 | { |
| 119 | 119 | if (!isset($this->requestTime)) { |
| 120 | - $this->requestTime = microtime(true) - $this->getRequest()->server->get('REQUEST_TIME_FLOAT'); |
|
| 120 | + $this->requestTime = microtime(true)-$this->getRequest()->server->get('REQUEST_TIME_FLOAT'); |
|
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | return $this->requestTime; |
@@ -544,7 +544,7 @@ discard block |
||
| 544 | 544 | } |
| 545 | 545 | |
| 546 | 546 | $sizeMessage = $this->numberFormat( |
| 547 | - pow(1024, $base - floor($base)), |
|
| 547 | + pow(1024, $base-floor($base)), |
|
| 548 | 548 | $precision |
| 549 | 549 | ); |
| 550 | 550 | |
@@ -701,15 +701,15 @@ discard block |
||
| 701 | 701 | |
| 702 | 702 | if ($seconds >= 86400) { |
| 703 | 703 | // Over a day |
| 704 | - $val = (int) floor($seconds / 86400); |
|
| 704 | + $val = (int)floor($seconds / 86400); |
|
| 705 | 705 | $key = 'days'; |
| 706 | 706 | } elseif ($seconds >= 3600) { |
| 707 | 707 | // Over an hour, less than a day |
| 708 | - $val = (int) floor($seconds / 3600); |
|
| 708 | + $val = (int)floor($seconds / 3600); |
|
| 709 | 709 | $key = 'hours'; |
| 710 | 710 | } elseif ($seconds >= 60) { |
| 711 | 711 | // Over a minute, less than an hour |
| 712 | - $val = (int) floor($seconds / 60); |
|
| 712 | + $val = (int)floor($seconds / 60); |
|
| 713 | 713 | $key = 'minutes'; |
| 714 | 714 | } |
| 715 | 715 | |