Skip to content

Commit 9ad3020

Browse files
erge branch '3.1'
* 3.1: Remove trailing space 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 21df995 + e2c85d8 commit 9ad3020

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
@@ -377,8 +377,8 @@ public function provideCallbacks()
377377
array(
378378
array(
379379
'bar' => function ($bar) {
380-
return 'baz';
381-
},
380+
return 'baz';
381+
},
382382
),
383383
'baz',
384384
array('foo' => '', 'bar' => 'baz', 'baz' => true),
@@ -387,8 +387,8 @@ public function provideCallbacks()
387387
array(
388388
array(
389389
'bar' => function ($bar) {
390-
return;
391-
},
390+
return;
391+
},
392392
),
393393
'baz',
394394
array('foo' => '', 'bar' => null, 'baz' => true),
@@ -397,8 +397,8 @@ public function provideCallbacks()
397397
array(
398398
array(
399399
'bar' => function ($bar) {
400-
return $bar->format('d-m-Y H:i:s');
401-
},
400+
return $bar->format('d-m-Y H:i:s');
401+
},
402402
),
403403
new \DateTime('2011-09-10 06:30:00'),
404404
array('foo' => '', 'bar' => '10-09-2011 06:30:00', 'baz' => true),
@@ -407,13 +407,13 @@ public function provideCallbacks()
407407
array(
408408
array(
409409
'bar' => function ($bars) {
410-
$foos = '';
411-
foreach ($bars as $bar) {
412-
$foos .= $bar->getFoo();
413-
}
410+
$foos = '';
411+
foreach ($bars as $bar) {
412+
$foos .= $bar->getFoo();
413+
}
414414

415-
return $foos;
416-
},
415+
return $foos;
416+
},
417417
),
418418
array(new ObjectConstructorDummy('baz', '', false), new ObjectConstructorDummy('quux', '', false)),
419419
array('foo' => '', 'bar' => 'bazquux', 'baz' => true),
@@ -422,8 +422,8 @@ public function provideCallbacks()
422422
array(
423423
array(
424424
'bar' => function ($bars) {
425-
return count($bars);
426-
},
425+
return count($bars);
426+
},
427427
),
428428
array(new ObjectConstructorDummy('baz', '', false), new ObjectConstructorDummy('quux', '', false)),
429429
array('foo' => '', 'bar' => 2, 'baz' => true),

0 commit comments

Comments
 (0)