Skip to content

Commit 21d9319

Browse files
committed
fixed CS
1 parent b5a9c09 commit 21d9319

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Normalizer/AbstractObjectNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ protected function isAttributeToNormalize($object, $attributeName, &$context)
238238
*/
239239
private function validateAndDenormalize($currentClass, $attribute, $data, $format, array $context)
240240
{
241-
if (null === $this->propertyTypeExtractor || null === $types = $this->propertyTypeExtractor->getTypes($currentClass, $attribute)){
241+
if (null === $this->propertyTypeExtractor || null === $types = $this->propertyTypeExtractor->getTypes($currentClass, $attribute)) {
242242
return $data;
243243
}
244244

Tests/Normalizer/JsonSerializableNormalizerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function testNormalize()
4949
$this->serializer
5050
->expects($this->once())
5151
->method('normalize')
52-
->will($this->returnCallback(function($data) {
52+
->will($this->returnCallback(function ($data) {
5353
$this->assertArraySubset(array('foo' => 'a', 'bar' => 'b', 'baz' => 'c'), $data);
5454

5555
return 'string_object';
@@ -69,7 +69,7 @@ public function testCircularNormalize()
6969
$this->serializer
7070
->expects($this->once())
7171
->method('normalize')
72-
->will($this->returnCallback(function($data, $format, $context) {
72+
->will($this->returnCallback(function ($data, $format, $context) {
7373
$this->normalizer->normalize($data['qux'], $format, $context);
7474

7575
return 'string_object';

Tests/SerializerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public function testNormalizerAware()
324324
->method('setNormalizer')
325325
->with($this->isInstanceOf(NormalizerInterface::class));
326326

327-
new Serializer([$normalizerAware]);
327+
new Serializer(array($normalizerAware));
328328
}
329329

330330
public function testDenormalizerAware()
@@ -334,7 +334,7 @@ public function testDenormalizerAware()
334334
->method('setDenormalizer')
335335
->with($this->isInstanceOf(DenormalizerInterface::class));
336336

337-
new Serializer([$denormalizerAware]);
337+
new Serializer(array($denormalizerAware));
338338
}
339339
}
340340

0 commit comments

Comments
 (0)