Skip to content

Commit 02be6b0

Browse files
committed
fixes CS
1 parent 1a76887 commit 02be6b0

File tree

10 files changed

+14
-14
lines changed

10 files changed

+14
-14
lines changed

Encoder/JsonDecode.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ public function __construct($associative = false, $depth = 512)
5757
*
5858
* @deprecated since version 2.5, to be removed in 3.0.
5959
* The {@self decode()} method throws an exception if error found.
60-
*
6160
* @see http://php.net/manual/en/function.json-last-error.php json_last_error
6261
*/
6362
public function getLastError()

Encoder/JsonEncode.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public function __construct($bitmask = 0)
3535
*
3636
* @deprecated since version 2.5, to be removed in 3.0.
3737
* The {@self encode()} throws an exception if error found.
38-
*
3938
* @see http://php.net/manual/en/function.json-last-error.php json_last_error
4039
*/
4140
public function getLastError()

Exception/CircularReferenceException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Serializer\Exception;
1313

1414
/**
15-
* CircularReferenceException
15+
* CircularReferenceException.
1616
*
1717
* @author Kévin Dunglas <dunglas@gmail.com>
1818
*/

Exception/MappingException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\Serializer\Exception;
1313

1414
/**
15-
* MappingException
15+
* MappingException.
1616
*
1717
* @author Kévin Dunglas <dunglas@gmail.com>
1818
*/

Mapping/Factory/ClassMetadataFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ClassMetadataFactory implements ClassMetadataFactoryInterface
3838

3939
/**
4040
* @param LoaderInterface $loader
41-
* @param Cache|null $cache
41+
* @param Cache|null $cache
4242
*/
4343
public function __construct(LoaderInterface $loader, Cache $cache = null)
4444
{

Mapping/Loader/YamlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class YamlFileLoader extends FileLoader
2626
private $yamlParser;
2727

2828
/**
29-
* An array of YAML class descriptions
29+
* An array of YAML class descriptions.
3030
*
3131
* @var array
3232
*/

NameConverter/CamelCaseToSnakeCaseNameConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function normalize($propertyName)
4646
$snakeCasedName = '';
4747

4848
$len = strlen($propertyName);
49-
for ($i = 0; $i < $len; $i++) {
49+
for ($i = 0; $i < $len; ++$i) {
5050
if (ctype_upper($propertyName[$i])) {
5151
$snakeCasedName .= '_'.strtolower($propertyName[$i]);
5252
} else {

NameConverter/NameConverterInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ interface NameConverterInterface
2222
* Converts a property name to its normalized value.
2323
*
2424
* @param string $propertyName
25+
*
2526
* @return string
2627
*/
2728
public function normalize($propertyName);
@@ -30,6 +31,7 @@ public function normalize($propertyName);
3031
* Converts a property name to its denormalized value.
3132
*
3233
* @param string $propertyName
34+
*
3335
* @return string
3436
*/
3537
public function denormalize($propertyName);

Normalizer/AbstractNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ protected function isCircularReference($object, &$context)
192192
return true;
193193
}
194194

195-
$context['circular_reference_limit'][$objectHash]++;
195+
++$context['circular_reference_limit'][$objectHash];
196196
} else {
197197
$context['circular_reference_limit'][$objectHash] = 1;
198198
}

Tests/Encoder/XmlEncoderTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -471,13 +471,13 @@ protected function getNamespacedArray()
471471
'@xmlns:media' => 'http://search.yahoo.com/mrss/',
472472
'@xmlns:gd' => 'http://schemas.google.com/g/2005',
473473
'@xmlns:yt' => 'http://gdata.youtube.com/schemas/2007',
474-
'qux' => "1",
475-
'app:foo' => "foo",
476-
'yt:bar' => array("a", "b"),
474+
'qux' => '1',
475+
'app:foo' => 'foo',
476+
'yt:bar' => array('a', 'b'),
477477
'media:baz' => array(
478-
'media:key' => "val",
479-
'media:key2' => "val",
480-
'A B' => "bar",
478+
'media:key' => 'val',
479+
'media:key2' => 'val',
480+
'A B' => 'bar',
481481
'item' => array(
482482
array(
483483
'title' => 'title1',

0 commit comments

Comments
 (0)