Skip to content

Commit 6a55752

Browse files
committed
Fix Coding Standard issues
1 parent af60440 commit 6a55752

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
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.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,19 +1283,19 @@ public function testNoCollectDenormalizationErrorsWithWrongEnumOnConstructor()
12831283
public function testGroupsOnClassSerialization()
12841284
{
12851285
$obj = new Fixtures\Attributes\GroupClassDummy();
1286-
$obj->setFoo("foo");
1287-
$obj->setBar("bar");
1286+
$obj->setFoo('foo');
1287+
$obj->setBar('bar');
12881288

12891289
$obj2 = new Fixtures\Annotations\GroupClassDummy();
1290-
$obj2->setFoo("foo");
1291-
$obj2->setBar("bar");
1290+
$obj2->setFoo('foo');
1291+
$obj2->setBar('bar');
12921292

12931293
$serializer = new Serializer(
12941294
[
1295-
new ObjectNormalizer()
1295+
new ObjectNormalizer(),
12961296
],
12971297
[
1298-
'json' => new JsonEncoder()
1298+
'json' => new JsonEncoder(),
12991299
]
13001300
);
13011301

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy