Skip to content

Commit e4748cc

Browse files
keradusnicolas-grekas
authored andcommitted
CS: apply rules
1 parent 9f99eeb commit e4748cc

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

Tests/Encoder/XmlEncoderTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function testEncodeXmlAttributes()
141141
public function testContext()
142142
{
143143
$array = array('person' => array('name' => 'George Abitbol'));
144-
$expected = <<<XML
144+
$expected = <<<'XML'
145145
<?xml version="1.0"?>
146146
<response>
147147
<person>
@@ -255,7 +255,7 @@ public function testEncodeTraversableWhenNormalizable()
255255
$serializer = new Serializer(array(new CustomNormalizer()), array('xml' => new XmlEncoder()));
256256
$this->encoder->setSerializer($serializer);
257257

258-
$expected = <<<XML
258+
$expected = <<<'XML'
259259
<?xml version="1.0"?>
260260
<response><foo>normalizedFoo</foo><bar>normalizedBar</bar></response>
261261

@@ -366,7 +366,7 @@ public function testDecodeArray()
366366

367367
public function testDecodeIgnoreWhiteSpace()
368368
{
369-
$source = <<<XML
369+
$source = <<<'XML'
370370
<?xml version="1.0"?>
371371
<people>
372372
<person>

Tests/Normalizer/ObjectNormalizerTest.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ public function provideCallbacks()
343343
array(
344344
array(
345345
'bar' => function ($bar) {
346-
return 'baz';
347-
},
346+
return 'baz';
347+
},
348348
),
349349
'baz',
350350
array('foo' => '', 'bar' => 'baz', 'baz' => true),
@@ -353,8 +353,8 @@ public function provideCallbacks()
353353
array(
354354
array(
355355
'bar' => function ($bar) {
356-
return;
357-
},
356+
return;
357+
},
358358
),
359359
'baz',
360360
array('foo' => '', 'bar' => null, 'baz' => true),
@@ -363,8 +363,8 @@ public function provideCallbacks()
363363
array(
364364
array(
365365
'bar' => function ($bar) {
366-
return $bar->format('d-m-Y H:i:s');
367-
},
366+
return $bar->format('d-m-Y H:i:s');
367+
},
368368
),
369369
new \DateTime('2011-09-10 06:30:00'),
370370
array('foo' => '', 'bar' => '10-09-2011 06:30:00', 'baz' => true),
@@ -373,13 +373,13 @@ public function provideCallbacks()
373373
array(
374374
array(
375375
'bar' => function ($bars) {
376-
$foos = '';
377-
foreach ($bars as $bar) {
378-
$foos .= $bar->getFoo();
379-
}
376+
$foos = '';
377+
foreach ($bars as $bar) {
378+
$foos .= $bar->getFoo();
379+
}
380380

381-
return $foos;
382-
},
381+
return $foos;
382+
},
383383
),
384384
array(new ObjectConstructorDummy('baz', '', false), new ObjectConstructorDummy('quux', '', false)),
385385
array('foo' => '', 'bar' => 'bazquux', 'baz' => true),
@@ -388,8 +388,8 @@ public function provideCallbacks()
388388
array(
389389
array(
390390
'bar' => function ($bars) {
391-
return count($bars);
392-
},
391+
return count($bars);
392+
},
393393
),
394394
array(new ObjectConstructorDummy('baz', '', false), new ObjectConstructorDummy('quux', '', false)),
395395
array('foo' => '', 'bar' => 2, 'baz' => true),

0 commit comments

Comments
 (0)