@@ -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 | |
@@ -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\EventSubscriber; |
| 6 | 6 | |
@@ -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 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | $this->repository = $repository; |
| 49 | 49 | $this->project = $project; |
| 50 | 50 | $this->user = $user; |
| 51 | - $this->categories = array_map(function ($category) { |
|
| 51 | + $this->categories = array_map(function($category) { |
|
| 52 | 52 | return str_replace(' ', '_', $category); |
| 53 | 53 | }, $categories); |
| 54 | 54 | $this->start = $start; |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | public function getCategoriesNormalized(): array |
| 82 | 82 | { |
| 83 | - return array_map(function ($category) { |
|
| 83 | + return array_map(function($category) { |
|
| 84 | 84 | return str_replace('_', ' ', $category); |
| 85 | 85 | }, $this->categories); |
| 86 | 86 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | string $centralAuthProject |
| 67 | 67 | ): RedirectResponse { |
| 68 | 68 | try { |
| 69 | - [ $next, $token ] = $this->getOauthClient($request, $projectRepo, $centralAuthProject)->initiate(); |
|
| 69 | + [$next, $token] = $this->getOauthClient($request, $projectRepo, $centralAuthProject)->initiate(); |
|
| 70 | 70 | } catch (Exception $oauthException) { |
| 71 | 71 | throw $oauthException; |
| 72 | 72 | // @TODO Make this work. |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | . '?title=Special:OAuth'; |
| 156 | 156 | $conf = new ClientConfig($endpoint); |
| 157 | 157 | $consumerKey = $this->getParameter('oauth_key'); |
| 158 | - $consumerSecret = $this->getParameter('oauth_secret'); |
|
| 158 | + $consumerSecret = $this->getParameter('oauth_secret'); |
|
| 159 | 159 | $conf->setConsumer(new Consumer($consumerKey, $consumerSecret)); |
| 160 | 160 | $this->oauthClient = new Client($conf); |
| 161 | 161 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace App\Repository; |
| 5 | 5 | |
@@ -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\Helper; |
| 6 | 6 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | // Find the path, and complain if English doesn't exist. |
| 62 | - $path = $this->projectDir . '/i18n'; |
|
| 62 | + $path = $this->projectDir.'/i18n'; |
|
| 63 | 63 | if (!file_exists("$path/en.json")) { |
| 64 | 64 | throw new Exception("Language directory doesn't exist: $path"); |
| 65 | 65 | } |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | $messageFiles = glob($this->projectDir.'/i18n/*.json'); |
| 115 | 115 | |
| 116 | 116 | $languages = array_values(array_unique(array_map( |
| 117 | - function ($filename) { |
|
| 117 | + function($filename) { |
|
| 118 | 118 | return basename($filename, '.json'); |
| 119 | 119 | }, |
| 120 | 120 | $messageFiles |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | $this->getIntuition()->getLangFallbacks($useLang) |
| 159 | 159 | ); |
| 160 | 160 | |
| 161 | - return array_filter($fallbacks, function ($lang) use ($i18nPath) { |
|
| 161 | + return array_filter($fallbacks, function($lang) use ($i18nPath) { |
|
| 162 | 162 | return is_file($i18nPath.$lang.'.json'); |
| 163 | 163 | }); |
| 164 | 164 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | if (file_exists(dirname(__DIR__).'/var/cache/prod/srcApp_KernelProdContainer.preload.php')) { |
| 6 | 6 | require dirname(__DIR__).'/var/cache/prod/srcApp_KernelProdContainer.preload.php'; |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace DoctrineMigrations; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types = 1); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace DoctrineMigrations; |
| 6 | 6 | |