Skip to content

Commit cacdd55

Browse files
Merge branch '7.4' into 8.0
* 7.4: skip legacy extractor test with symfony/property-info 8.0+ chore: heredoc indentation as of PHP 7.3 [Actions] remove dead code from integration-test We can always revisit later if needed.From 2021 its there and not in use
2 parents 1d8bd52 + 4a53037 commit cacdd55

File tree

4 files changed

+30
-30
lines changed

4 files changed

+30
-30
lines changed

Command/DebugCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ protected function configure(): void
4444
new InputArgument('filter', InputArgument::OPTIONAL, 'The name of an environment variable or a filter.', null, $this->getAvailableVars(...)),
4545
])
4646
->setHelp(<<<'EOT'
47-
The <info>%command.full_name%</info> command displays all the environment variables configured by dotenv:
47+
The <info>%command.full_name%</info> command displays all the environment variables configured by dotenv:
4848
49-
<info>php %command.full_name%</info>
49+
<info>php %command.full_name%</info>
5050
51-
To get specific variables, specify its full or partial name:
51+
To get specific variables, specify its full or partial name:
5252
53-
<info>php %command.full_name% FOO_BAR</info>
53+
<info>php %command.full_name% FOO_BAR</info>
5454

55-
EOT
55+
EOT
5656
);
5757
}
5858

Command/DotenvDumpCommand.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ protected function configure(): void
4444
])
4545
->addOption('empty', null, InputOption::VALUE_NONE, 'Ignore the content of .env files')
4646
->setHelp(<<<'EOT'
47-
The <info>%command.name%</info> command compiles .env files into a PHP-optimized file called .env.local.php.
47+
The <info>%command.name%</info> command compiles .env files into a PHP-optimized file called .env.local.php.
4848
49-
<info>%command.full_name%</info>
50-
EOT
49+
<info>%command.full_name%</info>
50+
EOT
5151
)
5252
;
5353
}
@@ -75,13 +75,13 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7575

7676
$vars = var_export($vars, true);
7777
$vars = <<<EOF
78-
<?php
78+
<?php
7979
80-
// This file was generated by running "php bin/console dotenv:dump $env"
80+
// This file was generated by running "php bin/console dotenv:dump $env"
8181
82-
return $vars;
82+
return $vars;
8383
84-
EOF;
84+
EOF;
8585
file_put_contents($dotenvPath.'.local.php', $vars, \LOCK_EX);
8686

8787
$output->writeln(\sprintf('Successfully dumped .env files in <info>.env.local.php</> for the <info>%s</> environment.', $env));

Tests/Command/DebugCommandTest.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ public function testEmptyDotEnvVarsList()
4747
$tester = new CommandTester($command);
4848
$tester->execute([]);
4949
$expectedFormat = <<<'OUTPUT'
50-
%a
51-
---------- ------- ------------ ------%S
52-
Variable Value .env.local .env%S
53-
---------- ------- ------------ ------%S
54-
FOO baz bar%S
55-
TEST123 n/a true%S
56-
---------- ------- ------------ ------%S
57-
58-
// Note that values might be different between web and CLI.%S
59-
%a
60-
OUTPUT;
50+
%a
51+
---------- ------- ------------ ------%S
52+
Variable Value .env.local .env%S
53+
---------- ------- ------------ ------%S
54+
FOO baz bar%S
55+
TEST123 n/a true%S
56+
---------- ------- ------------ ------%S
57+
58+
// Note that values might be different between web and CLI.%S
59+
%a
60+
OUTPUT;
6161

6262
$this->assertStringMatchesFormat($expectedFormat, $tester->getDisplay());
6363
}

Tests/Command/DotenvDumpCommandTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ class DotenvDumpCommandTest extends TestCase
2121
protected function setUp(): void
2222
{
2323
file_put_contents(__DIR__.'/.env', <<<EOF
24-
APP_ENV=dev
25-
APP_SECRET=abc123
26-
EOF
24+
APP_ENV=dev
25+
APP_SECRET=abc123
26+
EOF
2727
);
2828

2929
file_put_contents(__DIR__.'/.env.local', <<<EOF
30-
APP_LOCAL=yes
31-
EOF
30+
APP_LOCAL=yes
31+
EOF
3232
);
3333
}
3434

@@ -73,8 +73,8 @@ public function testExecuteEmpty()
7373
public function testExecuteTestEnvs()
7474
{
7575
file_put_contents(__DIR__.'/composer.json', <<<EOF
76-
{"extra":{"runtime":{"test_envs":[]}}}
77-
EOF
76+
{"extra":{"runtime":{"test_envs":[]}}}
77+
EOF
7878
);
7979

8080
$command = $this->createCommand();

0 commit comments

Comments
 (0)