@@ -4,7 +4,7 @@ |
||
| 4 | 4 | use Symfony\Component\ErrorHandler\Debug; |
| 5 | 5 | use Symfony\Component\HttpFoundation\Request; |
| 6 | 6 | |
| 7 | -require dirname(__DIR__).'/config/bootstrap.php'; |
|
| 7 | +require dirname(__DIR__) . '/config/bootstrap.php'; |
|
| 8 | 8 | |
| 9 | 9 | if ($_SERVER['APP_DEBUG']) { |
| 10 | 10 | umask(0000); |
@@ -2,11 +2,11 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | use Symfony\Component\Dotenv\Dotenv; |
| 4 | 4 | |
| 5 | -require dirname(__DIR__).'/vendor/autoload.php'; |
|
| 5 | +require dirname(__DIR__) . '/vendor/autoload.php'; |
|
| 6 | 6 | |
| 7 | 7 | // Load cached env vars if the .env.local.php file exists |
| 8 | 8 | // Run "composer dump-env prod" to create it (requires symfony/flex >=1.2) |
| 9 | -if (is_array($env = @include dirname(__DIR__).'/.env.local.php') && (!isset($env['APP_ENV']) || ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV'])) { |
|
| 9 | +if (is_array($env = @include dirname(__DIR__) . '/.env.local.php') && (!isset($env['APP_ENV']) || ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV'])) { |
|
| 10 | 10 | foreach ($env as $k => $v) { |
| 11 | 11 | $_ENV[$k] = $_ENV[$k] ?? (isset($_SERVER[$k]) && 0 !== strpos($k, 'HTTP_') ? $_SERVER[$k] : $v); |
| 12 | 12 | } |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.'); |
| 15 | 15 | } else { |
| 16 | 16 | // load all the .env files |
| 17 | - (new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env'); |
|
| 17 | + (new Dotenv(false))->loadEnv(dirname(__DIR__) . '/.env'); |
|
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | $_SERVER += $_ENV; |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | { |
| 39 | 39 | $item = $this->cacheItemPool->getItem('ready_session_id_' . $readySessionId->value()); |
| 40 | 40 | |
| 41 | - if (! $item->isHit()) { |
|
| 41 | + if (!$item->isHit()) { |
|
| 42 | 42 | throw PendingSessionNotFoundException::withReadySessionId($readySessionId); |
| 43 | 43 | } |
| 44 | 44 | |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | public function load(): ReadySession |
| 34 | 34 | { |
| 35 | - if (! $this->store->has('readySession')) { |
|
| 35 | + if (!$this->store->has('readySession')) { |
|
| 36 | 36 | throw ReadySessionNotFoundException::stateIsEmpty(); |
| 37 | 37 | } |
| 38 | 38 | |