Skip to content

Commit

Permalink
PHP-CS-Fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienHarper committed Mar 8, 2022
1 parent 9bd8d33 commit 1d795ed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/App/config/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@

require dirname(__DIR__).'/../../vendor/autoload.php';

//// Load cached env vars if the .env.local.php file exists
//// Run "composer dump-env prod" to create it (requires symfony/flex >=1.2)
//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'])) {
// // Load cached env vars if the .env.local.php file exists
// // Run "composer dump-env prod" to create it (requires symfony/flex >=1.2)
// 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'])) {
// foreach ($env as $k => $v) {
// $_ENV[$k] = $_ENV[$k] ?? (isset($_SERVER[$k]) && 0 !== strpos($k, 'HTTP_') ? $_SERVER[$k] : $v);
// }
//} elseif (!class_exists(Dotenv::class)) {
// } elseif (!class_exists(Dotenv::class)) {
// throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.');
//} else {
// } else {
// // load all the .env files
// (new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env');
//}
// }

$_SERVER += $_ENV;
$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev';
Expand Down

0 comments on commit 1d795ed

Please sign in to comment.