Skip to content

Commit e2c85d8

Browse files
Merge branch '2.8' into 3.1
* 2.8: CS fixes Remove trailing space CS: apply rules [Yaml] Clean some messages + add test case [Console] simplified code [Form] Fix UrlType transforms valid protocols [SecurityBundle] Changed encoder configuration example to bcrypt
2 parents 2d2b086 + df9a4f8 commit e2c85d8

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
@@ -333,8 +333,8 @@ public function provideCallbacks()
333333
array(
334334
array(
335335
'bar' => function ($bar) {
336-
return 'baz';
337-
},
336+
return 'baz';
337+
},
338338
),
339339
'baz',
340340
array('foo' => '', 'bar' => 'baz', 'baz' => true),
@@ -343,8 +343,8 @@ public function provideCallbacks()
343343
array(
344344
array(
345345
'bar' => function ($bar) {
346-
return;
347-
},
346+
return;
347+
},
348348
),
349349
'baz',
350350
array('foo' => '', 'bar' => null, 'baz' => true),
@@ -353,8 +353,8 @@ public function provideCallbacks()
353353
array(
354354
array(
355355
'bar' => function ($bar) {
356-
return $bar->format('d-m-Y H:i:s');
357-
},
356+
return $bar->format('d-m-Y H:i:s');
357+
},
358358
),
359359
new \DateTime('2011-09-10 06:30:00'),
360360
array('foo' => '', 'bar' => '10-09-2011 06:30:00', 'baz' => true),
@@ -363,13 +363,13 @@ public function provideCallbacks()
363363
array(
364364
array(
365365
'bar' => function ($bars) {
366-
$foos = '';
367-
foreach ($bars as $bar) {
368-
$foos .= $bar->getFoo();
369-
}
366+
$foos = '';
367+
foreach ($bars as $bar) {
368+
$foos .= $bar->getFoo();
369+
}
370370

371-
return $foos;
372-
},
371+
return $foos;
372+
},
373373
),
374374
array(new ObjectConstructorDummy('baz', '', false), new ObjectConstructorDummy('quux', '', false)),
375375
array('foo' => '', 'bar' => 'bazquux', 'baz' => true),
@@ -378,8 +378,8 @@ public function provideCallbacks()
378378
array(
379379
array(
380380
'bar' => function ($bars) {
381-
return count($bars);
382-
},
381+
return count($bars);
382+
},
383383
),
384384
array(new ObjectConstructorDummy('baz', '', false), new ObjectConstructorDummy('quux', '', false)),
385385
array('foo' => '', 'bar' => 2, 'baz' => true),

0 commit comments

Comments
 (0)