Skip to content

Commit a0aa416

Browse files
committed
fixed phpdoc @param alignment
1 parent 0943a06 commit a0aa416

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

Encoder/EncoderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface EncoderInterface
2222
/**
2323
* Encodes data into a string
2424
*
25-
* @param mixed $data Data to encode
25+
* @param mixed $data Data to encode
2626
* @param string $format Format to encode to
2727
*
2828
* @return string

Normalizer/CustomNormalizer.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public function denormalize($data, $class, $format = null)
3939
/**
4040
* Checks if the given class implements the NormalizableInterface.
4141
*
42-
* @param mixed $data Data to normalize.
43-
* @param string $format The format being (de-)serialized from or into.
42+
* @param mixed $data Data to normalize.
43+
* @param string $format The format being (de-)serialized from or into.
4444
* @return Boolean
4545
*/
4646
public function supportsNormalization($data, $format = null)
@@ -51,9 +51,9 @@ public function supportsNormalization($data, $format = null)
5151
/**
5252
* Checks if the given class implements the NormalizableInterface.
5353
*
54-
* @param mixed $data Data to denormalize from.
55-
* @param string $type The class to which the data should be denormalized.
56-
* @param string $format The format being deserialized from.
54+
* @param mixed $data Data to denormalize from.
55+
* @param string $type The class to which the data should be denormalized.
56+
* @param string $format The format being deserialized from.
5757
* @return Boolean
5858
*/
5959
public function supportsDenormalization($data, $type, $format = null)

Normalizer/NormalizableInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ function normalize(SerializerInterface $serializer, $format = null);
4545
*
4646
* @param SerializerInterface $serializer The serializer is given so that you
4747
* can use it to denormalize objects contained within this object.
48-
* @param array|scalar $data The data from which to re-create the object.
49-
* @param string|null $format The format is optionally given to be able to denormalize differently
48+
* @param array|scalar $data The data from which to re-create the object.
49+
* @param string|null $format The format is optionally given to be able to denormalize differently
5050
* based on different input formats.
5151
*/
5252
function denormalize(SerializerInterface $serializer, $data, $format = null);

Normalizer/NormalizerInterface.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ function normalize($object, $format = null);
3131
/**
3232
* Denormalizes data back into an object of the given class
3333
*
34-
* @param mixed $data data to restore
35-
* @param string $class the expected class to instantiate
34+
* @param mixed $data data to restore
35+
* @param string $class the expected class to instantiate
3636
* @param string $format format the given data was extracted from
3737
* @return object
3838
*/
@@ -41,18 +41,18 @@ function denormalize($data, $class, $format = null);
4141
/**
4242
* Checks whether the given class is supported for normalization by this normalizer
4343
*
44-
* @param mixed $data Data to normalize.
45-
* @param string $format The format being (de-)serialized from or into.
44+
* @param mixed $data Data to normalize.
45+
* @param string $format The format being (de-)serialized from or into.
4646
* @return Boolean
4747
*/
4848
function supportsNormalization($data, $format = null);
4949

5050
/**
5151
* Checks whether the given class is supported for denormalization by this normalizer
5252
*
53-
* @param mixed $data Data to denormalize from.
54-
* @param string $type The class to which the data should be denormalized.
55-
* @param string $format The format being deserialized from.
53+
* @param mixed $data Data to denormalize from.
54+
* @param string $type The class to which the data should be denormalized.
55+
* @param string $format The format being deserialized from.
5656
* @return Boolean
5757
*/
5858
function supportsDenormalization($data, $type, $format = null);

Serializer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ private function normalizeObject($object, $format = null)
170170
/**
171171
* Denormalizes data back into an object of the given class
172172
*
173-
* @param mixed $data data to restore
174-
* @param string $class the expected class to instantiate
173+
* @param mixed $data data to restore
174+
* @param string $class the expected class to instantiate
175175
* @param string $format format name, present to give the option to normalizers to act differently based on formats
176176
* @return object
177177
*/

SerializerInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ interface SerializerInterface
2323
/**
2424
* Serializes data in the appropriate format
2525
*
26-
* @param mixed $data any data
26+
* @param mixed $data any data
2727
* @param string $format format name
2828
* @return string
2929
*/
@@ -41,7 +41,7 @@ function deserialize($data, $type, $format);
4141
/**
4242
* Normalizes any data into a set of arrays/scalars
4343
*
44-
* @param mixed $data data to normalize
44+
* @param mixed $data data to normalize
4545
* @param string $format format name, present to give the option to normalizers to act differently based on formats
4646
* @return array|scalar
4747
*/
@@ -60,7 +60,7 @@ function denormalize($data, $type, $format = null);
6060
/**
6161
* Encodes data into the given format
6262
*
63-
* @param mixed $data data to encode
63+
* @param mixed $data data to encode
6464
* @param string $format format name
6565
* @return array|scalar
6666
*/
@@ -69,7 +69,7 @@ function encode($data, $format);
6969
/**
7070
* Decodes a string from the given format back into PHP data
7171
*
72-
* @param string $data data to decode
72+
* @param string $data data to decode
7373
* @param string $format format name
7474
* @return mixed
7575
*/

0 commit comments

Comments
 (0)