Skip to content

Commit def7383

Browse files
minor symfony#57411 chore: CS fixes (keradus)
This PR was submitted for the 7.1 branch but it was squashed and merged into the 7.2 branch instead. Discussion ---------- chore: CS fixes | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | Fix CS | License | MIT Few steps closer to clean CS (`php-cs-fixer fix` not reporting any issues) Commits ------- 7c11067 chore: CS fixes
2 parents c852b8b + 7c11067 commit def7383

File tree

73 files changed

+291
-291
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+291
-291
lines changed

src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypePerformanceTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ public function testCollapsedEntityFieldWithPreferredChoices()
127127

128128
for ($i = 0; $i < 40; ++$i) {
129129
$form = $this->factory->create('Symfony\Bridge\Doctrine\Form\Type\EntityType', null, [
130-
'class' => self::ENTITY_CLASS,
131-
'preferred_choices' => $choices,
132-
]);
130+
'class' => self::ENTITY_CLASS,
131+
'preferred_choices' => $choices,
132+
]);
133133

134134
// force loading of the choice list
135135
$form->createView();

src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ public function testOverrideChoicesValuesWithCallable()
780780
$this->assertEquals([
781781
'BazGroup/Foo' => new ChoiceView($entity1, 'BazGroup/Foo', 'Foo'),
782782
'BooGroup/Bar' => new ChoiceView($entity2, 'BooGroup/Bar', 'Bar'),
783-
], $field->createView()->vars['choices']);
783+
], $field->createView()->vars['choices']);
784784
$this->assertTrue($field->isSynchronized(), 'Field should be synchronized.');
785785
$this->assertSame($entity2, $field->getData(), 'Entity should be loaded by custom value.');
786786
$this->assertSame('BooGroup/Bar', $field->getViewData());

src/Symfony/Bridge/PsrHttpMessage/Tests/Factory/PsrHttpFactoryTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,14 @@ public function testUploadErrNoFile()
219219
[],
220220
[],
221221
[
222-
'f1' => $file,
223-
'f2' => ['name' => null, 'type' => null, 'tmp_name' => null, 'error' => \UPLOAD_ERR_NO_FILE, 'size' => 0],
224-
],
222+
'f1' => $file,
223+
'f2' => ['name' => null, 'type' => null, 'tmp_name' => null, 'error' => \UPLOAD_ERR_NO_FILE, 'size' => 0],
224+
],
225225
[
226-
'REQUEST_METHOD' => 'POST',
227-
'HTTP_HOST' => 'dunglas.fr',
228-
'HTTP_X_SYMFONY' => '2.8',
229-
],
226+
'REQUEST_METHOD' => 'POST',
227+
'HTTP_HOST' => 'dunglas.fr',
228+
'HTTP_X_SYMFONY' => '2.8',
229+
],
230230
'Content'
231231
);
232232

src/Symfony/Bridge/Twig/Extension/EmojiExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function getFilters(): array
3838
}
3939

4040
/**
41-
* Converts emoji short code (:wave:) to real emoji (👋)
41+
* Converts emoji short code (:wave:) to real emoji (👋).
4242
*/
4343
public function emojify(string $string, ?string $catalog = null): string
4444
{

src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap3HorizontalLayoutTestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ public function testStartTagWithOverriddenVars()
163163
public function testStartTagForMultipartForm()
164164
{
165165
$form = $this->factory->createBuilder('Symfony\Component\Form\Extension\Core\Type\FormType', null, [
166-
'method' => 'get',
167-
'action' => 'http://example.com/directory',
168-
])
166+
'method' => 'get',
167+
'action' => 'http://example.com/directory',
168+
])
169169
->add('file', 'Symfony\Component\Form\Extension\Core\Type\FileType')
170170
->getForm();
171171

src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap4HorizontalLayoutTestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ public function testStartTagWithOverriddenVars()
214214
public function testStartTagForMultipartForm()
215215
{
216216
$form = $this->factory->createBuilder('Symfony\Component\Form\Extension\Core\Type\FormType', null, [
217-
'method' => 'get',
218-
'action' => 'http://example.com/directory',
219-
])
217+
'method' => 'get',
218+
'action' => 'http://example.com/directory',
219+
])
220220
->add('file', 'Symfony\Component\Form\Extension\Core\Type\FileType')
221221
->getForm();
222222

