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

Skip to content

Commit c289645

Browse files
author
Bernhard Schussek
committed
Fixed CS
1 parent bd689a8 commit c289645

File tree

4 files changed

+27
-27
lines changed

4 files changed

+27
-27
lines changed

src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function guessType($class, $property)
7575
case 'time_immutable':
7676
return new TypeGuess('Symfony\Component\Form\Extension\Core\Type\TimeType', ['input' => 'datetime_immutable'], Guess::HIGH_CONFIDENCE);
7777
case Type::DECIMAL:
78-
return new TypeGuess('Symfony\Component\Form\Extension\Core\Type\NumberType', array('input' => 'string'), Guess::MEDIUM_CONFIDENCE);
78+
return new TypeGuess('Symfony\Component\Form\Extension\Core\Type\NumberType', ['input' => 'string'], Guess::MEDIUM_CONFIDENCE);
7979
case Type::FLOAT:
8080
return new TypeGuess('Symfony\Component\Form\Extension\Core\Type\NumberType', [], Guess::MEDIUM_CONFIDENCE);
8181
case Type::INTEGER:

src/Symfony/Bridge/Doctrine/Tests/Fixtures/Price.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Bridge\Doctrine\Tests\Fixtures;
1313

14+
use Doctrine\ORM\Mapping\Column;
1415
use Doctrine\ORM\Mapping\Entity;
1516
use Doctrine\ORM\Mapping\Id;
16-
use Doctrine\ORM\Mapping\Column;
1717

1818
/** @Entity */
1919
class Price

src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/StringToFloatTransformerTest.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ protected function tearDown()
3030

3131
public function provideTransformations(): array
3232
{
33-
return array(
34-
array(null, null),
35-
array('1', 1.),
36-
array('1.', 1.),
37-
array('1.0', 1.),
38-
array('1.23', 1.23),
39-
);
33+
return [
34+
[null, null],
35+
['1', 1.],
36+
['1.', 1.],
37+
['1.0', 1.],
38+
['1.23', 1.23],
39+
];
4040
}
4141

4242
/**
@@ -69,18 +69,18 @@ public function testFailIfTransformingANonNumericString(): void
6969

7070
public function provideReverseTransformations(): array
7171
{
72-
return array(
73-
array(null, null),
74-
array(1, '1'),
75-
array(1., '1'),
76-
array(1.0, '1'),
77-
array(1.23, '1.23'),
78-
array(1, '1.000', 3),
79-
array(1.0, '1.000', 3),
80-
array(1.23, '1.230', 3),
81-
array(1.2344, '1.234', 3),
82-
array(1.2345, '1.235', 3),
83-
);
72+
return [
73+
[null, null],
74+
[1, '1'],
75+
[1., '1'],
76+
[1.0, '1'],
77+
[1.23, '1.23'],
78+
[1, '1.000', 3],
79+
[1.0, '1.000', 3],
80+
[1.23, '1.230', 3],
81+
[1.2344, '1.234', 3],
82+
[1.2345, '1.235', 3],
83+
];
8484
}
8585

8686
/**

src/Symfony/Component/Form/Tests/Extension/Core/Type/NumberTypeTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ public function testDefaultFormattingWithScale(): void
5353

5454
public function testDefaultFormattingWithScaleFloat(): void
5555
{
56-
$form = $this->factory->create(static::TESTED_TYPE, null, array('scale' => 2));
56+
$form = $this->factory->create(static::TESTED_TYPE, null, ['scale' => 2]);
5757
$form->setData(12345.67890);
5858

5959
$this->assertSame('12345,68', $form->createView()->vars['value']);
6060
}
6161

6262
public function testDefaultFormattingWithScaleAndStringInput(): void
6363
{
64-
$form = $this->factory->create(static::TESTED_TYPE, null, array('scale' => 2, 'input' => 'string'));
64+
$form = $this->factory->create(static::TESTED_TYPE, null, ['scale' => 2, 'input' => 'string']);
6565
$form->setData('12345.67890');
6666

6767
$this->assertSame('12345,68', $form->createView()->vars['value']);
@@ -94,7 +94,7 @@ public function testSubmitNullUsesDefaultEmptyData($emptyData = '10', $expectedD
9494

9595
public function testSubmitNumericInput(): void
9696
{
97-
$form = $this->factory->create(static::TESTED_TYPE, null, array('input' => 'number'));
97+
$form = $this->factory->create(static::TESTED_TYPE, null, ['input' => 'number']);
9898
$form->submit('1,234');
9999

100100
$this->assertSame(1.234, $form->getData());
@@ -104,7 +104,7 @@ public function testSubmitNumericInput(): void
104104

105105
public function testSubmitNumericInputWithScale(): void
106106
{
107-
$form = $this->factory->create(static::TESTED_TYPE, null, array('input' => 'number', 'scale' => 2));
107+
$form = $this->factory->create(static::TESTED_TYPE, null, ['input' => 'number', 'scale' => 2]);
108108
$form->submit('1,234');
109109

110110
$this->assertSame(1.23, $form->getData());
@@ -114,7 +114,7 @@ public function testSubmitNumericInputWithScale(): void
114114

115115
public function testSubmitStringInput(): void
116116
{
117-
$form = $this->factory->create(static::TESTED_TYPE, null, array('input' => 'string'));
117+
$form = $this->factory->create(static::TESTED_TYPE, null, ['input' => 'string']);
118118
$form->submit('1,234');
119119

120120
$this->assertSame('1.234', $form->getData());
@@ -124,7 +124,7 @@ public function testSubmitStringInput(): void
124124

125125
public function testSubmitStringInputWithScale(): void
126126
{
127-
$form = $this->factory->create(static::TESTED_TYPE, null, array('input' => 'string', 'scale' => 2));
127+
$form = $this->factory->create(static::TESTED_TYPE, null, ['input' => 'string', 'scale' => 2]);
128128
$form->submit('1,234');
129129

130130
$this->assertSame('1.23', $form->getData());

0 commit comments

Comments
 (0)