Skip to content

Commit df9a4f8

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

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
@@ -355,8 +355,8 @@ public function provideCallbacks()
355355
array(
356356
array(
357357
'bar' => function ($bar) {
358-
return 'baz';
359-
},
358+
return 'baz';
359+
},
360360
),
361361
'baz',
362362
array('foo' => '', 'bar' => 'baz', 'baz' => true),
@@ -365,8 +365,8 @@ public function provideCallbacks()
365365
array(
366366
array(
367367
'bar' => function ($bar) {
368-
return;
369-
},
368+
return;
369+
},
370370
),
371371
'baz',
372372
array('foo' => '', 'bar' => null, 'baz' => true),
@@ -375,8 +375,8 @@ public function provideCallbacks()
375375
array(
376376
array(
377377
'bar' => function ($bar) {
378-
return $bar->format('d-m-Y H:i:s');
379-
},
378+
return $bar->format('d-m-Y H:i:s');
379+
},
380380
),
381381
new \DateTime('2011-09-10 06:30:00'),
382382
array('foo' => '', 'bar' => '10-09-2011 06:30:00', 'baz' => true),
@@ -385,13 +385,13 @@ public function provideCallbacks()
385385
array(
386386
array(
387387
'bar' => function ($bars) {
388-
$foos = '';
389-
foreach ($bars as $bar) {
390-
$foos .= $bar->getFoo();
391-
}
388+
$foos = '';
389+
foreach ($bars as $bar) {
390+
$foos .= $bar->getFoo();
391+
}
392392

393-
return $foos;
394-
},
393+
return $foos;
394+
},
395395
),
396396
array(new ObjectConstructorDummy('baz', '', false), new ObjectConstructorDummy('quux', '', false)),
397397
array('foo' => '', 'bar' => 'bazquux', 'baz' => true),
@@ -400,8 +400,8 @@ public function provideCallbacks()
400400
array(
401401
array(
402402
'bar' => function ($bars) {
403-
return count($bars);
404-
},
403+
return count($bars);
404+
},
405405
),
406406
array(new ObjectConstructorDummy('baz', '', false), new ObjectConstructorDummy('quux', '', false)),
407407
array('foo' => '', 'bar' => 2, 'baz' => true),

0 commit comments

Comments
 (0)