Skip to content

Commit 8711b73

Browse files
committed
fixed CS
1 parent 68671b6 commit 8711b73

File tree

6 files changed

+15
-19
lines changed

6 files changed

+15
-19
lines changed

Encoder/JsonDecode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private function resolveContext(array $context)
123123
$defaultOptions = array(
124124
'json_decode_associative' => $this->associative,
125125
'json_decode_recursion_depth' => $this->recursionDepth,
126-
'json_decode_options' => 0
126+
'json_decode_options' => 0,
127127
);
128128

129129
return array_merge($defaultOptions, $context);

Encoder/JsonEncode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
class JsonEncode implements EncoderInterface
2020
{
21-
private $options ;
21+
private $options;
2222
private $lastError = JSON_ERROR_NONE;
2323

2424
public function __construct($bitmask = 0)

Encoder/XmlEncoder.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,5 +435,4 @@ private function resolveXmlRootName(array $context = array())
435435
? $context['xml_root_node_name']
436436
: $this->rootNodeName;
437437
}
438-
439438
}

Tests/Encoder/XmlEncoderTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ public function testAttributes()
6767
$obj->xmlFoo = array(
6868
'foo-bar' => array(
6969
'@id' => 1,
70-
'@name' => 'Bar'
70+
'@name' => 'Bar',
7171
),
7272
'Foo' => array(
7373
'Bar' => "Test",
74-
'@Type' => 'test'
74+
'@Type' => 'test',
7575
),
7676
'föo_bär' => 'a',
7777
"Bar" => array(1,2,3),
@@ -124,7 +124,7 @@ public function testEncodeScalarRootAttributes()
124124
{
125125
$array = array(
126126
'#' => 'Paul',
127-
'@gender' => 'm'
127+
'@gender' => 'm',
128128
);
129129

130130
$expected = '<?xml version="1.0"?>'."\n".
@@ -137,7 +137,7 @@ public function testEncodeRootAttributes()
137137
{
138138
$array = array(
139139
'firstname' => 'Paul',
140-
'@gender' => 'm'
140+
'@gender' => 'm',
141141
);
142142

143143
$expected = '<?xml version="1.0"?>'."\n".
@@ -230,7 +230,7 @@ public function testDecodeScalarRootAttributes()
230230

231231
$expected = array(
232232
'#' => 'Peter',
233-
'@gender' => 'M'
233+
'@gender' => 'M',
234234
);
235235

236236
$this->assertEquals($expected, $this->encoder->decode($source, 'xml'));
@@ -244,7 +244,7 @@ public function testDecodeRootAttributes()
244244
$expected = array(
245245
'firstname' => 'Peter',
246246
'lastname' => 'Mac Calloway',
247-
'@gender' => 'M'
247+
'@gender' => 'M',
248248
);
249249

250250
$this->assertEquals($expected, $this->encoder->decode($source, 'xml'));
@@ -263,8 +263,8 @@ public function testDecodeArray()
263263
$expected = array(
264264
'people' => array('person' => array(
265265
array('firstname' => 'Benjamin', 'lastname' => 'Alexandre'),
266-
array('firstname' => 'Damien', 'lastname' => 'Clay')
267-
))
266+
array('firstname' => 'Damien', 'lastname' => 'Clay'),
267+
)),
268268
);
269269

270270
$this->assertEquals($expected, $this->encoder->decode($source, 'xml'));
@@ -276,11 +276,11 @@ public function testDecodeWithoutItemHash()
276276
$obj->xmlFoo = array(
277277
'foo-bar' => array(
278278
'@key' => "value",
279-
'item' => array("@key" => 'key', "key-val" => 'val')
279+
'item' => array("@key" => 'key', "key-val" => 'val'),
280280
),
281281
'Foo' => array(
282282
'Bar' => "Test",
283-
'@Type' => 'test'
283+
'@Type' => 'test',
284284
),
285285
'föo_bär' => 'a',
286286
"Bar" => array(1,2,3),
@@ -289,11 +289,11 @@ public function testDecodeWithoutItemHash()
289289
$expected = array(
290290
'foo-bar' => array(
291291
'@key' => "value",
292-
'key' => array('@key' => 'key', "key-val" => 'val')
292+
'key' => array('@key' => 'key', "key-val" => 'val'),
293293
),
294294
'Foo' => array(
295295
'Bar' => "Test",
296-
'@Type' => 'test'
296+
'@Type' => 'test',
297297
),
298298
'föo_bär' => 'a',
299299
"Bar" => array(1,2,3),

Tests/Fixtures/DenormalizableDummy.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616

1717
class DenormalizableDummy implements DenormalizableInterface
1818
{
19-
2019
public function denormalize(DenormalizerInterface $denormalizer, $data, $format = null, array $context = array())
2120
{
22-
2321
}
24-
2522
}

Tests/Normalizer/GetSetMethodNormalizerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public function provideCallbacks()
191191
),
192192
'baz',
193193
array('foo' => '', 'bar' => null),
194-
'Null an item'
194+
'Null an item',
195195
),
196196
array(
197197
array(

0 commit comments

Comments
 (0)