Skip to content

Commit dc3e274

Browse files
committed
[Serializer] Fix CS
1 parent 249ec6a commit dc3e274

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/Symfony/Component/Serializer/NameConverter/CamelCaseToUnderscoreNameConverter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\Serializer\NameConverter;
1313

14-
1514
/**
1615
* CamelCase to Underscore name converter.
1716
*

src/Symfony/Component/Serializer/Normalizer/AbstractNormalizer.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ abstract class AbstractNormalizer extends SerializerAwareNormalizer implements N
3838
public function __construct(
3939
ClassMetadataFactory $classMetadataFactory = null,
4040
NameConverterInterface $nameConverter = null
41-
)
42-
{
41+
) {
4342
$this->classMetadataFactory = $classMetadataFactory;
4443
$this->nameConverter = $nameConverter;
4544
}
@@ -97,9 +96,9 @@ public function setCamelizedAttributes(array $camelizedAttributes)
9796

9897
$attributes = array();
9998
foreach ($camelizedAttributes as $camelizedAttribute) {
100-
$attributes[] = lcfirst(preg_replace_callback('/(^|_|\.)+(.)/', function ($match) {
101-
return ('.' === $match[1] ? '_' : '').strtoupper($match[2]);
102-
}, $camelizedAttribute));
99+
$attributes[] = lcfirst(preg_replace_callback('/(^|_|\.)+(.)/', function ($match) {
100+
return ('.' === $match[1] ? '_' : '').strtoupper($match[2]);
101+
}, $camelizedAttribute));
103102
}
104103

105104
$this->nameConverter = new CamelCaseToUnderscoreNameConverter($attributes);

src/Symfony/Component/Serializer/Tests/NameConverter/CamelCaseToUnderscoreNameConverterTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
*/
1111

1212
namespace Symfony\Component\Serializer\Tests\NameConverter;
13+
1314
use Symfony\Component\Serializer\NameConverter\CamelCaseToUnderscoreNameConverter;
1415

1516
/**

0 commit comments

Comments
 (0)