Skip to content

Commit 2c03577

Browse files
committed
fixed CS
1 parent c2b6ff4 commit 2c03577

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Normalizer/GetSetMethodNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
141141

142142
$object = $reflectionClass->newInstanceArgs($params);
143143
} else {
144-
$object = new $class;
144+
$object = new $class();
145145
}
146146

147147
foreach ($data as $attribute => $value) {

Tests/Encoder/XmlEncoderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function testEncode()
189189
public function testEncodeSerializerXmlRootNodeNameOption()
190190
{
191191
$options = array('xml_root_node_name' => 'test');
192-
$this->encoder = new XmlEncoder;
192+
$this->encoder = new XmlEncoder();
193193
$serializer = new Serializer(array(), array('xml' => new XmlEncoder()));
194194
$this->encoder->setSerializer($serializer);
195195

@@ -272,7 +272,7 @@ public function testDecodeArray()
272272

273273
public function testDecodeWithoutItemHash()
274274
{
275-
$obj = new ScalarDummy;
275+
$obj = new ScalarDummy();
276276
$obj->xmlFoo = array(
277277
'foo-bar' => array(
278278
'@key' => "value",

0 commit comments

Comments
 (0)