src/Symfony/Bridge/Twig/Tests/Extension/AbstractDivLayoutTestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -691,9 +691,9 @@ public function testCollectionRowWithCustomBlock()
691691
public function testChoiceRowWithCustomBlock()
692692
{
693693
$form = $this->factory->createNamedBuilder('name_c', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', 'a', [
694-
'choices' => ['ChoiceA' => 'a', 'ChoiceB' => 'b'],
695-
'expanded' => true,
696-
])
694+
'choices' => ['ChoiceA' => 'a', 'ChoiceB' => 'b'],
695+
'expanded' => true,
696+
])
697697
->getForm();
698698

699699
$this->assertWidgetMatchesXpath($form->createView(), [],

src/Symfony/Bridge/Twig/Tests/Extension/AbstractLayoutTestCase.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ public function testLabelFormatOverriddenOption()
313313
public function testLabelWithoutTranslationOnButton()
314314
{
315315
$form = $this->factory->createNamedBuilder('myform', 'Symfony\Component\Form\Extension\Core\Type\FormType', null, [
316-
'translation_domain' => false,
317-
])
316+
'translation_domain' => false,
317+
])
318318
->add('mybutton', 'Symfony\Component\Form\Extension\Core\Type\ButtonType')
319319
->getForm();
320320
$view = $form->get('mybutton')->createView();
@@ -2412,9 +2412,9 @@ public function testStartTagWithOverriddenVars()
24122412
public function testStartTagForMultipartForm()
24132413
{
24142414
$form = $this->factory->createBuilder('Symfony\Component\Form\Extension\Core\Type\FormType', null, [
2415-
'method' => 'get',
2416-
'action' => 'http://example.com/directory',
2417-
])
2415+
'method' => 'get',
2416+
'action' => 'http://example.com/directory',
2417+
])
24182418
->add('file', 'Symfony\Component\Form\Extension\Core\Type\FileType')
24192419
->getForm();
24202420

@@ -2559,8 +2559,8 @@ public function testTranslatedAttributes()
25592559
public function testAttributesNotTranslatedWhenTranslationDomainIsFalse()
25602560
{
25612561
$view = $this->factory->createNamedBuilder('name', 'Symfony\Component\Form\Extension\Core\Type\FormType', null, [
2562-
'translation_domain' => false,
2563-
])
2562+
'translation_domain' => false,
2563+
])
25642564
->add('firstName', 'Symfony\Component\Form\Extension\Core\Type\TextType', ['attr' => ['title' => 'Foo']])
25652565
->add('lastName', 'Symfony\Component\Form\Extension\Core\Type\TextType', ['attr' => ['placeholder' => 'Bar']])
25662566
->getForm()

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,13 @@ public function testInvalidAssetsConfiguration(array $assetConfig, $expectedMess
224224
$this->expectExceptionMessage($expectedMessage);
225225

226226
$processor->processConfiguration($configuration, [
227-
[
228-
'http_method_override' => false,
229-
'handle_all_throwables' => true,
230-
'php_errors' => ['log' => true],
231-
'assets' => $assetConfig,
232-
],
233-
]);
227+
[
228+
'http_method_override' => false,
229+
'handle_all_throwables' => true,
230+
'php_errors' => ['log' => true],
231+
'assets' => $assetConfig,
232+
],
233+
]);
234234
}
235235

236236
public static function provideInvalidAssetConfigurationTests(): iterable

src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RedirectableCompiledUrlMatcherTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ public function testRedirectWhenNoSlash()
2727

2828
$matcher = $this->getMatcher($routes, $context = new RequestContext());
2929

30-
$this->assertEquals([
30+
$this->assertEquals(
31+
[
3132
'_controller' => 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController::urlRedirectAction',
3233
'path' => '/foo/',
3334
'permanent' => true,
@@ -47,7 +48,8 @@ public function testSchemeRedirect()
4748

4849
$matcher = $this->getMatcher($routes, $context = new RequestContext());
4950

50-
$this->assertEquals([
51+
$this->assertEquals(
52+
[
5153
'_controller' => 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController::urlRedirectAction',
5254
'path' => '/foo',
5355
'permanent' => true,

0 commit comments

Comments
 (0)