Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e7b718

Browse files
[CS] Back config from 8.1 and apply heredoc_indentation rule
1 parent 551a80e commit 6e7b718

4 files changed

Lines changed: 30 additions & 30 deletions

File tree

Command/DebugCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ protected function configure(): void
5858
new InputArgument('filter', InputArgument::OPTIONAL, 'The name of an environment variable or a filter.', null, $this->getAvailableVars(...)),
5959
])
6060
->setHelp(<<<'EOT'
61-
The <info>%command.full_name%</info> command displays all the environment variables configured by dotenv:
61+
The <info>%command.full_name%</info> command displays all the environment variables configured by dotenv:
6262
63-
<info>php %command.full_name%</info>
63+
<info>php %command.full_name%</info>
6464
65-
To get specific variables, specify its full or partial name:
65+
To get specific variables, specify its full or partial name:
6666
67-
<info>php %command.full_name% FOO_BAR</info>
67+
<info>php %command.full_name% FOO_BAR</info>
6868

69-
EOT
69+
EOT
7070
);
7171
}
7272

Command/DotenvDumpCommand.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ protected function configure(): void
5454
])
5555
->addOption('empty', null, InputOption::VALUE_NONE, 'Ignore the content of .env files')
5656
->setHelp(<<<'EOT'
57-
The <info>%command.name%</info> command compiles .env files into a PHP-optimized file called .env.local.php.
57+
The <info>%command.name%</info> command compiles .env files into a PHP-optimized file called .env.local.php.
5858
59-
<info>%command.full_name%</info>
60-
EOT
59+
<info>%command.full_name%</info>
60+
EOT
6161
)
6262
;
6363
}
@@ -85,13 +85,13 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8585

8686
$vars = var_export($vars, true);
8787
$vars = <<<EOF
88-
<?php
88+
<?php
8989
90-
// This file was generated by running "php bin/console dotenv:dump $env"
90+
// This file was generated by running "php bin/console dotenv:dump $env"
9191
92-
return $vars;
92+
return $vars;
9393
94-
EOF;
94+
EOF;
9595
file_put_contents($dotenvPath.'.local.php', $vars, \LOCK_EX);
9696

9797
$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
@@ -50,17 +50,17 @@ public function testEmptyDotEnvVarsList()
5050
$tester = new CommandTester($command);
5151
$tester->execute([]);
5252
$expectedFormat = <<<'OUTPUT'
53-
%a
54-
---------- ------- ------------ ------%S
55-
Variable Value .env.local .env%S
56-
---------- ------- ------------ ------%S
57-
FOO baz bar%S
58-
TEST123 n/a true%S
59-
---------- ------- ------------ ------%S
60-
61-
// Note that values might be different between web and CLI.%S
62-
%a
63-
OUTPUT;
53+
%a
54+
---------- ------- ------------ ------%S
55+
Variable Value .env.local .env%S
56+
---------- ------- ------------ ------%S
57+
FOO baz bar%S
58+
TEST123 n/a true%S
59+
---------- ------- ------------ ------%S
60+
61+
// Note that values might be different between web and CLI.%S
62+
%a
63+
OUTPUT;
6464

6565
$this->assertStringMatchesFormat($expectedFormat, $tester->getDisplay());
6666
}

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)