8000 Fix Coding Standard issues · symfony/symfony@2e092d4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e092d4

Browse files
committed
Fix Coding Standard issues
1 parent 3dac0f8 commit 2e092d4

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/Symfony/Component/Serializer/Annotation/Groups.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
* Annotation class for @Groups().
1818
*
1919
* @Annotation
20+
*
2021
* @NamedArgumentConstructor
22+
*
2123
* @Target({"PROPERTY", "METHOD", "CLASS"})
2224
*
2325
* @author Kévin Dunglas <dunglas@gmail.com>

src/Symfony/Component/Serializer/Tests/SerializerTest. 10000 php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
use Symfony\Component\Serializer\Tests\Fixtures\Annotations\AbstractDummy;
5656
use Symfony\Component\Serializer\Tests\Fixtures\Annotations\AbstractDummyFirstChild;
5757
use Symfony\Component\Serializer\Tests\Fixtures\Annotations\AbstractDummySecondChild;
58-
use Symfony\Component\Serializer\Tests\Fixtures;
5958
use Symfony\Component\Serializer\Tests\Fixtures\DummyFirstChildQuux;
6059
use Symfony\Component\Serializer\Tests\Fixtures\DummyMessageInterface;
6160
use Symfony\Component\Serializer\Tests\Fixtures\DummyMessageNumberOne;
@@ -1232,19 +1231,19 @@ public function testNoCollectDenormalizationErrorsWithWrongEnum()
12321231
public function testGroupsOnClassSerialization()
12331232
{
12341233
$obj = new Fixtures\Attributes\GroupClassDummy();
1235-
$obj->setFoo("foo");
1236-
$obj->setBar("bar");
1234+
$obj->setFoo('foo');
1235+
$obj->setBar('bar');
12371236

12381237
$obj2 = new Fixtures\Annotations\GroupClassDummy();
1239-
$obj2->setFoo("foo");
1240-
$obj2->setBar("bar");
1238+
$obj2->setFoo('foo');
1239+
$obj2->setBar('bar');
12411240

12421241
$serializer = new Serializer(
12431242
[
1244-
new ObjectNormalizer()
1243+
new ObjectNormalizer(),
12451244
],
12461245
[
1247-
'json' => new JsonEncoder()
1246+
'json' => new JsonEncoder(),
12481247
]
12491248
);
12501249

0 commit comments

Comments
 (0)
0