Skip to content

Commit f9a607a

Browse files
minor #61373 chore: PHP CS Fixer - heredoc indentation as of PHP 7.3 (keradus)
This PR was merged into the 7.4 branch. Discussion ---------- chore: PHP CS Fixer - heredoc indentation as of PHP 7.3 | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | Fix CS <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT inspired by symfony/symfony@06e22b0#r2265021821 [Possible since PHP 7.3](https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc) with love by [PHP Coding Standards Fixer](https://cs.symfony.com/) Commits ------- 4a25a6a5785 chore: heredoc indentation as of PHP 7.3
2 parents 3c5c0dc + 06f6812 commit f9a607a

File tree

2 files changed

+66
-66
lines changed

2 files changed

+66
-66
lines changed

Command/DebugCommand.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -56,33 +56,33 @@ protected function configure(): void
5656
new InputOption('format', null, InputOption::VALUE_REQUIRED, \sprintf('The output format ("%s")', implode('", "', $this->getAvailableFormatOptions())), 'txt'),
5757
])
5858
->setHelp(<<<'EOF'
59-
The <info>%command.name%</info> command displays information about form types.
59+
The <info>%command.name%</info> command displays information about form types.
6060
61-
<info>php %command.full_name%</info>
61+
<info>php %command.full_name%</info>
6262
63-
The command lists all built-in types, services types, type extensions and
64-
guessers currently available.
63+
The command lists all built-in types, services types, type extensions and
64+
guessers currently available.
6565
66-
<info>php %command.full_name% Symfony\Component\Form\Extension\Core\Type\ChoiceType</info>
67-
<info>php %command.full_name% ChoiceType</info>
66+
<info>php %command.full_name% Symfony\Component\Form\Extension\Core\Type\ChoiceType</info>
67+
<info>php %command.full_name% ChoiceType</info>
6868
69-
The command lists all defined options that contains the given form type,
70-
as well as their parents and type extensions.
69+
The command lists all defined options that contains the given form type,
70+
as well as their parents and type extensions.
7171
72-
<info>php %command.full_name% ChoiceType choice_value</info>
72+
<info>php %command.full_name% ChoiceType choice_value</info>
7373
74-
Use the <info>--show-deprecated</info> option to display form types with
75-
deprecated options or the deprecated options of the given form type:
74+
Use the <info>--show-deprecated</info> option to display form types with
75+
deprecated options or the deprecated options of the given form type:
7676
77-
<info>php %command.full_name% --show-deprecated</info>
78-
<info>php %command.full_name% ChoiceType --show-deprecated</info>
77+
<info>php %command.full_name% --show-deprecated</info>
78+
<info>php %command.full_name% ChoiceType --show-deprecated</info>
7979
80-
The command displays the definition of the given option name.
80+
The command displays the definition of the given option name.
8181
82-
<info>php %command.full_name% --format=json</info>
82+
<info>php %command.full_name% --format=json</info>
8383
84-
The command lists everything in a machine readable json format.
85-
EOF
84+
The command lists everything in a machine readable json format.
85+
EOF
8686
)
8787
;
8888
}

Tests/Command/DebugCommandTest.php

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ public function testDebugDeprecatedDefaults()
4646
$this->assertEquals(0, $ret, 'Returns 0 in case of success');
4747
$this->assertSame(<<<TXT
4848
49-
Service form types
50-
------------------
49+
Service form types
50+
------------------
5151
52-
* Symfony\Component\Form\Tests\Command\FooType
52+
* Symfony\Component\Form\Tests\Command\FooType
5353
5454
55-
TXT
55+
TXT
5656
, $tester->getDisplay(true));
5757
}
5858

@@ -94,12 +94,12 @@ public function testDebugSingleFormTypeNotFound()
9494
public function testDebugAmbiguousFormType()
9595
{
9696
$expectedMessage = <<<TXT
97-
The type "AmbiguousType" is ambiguous.
97+
The type "AmbiguousType" is ambiguous.
9898
99-
Did you mean one of these?
100-
Symfony\Component\Form\Tests\Fixtures\Debug\A\AmbiguousType
101-
Symfony\Component\Form\Tests\Fixtures\Debug\B\AmbiguousType
102-
TXT;
99+
Did you mean one of these?
100+
Symfony\Component\Form\Tests\Fixtures\Debug\A\AmbiguousType
101+
Symfony\Component\Form\Tests\Fixtures\Debug\B\AmbiguousType
102+
TXT;
103103

104104
$this->expectException(InvalidArgumentException::class);
105105
$this->expectExceptionMessage($expectedMessage);
@@ -126,15 +126,15 @@ public function testDebugAmbiguousFormTypeInteractive()
126126
$output = $tester->getDisplay(true);
127127
$this->assertStringMatchesFormat(<<<TXT
128128
129-
The type "AmbiguousType" is ambiguous.
129+
The type "AmbiguousType" is ambiguous.
130130
131-
Select one of the following form types to display its information: [%A\A\AmbiguousType]:
132-
[0] %A\A\AmbiguousType
133-
[1] %A\B\AmbiguousType
134-
%A
135-
%A\A\AmbiguousType (Block prefix: "ambiguous")
136-
%A
137-
TXT
131+
Select one of the following form types to display its information: [%A\A\AmbiguousType]:
132+
[0] %A\A\AmbiguousType
133+
[1] %A\B\AmbiguousType
134+
%A
135+
%A\A\AmbiguousType (Block prefix: "ambiguous")
136+
%A
137+
TXT
138138
, $output);
139139
}
140140

@@ -152,38 +152,38 @@ public function testDebugCustomFormTypeOption()
152152
$this->assertEquals(0, $ret, 'Returns 0 in case of success');
153153
$this->assertStringMatchesFormat(<<<'TXT'
154154
155-
Symfony\Component\Form\Tests\Command\FooType (foo)
156-
==================================================
157-
158-
---------------- -----------%s
159-
Info "Info" %s
160-
---------------- -----------%s
161-
Required true %s
162-
---------------- -----------%s
163-
Default - %s
164-
---------------- -----------%s
165-
Allowed types [ %s
166-
"string"%s
167-
] %s
168-
---------------- -----------%s
169-
Allowed values [ %s
170-
"bar", %s
171-
"baz" %s
172-
] %s
173-
---------------- -----------%s
174-
Normalizers [ %s
175-
Closure(%s
176-
class:%s
177-
this: %s
178-
file: %s
179-
line: %s
180-
} %s
181-
] %s
182-
---------------- -----------%s
183-
Nested Options - %s
184-
---------------- -----------%s
185-
186-
TXT
155+
Symfony\Component\Form\Tests\Command\FooType (foo)
156+
==================================================
157+
158+
---------------- -----------%s
159+
Info "Info" %s
160+
---------------- -----------%s
161+
Required true %s
162+
---------------- -----------%s
163+
Default - %s
164+
---------------- -----------%s
165+
Allowed types [ %s
166+
"string"%s
167+
] %s
168+
---------------- -----------%s
169+
Allowed values [ %s
170+
"bar", %s
171+
"baz" %s
172+
] %s
173+
---------------- -----------%s
174+
Normalizers [ %s
175+
Closure(%s
176+
class:%s
177+
this: %s
178+
file: %s
179+
line: %s
180+
} %s
181+
] %s
182+
---------------- -----------%s
183+
Nested Options - %s
184+
---------------- -----------%s
185+
186+
TXT
187187
, $tester->getDisplay(true));
188188
}
189189

0 commit comments

Comments
 (0)